Gazebo | Ignition | Community
Ask Your Question
0

Running Gazebo SImulation without Using Command Line

asked 2021-04-30 12:09:34 -0500

clintm229 gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-03 10:42:22 -0500

Jose Luis Rivero gravatar image

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.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-04-30 12:09:20 -0500

Seen: 34 times

Last updated: May 03