Closed mcres closed 1 week ago
Thank you for the suggestion. The Readme is now updated with the rosbag demo
Thanks! I'm posting the command with the needed remappings for the default /pose_estimation_node
subscription topics, in case someone is lost with that:
ros2 bag play cube_demo_data_rosbag2 --remap /camera/camera/aligned_depth_to_color/image_raw:=/camera/aligned_depth_to_color/image_raw /camera/camera/color/image_raw:=/camera/color/image_raw /camera/camera/color/camera_info:=/camera/color/camera_info
Unfortunately, I am not able to reproduce the pose estimation of the cube.
After running the foundationpose_ros_multi.py
script and the rosbag, clicking on the cube and pressing Enter
I get the following error:
If I comment the lines that cause the error (not sure why it is needed to set self.meshes
and self.bounds
at this point, anyways), I am able to not make it crash. However, no pose is detected as indicated by a) the visualizer and b) the ROS2 node not publishing any pose:
Mask selection screen | Pose estimation screen :x: |
---|---|
Here are the messages logged to the console:
Do you have any suggestions @ammar-n-abbas?
@mcres can you check if the demo_data has the meshes stored in them and the file selector can read it? Can you show the file selector GUI as from the mesh selection GUI it says next object is "None" which should not be the case
@ammar-n-abbas that seems fine. Find here a video with the whole procedure: foundation_pose_rosbag.webm
Some comments:
demo_data/cube/cube.obj
into account.cube.obj
defines a cube of 7.5 cm length, can you confirm that is OK? I can open the file, no issues with that.Enter
to start the pose estimation but nothing happens even if I let it run for a fair amount of time.Could you perhaps share the output of your screen as well as the log of your console when you successfully reproduce the example so we can compare it?
There was a minor bug in the code which has been fixed now, apologies for that. The demo data rosbag screen recording has now been added in the Readme along with the terminal log.
There was a minor bug in the code which has been fixed now, apologies for that. The demo data rosbag screen recording has now been added in the Readme along with the terminal log.
Hey Ammar,
thank you for your work. Unfortunately, a different error comes up now:
AttributeError: 'FoundationPose' object has no attribute 'is_register'. Did you mean: 'register'?
in line 307: https://github.com/ammar-n-abbas/FoundationPoseROS2/blob/6931cf0f1e1bedba3ee58569303bfb0d59d12233/foundationpose_ros_multi.py#L307
I could only find the register()
function in FoundationPose estimater class. Where is the is_register function defined?
Thank you for your time, mb
The file (foundationpose_ros_multi.py) has been modified and the repo now includes the modified lines in estimater.py please download it from this repo's last commit
The file (foundationpose_ros_multi.py) has been modified and the repo now includes the modified lines in estimater.py please download it from this repo's last commit
Thank you, that works! I eventually found out about a workaround as well after looking at the demo files from FoundationPose: https://github.com/ammar-n-abbas/FoundationPoseROS2/issues/3#issuecomment-2476408986
Like #3, I cannot detect the pose of a custom object.
It would be nice to reproduce the results presented here in my own setup, to make sure that there are no issues with dependencies or whatsoever.
Could you provide a rosbag with the color and depth images, and the camera info so that we can detect the objects defined in
demo_data/
? This way I could check that my pipeline has been built correctly.