Gazebo | Ignition | Community
Ask Your Question
0

Running Gazebo SImulation without Using Command Line

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

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 -0600

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

Question Tools

1 follower

Stats

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

Seen: 71 times

Last updated: May 03 '21