![]() | 1 | initial version |
Gazebo currently doesn't provided a built-in function to map world-coordinate to image plane coordinate. You can use the ROS image_geometry package, opencv, write your own, or use some other software for this.
The rendering::Camera
class does provide a function called CameraToViewportRay
which gets a world space ray as cast from the camera through its viewport. This may be of use to you.