Step 4 - Creating the plugin description file

Like the pluginlib example, we have to create a plugin description file inside the nodelet_hello_world package. The plugin description file, hello_world.xml, is as follows:

<library path="libnodelet_hello_world"> 
  <class name="nodelet_hello_world/Hello" type="nodelet_hello_world::Hello" base_class_type="nodelet::Nodelet"> 
      <description> 
      A node to republish a message 
      </description> 
  </class> 
</library> 

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.