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

Controlling the GoPiGo3 robot's wheels from RViz

The complete version of the robot can be launched with the following command:

$ roslaunch rviz_basics gopigoMinimal_rviz.launch model:=gopigoMinimal

What we are doing here is supplying an argument, gopigoMinimal, from the command line. If you pay attention to the content of the launch file, that is, gopigoMinimal_rviz.launch, you will find a new section at the beginning of the file tagged with <arg />:

<launch>    <!-- values passed by command line input -->    <arg name="model" default="gopigoMinimal" />    <arg name="gui" default="False" />    <!-- set these parameters on Parameter Server -->    <param name="robot_description" textfile="$(find rviz_basics)/urdf/$(arg model).urdf" />    <!-- Start 3 nodes: ...
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