Page 1 of 1

From RosPlugin to Ros Interface: start / stop simulation

Posted: 13 Jul 2017, 16:14
by oKermorgant
Hello,

I have several scenes that use the old RosPlugin, and am in the process of adapting them to Ros Interface.
A feature I cannot find is the ability to start and stop the simulation from ROS. The RosPlugin used to have services to do so.

It there any way to replicate this behavior with the Ros Interface?
In order to stop the simulation, the main script could propose a service that could stop the simulation when called.
In the opposite, I guess this script is not running when the simulation is not running, so it cannot propose a StartSimulation service.

The goal is not to focus on the GUI buttons too much and to automatically start / stop depending on external ROS controllers running or not.

Re: From RosPlugin to Ros Interface: start / stop simulation

Posted: 16 Jul 2017, 19:47
by coppelia
Hello,

have a look at customization scripts, which run also when simulation is not running. There is also a tool Models/tools/rosInterface helper tool.ttm that can help you for what you want to achieve.

Cheers