Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
ROS Robotics By Example

You're reading from  ROS Robotics By Example

Product type Book
Published in Jun 2016
Publisher Packt
ISBN-13 9781782175193
Pages 428 pages
Edition 1st Edition
Languages
Concepts

Table of Contents (17) Chapters

ROS Robotics By Example
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Getting Started with ROS Creating Your First Two-Wheeled ROS Robot (in Simulation) Driving Around with TurtleBot Navigating the World with TurtleBot Creating Your First Robot Arm (in Simulation) Wobbling Robot Arms Using Joint Control Making a Robot Fly Controlling Your Robots with External Devices Flying a Mission with Crazyflie Extending Your ROS Abilities Index

ROS commands summary


If you are communicating with ROS via the terminal window, it is possible to issue commands to ROS to explore or control nodes in a package from the command prompt, as listed in the following table:

Command

Action

Example usage and subcommand examples

roscore

This starts the Master

$ roscore

rosrun

This runs an executable program and creates nodes

$ rosrun [package name] [executable name]

rosnode

This shows information about nodes and lists the active nodes

$ rosnode info [node name]

$ rosnode <subcommand>

Subcommand: list

rostopic

This shows information about ROS topics

$ rostopic <subcommand> <topic name>

Subcommands: echo, info, and type

rosmsg

This shows information about the message types

$ rosmsg <subcommand> [package name]/ [message type]

Subcommands: show, type, and list

rosservice

This displays the runtime information about various services and allows the display of messages being sent to a topic

$ rosservice <subcommand> [service name]

Subcommands: args, call, find, info, list, and type

rosparam

This is used to get and set parameters (data) used by nodes

$ rosparam <subcommand> [parameter]

Subcommands: get, set, list, and delete

The website (http://wiki.ros.org/ROS/CommandLineTools) describes many ROS commands. The table lists some important ones. However, these examples only cover a few of the possible variations of the commands.

You have been reading a chapter from
ROS Robotics By Example
Published in: Jun 2016 Publisher: Packt ISBN-13: 9781782175193
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}