Step 6 - Registering the plugin with the ROS package system

For pluginlib to find all plugin-based packages in the ROS system, we should export the plugin description file inside package.xml. If we do not include this plugin, the ROS system won't find the plugins inside the package.

Here, we add the export tag to package.xml , as follows:

<export> 
  <pluginlib_calculator plugin="${prefix}/calculator_plugins.xml" /> 
</export> 

To work this export command properly, we should insert the following lines in package.xml:

 <build_depend>pluginlib_calculator</build_depend> 
 <run_depend>pluginlib_calculator</run_depend> 

The current package should directly depend on itself, both at the time of building and also at runtime.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.47.59