Step 1 - Creating a package for a nodelet

We can create a package called nodelet_hello_world , using the following command to create our nodelet:

$ catkin_create_pkg nodelet_hello_world nodelet roscpp std_msgs  

Otherwise, we can use the existing package from nodelet_hello_world, or download it from the following link:

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

Here, the main dependency of this package is the nodelet package, which provides APIs to build a ROS nodelet.

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.