gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
621 stars 251 forks source link

Add camera frustum display and DEM painter #2401

Open Ryanf55 opened 1 month ago

Ryanf55 commented 1 month ago

Desired behavior

Implement a way to display the camera frustum and also paint the DEM terrain where the camera is facing.

This is useful for simulation of aerial vehicles with downward facing cameras or other directional sensors.

Alternatives considered

Implementation suggestion

Examples

image

Additional context

scpeters commented 1 week ago

a camera frustum was displayed as part of the gazebo-classic CameraVisual (see screenshots from the camera distortion tutorial), but it's size wasn't based on the actual field of view (see hard-coded parameters in CameraVisual.cc)

From a brief discussion with @iche033, it shouldn't be too hard to render a frustum for the camera, though it would be more involved to render camera images in a frame at the end of the frustum as was done in gazebo-classic

scpeters commented 1 week ago

From a brief discussion with @iche033, it shouldn't be too hard to render a frustum for the camera, though it would be more involved to render camera images in a frame at the end of the frustum as was done in gazebo-classic

more from @iche033:

scpeters commented 1 week ago

related: a feature request for camera image visualization https://github.com/gazebosim/gz-sensors/issues/427