boschresearch / pcg_gazebo

Procedural Generation for Gazebo
https://boschresearch.github.io/pcg_gazebo/
Apache License 2.0
69 stars 24 forks source link

Add option to start robot_state_publisher and joint_state_publisher when calling spawn() #51

Open musamarcusso opened 4 years ago

musamarcusso commented 4 years ago

When writing tasks using the task_manager submodule, if the SimulationModel instance is added to the running simulation using spawn, sometimes robot_state_publisher and joint_state_publisher also need to be started in order to have the correct tf frames published. Add the option to also start those nodes, if necessary within the spawn function.