FUNMAP implementation using wrist D405 camera

We are looking to utilize the D405 wrist camera for plane detection using FUNMAP. In our application, the head camera’s vision may become occluded, so switching to the wrist camera would be beneficial.
Could you please provide suggestions or guidance on how to modify the ros2_stretch_FUNMAP package to use the wrist camera instead of the head scans?

Thank you for your assistance!

Hey @Davide_Peron, FUNMAP’s fit_closest_flat_surface() method could work for this.

It takes in a max height image (MHI), the robot’s position in image space, and a debug boolean. The FUNMAP node already tracks the robot’s position in image space, so you could just use that. Constructing the MHI from the D405 wrist camera is possible; here’s code showing how it’s done with the D435if head camera:


Github Link: stretch_ros2/stretch_funmap/stretch_funmap/mapping.py at 9a44eee2933c5c171f9504aae69c3bb6becf0443 · hello-robot/stretch_ros2 · GitHub

Thanks, and we will try to follow your suggestions.