Skip to content

Commit

Permalink
🔨 Defined starting position of OpenCV window in image_viewer node imp…
Browse files Browse the repository at this point in the history
…lement.

Signed-off-by: Bey Hao Yun <[email protected]>
  • Loading branch information
cardboardcode committed Mar 10, 2024
1 parent f914756 commit 52d8fe5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/virtual_camera/image_viewer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ ImageViewer::ImageViewer()
: Node("image_viewer")
{
cv::namedWindow("image_viewer", cv::WINDOW_AUTOSIZE);
cv::moveWindow("image_viewer", 0, 375);
int x_position = 0;
int y_position = 0;
cv::moveWindow("image_viewer", x_position, y_position);
cv::waitKey(1);

size_t depth_ = rmw_qos_profile_default.depth;
Expand Down

0 comments on commit 52d8fe5

Please sign in to comment.