Show Menu
Cheatography

ROS Commands Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Navigating Topics: rostopic

List all topics
rostopic list
Get inform­ation for a specific topic, e.g.
odom
rostopic info odom
Print messages from a topic, e.g.
odom
rostopic echo odom

ROS Messages

Show a message defini­tion, e.g. for
sensor­_ms­gs/­Las­erScan
rosmsg show sensor­_ms­gs/­Las­erScan
List all messages in a package, e.g.
sensor­_msgs
rosmsg package sensor­_msgs

ROS Nodes, rosnode

List all ROS nodes
rosnode list
Get inform­ation for a ROS node (e.g.
rosout
), including subscribed and advertised topics
rosnode info rosout
Kill a running ROS node, e.g.
locali­zation
rosnode kill locali­zation
Kill all running ROS nodes
rosnode kill -a