Reader small image

You're reading from  Mastering ROS for Robotics Programming. - Second Edition

Product typeBook
Published inFeb 2018
Reading LevelExpert
PublisherPackt
ISBN-139781788478953
Edition2nd Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Lentin Joseph
Lentin Joseph
author image
Lentin Joseph

Lentin Joseph is an author and robotics entrepreneur from India. He runs a robotics software company called Qbotics Labs in India. He has 7 years of experience in the robotics domain primarily in ROS, OpenCV, and PCL. He has authored four books in ROS, namely, Learning Robotics using Python, Mastering ROS for Robotics Programming, ROS Robotics Projects, and Robot Operating System for Absolute Beginners. He is currently pursuing his master's in Robotics from India and is also doing research at Robotics Institute, CMU, USA.
Read more about Lentin Joseph

Right arrow

Writing a basic joint controller in ROS


The basic prerequisites for writing an ROS controller are already installed. We have discussed the underlying concepts of controllers. Now we can start creating a package for our own controller.

We are going to develop a controller that can access a joint of the robot and move the robot in a sinusoidal fashion. In particular, the first joint of the seven_dof_arm will follow a sinusoidal motion.

The procedure of building a controller is similar to other plugins development that we have seen earlier. The list of procedures to create an ROS controller is given as follows:

  1. Create an ROS package with the necessary dependencies.
  2. Write controller code in C++.
  3. Register or export the C++ class as a plugin.
  4. Define the plugin definition in an XML file.
  5. Edit the  CMakeLists.txt  and package.xml files for exporting the plugin.
  6. Write the configuration for our controller.
  7. Load the controller using the controller manager.

Step 1 - Creating the controller package

The first step...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering ROS for Robotics Programming. - Second Edition
Published in: Feb 2018Publisher: PacktISBN-13: 9781788478953

Author (1)

author image
Lentin Joseph

Lentin Joseph is an author and robotics entrepreneur from India. He runs a robotics software company called Qbotics Labs in India. He has 7 years of experience in the robotics domain primarily in ROS, OpenCV, and PCL. He has authored four books in ROS, namely, Learning Robotics using Python, Mastering ROS for Robotics Programming, ROS Robotics Projects, and Robot Operating System for Absolute Beginners. He is currently pursuing his master's in Robotics from India and is also doing research at Robotics Institute, CMU, USA.
Read more about Lentin Joseph