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

[Bug] Gazebo headless rendering is impossible with multiple vehicles #22946

Open
matteodelseppia opened this issue Mar 28, 2024 · 1 comment
Open

Comments

@matteodelseppia
Copy link
Contributor

Describe the bug

When working with multiple iris the gzclient seems tied in some way to the simulation. From what I understand, gzclient should be completely optional unless there is some kind of live rendering being performed, e.g. a drone with a camera. I checked the Tools/simulation/gazebo-classic/sitl_run.sh script to understand how the headless rendering is achieved with a single drone and it seems the solution is just not to run the gzclient, but when I try this approach commenting out the call to gzclient in sitl_multiple_run.sh the gzserver starts and immediately stops, and a single instance of px4 continues running all by itself.

To Reproduce

To reproduce, just comment out the call to gzclient in Tools/simulation/gazebo-classic/sitl_multiple_run.sh and try running a simulation with multiple drones using the script.

Expected behavior

The gzserver should continue running even if the gzclient has been closed or did not start at all.

Screenshot / Media

No response

Flight Log

//

Software Version

1.14

Flight controller

//

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@matteodelseppia and others