Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

Understanding the roslaunch command

Let's go one step back and use a minimal launch file to understand the syntax of these kinds of scripts:

$ roslaunch rviz_basics gopigoMinimal_rviz_simple.launch

As we saw with rosrun, the structure of the ROS command is very similar:

  • First is the command name itself, roslaunch.
  • Second is the package name, rviz_basics.
  • The third is the script we will execute, gopigoMinimal_rviz_simple.launch.

The content of the gopigoMinimal_rviz_simple.launch file looks like this:

<launch>   <!-- set these parameters on Parameter Server -->   <param name="robot_description" textfile="$(find rviz_basics)/urdf/gopigoMinimal.urdf" />   <!-- Start 3 nodes: joint_state_publisher, robot_state_publisher and rviz -->   <!-- Send joint ...
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

Mastering ROS for Robotics Programming

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content