Running Gazebo SImulation without Using Command Line
I have a Gazebo world file that uses a C++ plugin to specify the inputs to a model and outputs the resulting sensor readings. Everything works as expected, but in order to run the simulation I always need to run gazebo from the terminal via
gazebo myModel.world
Is there a way to run the simulation from C++? That is are there ways to run my simulation without using the terminal. I'm attempting to completely automate the simulation/data collection process. I'm also open to potentially using alternatives to running the simulation via C++ if it makes sense.
Asked by clintm229 on 2021-04-30 12:09:20 UTC
Answers
There are a good bunch of examples calling Gazebo in many ways from code inside examples/stand_alone directory of Gazebo. Particularly custom_main could help.
Asked by Jose Luis Rivero on 2021-05-03 10:42:22 UTC
Comments