Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can you render a camera in headless mode?

(version 9.18.0)

I'm trying to run a simulation in a Docker container in which the output of a camera (libgazebo_ros_camera) can be accessed externally. Everything works fine when my display is mounted to the container.

I receive this if I do not mount my display.

[Err] [] Can't open display: 
[Wrn] [] Unable to create X window. Rendering will be disabled
[Wrn] [] Cannot initialize render engine since render path type is NONE. Ignore this warning ifrendering has been turned off on purpose.

This page is pretty clear that cameras won't render in headless mode. So, this may be a dumb question, but I vaguely remember accomplishing this before.

Any other ideas would be great!