introlab / find-object

Find-Object project
http://introlab.github.io/find-object/
BSD 3-Clause "New" or "Revised" License
441 stars 186 forks source link

Nothing visible in the Find-Object window #147

Open emp002 opened 1 month ago

emp002 commented 1 month ago

I am using ROS2 humble. I have a 3D camera plugin defined in my URDF which publishes the topics which the find_object_2d subscribes to. I see that my topics are being published but still can't see anything in the window. Is there a tutorial on how to use this package? image image image image

matlabbe commented 1 month ago

I try source and binaries versions, and it seems to work as expected (I see image and features extracted).

Check if the camera topics are published:

ros2 topic hz /camera/color/image_raw
ros2 topic hz /camera/aligned_depth_to_color/image_raw
ros2 topic hz /camera/color/camera_info

tested with a D435i following instructions for ROS2:

ros2 launch realsense2_camera rs_launch.py align_depth.enable:=true

ros2 launch find_object_2d find_object_3d.launch.py \
   rgb_topic:=/camera/color/image_raw \
   depth_topic:=/camera/aligned_depth_to_color/image_raw \
   camera_info_topic:=/camera/color/camera_info
emp002 commented 1 month ago

I try source and binaries versions, and it seems to work as expected (I see image and features extracted).

Check if the camera topics are published:

ros2 topic hz /camera/color/image_raw
ros2 topic hz /camera/aligned_depth_to_color/image_raw
ros2 topic hz /camera/color/camera_info

tested with a D435i following instructions for ROS2:

ros2 launch realsense2_camera rs_launch.py align_depth.enable:=true

ros2 launch find_object_2d find_object_3d.launch.py \
   rgb_topic:=/camera/color/image_raw \
   depth_topic:=/camera/aligned_depth_to_color/image_raw \
   camera_info_topic:=/camera/color/camera_info

The topics are published and are subscribed by the find_object_2d node as you can see on the rqt graph. Right now I don't have a physical camera so I am using gazebo's depth camera plugin.

matlabbe commented 1 month ago

rqt_graph says the topic is advertised and there is a subscriber on it, but it doesn't show if the topics are actually published.