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.