Gazebo | Ignition | Community
Ask Your Question
0

Anyway to save image from depth camera from tools? i.e. gz, gui, etc?

asked 2022-01-20 04:39:11 -0500

LakeWorthB gravatar image

I can see the depth camera image when looking at the topic in gazebo, but is there a way to save this image without having to write a plugin? i.e. 'gz camera', etc?

This is using "libDepthCameraPlugin.so"

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-02-03 03:48:41 -0500

updated 2022-02-10 11:48:46 -0500

If you use ROS.

You could use a standard ROS camera plugin and store the generated ROS topic of the camera with a custom ROS node.

Another possibility is to use the rqt_image_view also available in ROS.

Succes

edit flag offensive delete link more
0

answered 2022-01-20 19:35:02 -0500

shonigmann gravatar image

You can edit your camera SDF to tell it to save the image stream to a desired location, but there's no mention of a way to toggle this feature on or off at runtime and it might be wayyy too much data for your use case. https://gazebosim.org/tutorials?tut=c...

Besides that, I am not aware of a purely-gazebo way of saving images from simulated cameras that doesn't involve a plugin, short of taking a screenshot of the image view from the topic visualizer in Gazebo,

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2022-01-20 04:39:11 -0500

Seen: 180 times

Last updated: Feb 10