Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add camera frustum display and DEM painter #2401

Open
Ryanf55 opened this issue May 8, 2024 · 3 comments
Open

Add camera frustum display and DEM painter #2401

Ryanf55 opened this issue May 8, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request help wanted We accept pull requests!

Comments

@Ryanf55
Copy link
Contributor

Ryanf55 commented May 8, 2024

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

  • Switch simulators to Cesium or another tool that supports it

Implementation suggestion

  • Add a wireframe to view the frustum of the camera
  • Add ability to shade the ground where the camera is pointing

Examples

image

Additional context

@Ryanf55 Ryanf55 added the enhancement New feature or request label May 8, 2024
@scpeters
Copy link
Member

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
Copy link
Member

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:

  • we could enable camera visualization by adding a gui plugin similar to the visualize_lidar plugin
  • we would also need a gz::rendering::CameraVisual object
  • the gui plugin would get the frustum from the camera sensor and create the gz::rendering::CameraVisual object

@scpeters
Copy link
Member

related: a feature request for camera image visualization gazebosim/gz-sensors#427

@azeey azeey added the help wanted We accept pull requests! label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted We accept pull requests!
Projects
Status: To do
Development

No branches or pull requests

3 participants