Transferring/Translating Image coordinates to a Robot
Hello, I am using Real Sense D435i camera.
I have installed the camera onto the end effector of a robot.
How can I transfer/translate the image coming from the camera into robotic coordinates XYZ using python?
End result for me is that the robot will move to a specific object detected by the camera. The object not at a fixed place. The robot with the camera should be able to detect and move to an object each time.
I would appreciate any help.
-
Hi Kim Danilov The ROS-based MoveIt and the Python compatibility binding created for it may be a good first option to consider.
https://github.com/ros-planning/moveit
-
You should be able to use it with either Windows or Linux. MoveIt has a quick-install option on Linux for building from packages, and instructions for building on Windows or Linux from source code.
https://moveit.ros.org/install/
If you are using an RGB image and wish to obtain XYZ coordinates, you could use the RealSense SDK instruction rs2_project_color_pixel_to_depth_pixel to convert a single specific color pixel to a depth pixel. Or alternatively, you could align depth to color and then use the instruction rs2_deproject_pixel_to_point to obtain the 3D coordinates.
https://github.com/IntelRealSense/librealsense/issues/6239#issuecomment-614261704
https://github.com/IntelRealSense/librealsense/issues/5603#issuecomment-574019008
Please sign in to leave a comment.
Comments
3 comments