Starting the ROS controller

The starting() method executes once just before running the controller. This method will only execute once before updating and running the controller. The starting() method declaration is given as follows:

virtual void starting(); 

The controller can also call the starting() method when it restarts the controller without unloading it.

Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.