Skip to Content
Robot Operating System Cookbook
book

Robot Operating System Cookbook

by Kumar Bipin
June 2018
Intermediate to advanced
484 pages
11h 36m
English
Packt Publishing
Content preview from Robot Operating System Cookbook

There's more…

As discussed previously, we could also create launch files to load more than one instance of the nodelet class. The following launch file, hello_ros.launch, will load two nodelets with the names Hello1 and Hello2:

<launch> 
<!-- Started nodelet manager --> 
 
  <node pkg="nodelet" type="nodelet" name="standalone_nodelet"  args="manager" output="screen"/> 
<!-- Starting first nodelet --> 
 
  <node pkg="nodelet" type="nodelet" name="Hello1" args="load nodelet_hello_ros/Hello standalone_nodelet" output="screen"> 
  </node>             
 
<!-- Starting second nodelet --> 
 
  <node pkg="nodelet" type="nodelet" name="Hello2" args="load nodelet_hello_ros/Hello standalone_nodelet" output="screen"> 
  </node>             
 
</launch> 

We can launch the nodelets with this launch file as ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mobile Intelligent Autonomous Systems

Mobile Intelligent Autonomous Systems

Jitendra R. Raol, Ajith K. Gopal
Wheeled Mobile Robotics

Wheeled Mobile Robotics

Gregor Klancar, Andrej Zdesar, Saso Blazic, Igor Skrjanc

Publisher Resources

ISBN: 9781783987443Supplemental Content