Step 1 - Creating the controller package

The first step is to create the controller package with all its dependencies. The following command can create a package for the controller called my_controller:

$ catkin_create_pkg my_controller roscpp pluginlib controller_interface   

We will get the existing package from the my_controller folder of the code provided with this book or clone the package from the following Git repository:

$ git clone https://github.com/jocacace/my_controller.git 

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.