3. roscore
It is a collection of nodes and programs that are pre-
requisites of a ROS-based system. You must have a roscore
running in order for ROS nodes to communicate.
Usage: $ roscore
3
4. rosrun
rosrun allows you to run an executable in an arbitrary
package from anywhere without having to give its full path
or cd/roscd.
Usage: $ rosrun package executable
4
5. roslaunch
Starts ROS nodes locally and remotely via SSH, as well as
setting parameters on the parameter server.
Usage: $ roslaunch package_name file.launch
5
7. rosnode
rosnode is a command-line tool for displaying debug
information about ROS Nodes, including publications,
subscriptions and connections.
Test connectivity to the node.
Usage: $ rosnode ping /node_name
rosnodeping
7
8. Display a list of current nodes.
Usage: $ rosnode list
rosnodelist
rosnodekill
Kill one or more nodes by name.
8
10. rosnodemachine
List nodes running on a particular machine.
Example: $ rosnode machine ninja.local
/talker-ninja.local-72266-1257921234733
/rosout
/listener-ninja.local-72615-1257921238320
10
11. rostopic
It is a tool for displaying debug information about
ROS Topics, including publishers, subscribers, publishing
rate, and ROS Messages.
Display messages published to a topic.
Usage: $ rostopic echo /topic_name
rostopicecho
11
12. Display the bandwidth used by a topic.
Usage: $ rostopic bw /topic_name
rostopicbw
rostopichz
Display the publishing rate of a topic. The rate reported is by
default the average rate over the entire time rostopic has
been running.
Usage: $ rostopic hz /topic_name
12
13. Print information about topic.
Usage: $ rostopic info /topic_name
rostopicinfo
rostopicfind
Find topics by type.
Example: $ rostopic find std_msg/String
13
14. Display topic type of a topic.
Usage: $ rostopic type /topic_name
rostopictype
rostopiclist
Display a list of current topics.
14
16. rosservice
It is a tool for listing and querying ROS Services.
List all the services that are currently available.
rosservicelist
16
17. Call a service from the command line.
Usage: $ rosservice call /service_name service-args
rosservicecall
rosservicenode
Display the name of the node that provides a particular
service.
Usage: $ rosservice node /service_name
17
18. Display the URI of a service. This is useful, for example, if
you wish to know what address a service is using.
Usage: $ rosservice uri /service_name
rosserviceuri
rosserviceargs
Print the arguments to a service.
Usage: $ rosservice args /service_name
Display all services of a particular type.
Example: $ rosservice find rospy_tutorials/AddTwoInts
rosservicefind
18
19. Display the type of a service.
Usage: $ rosservice type /service_name
rosservicetype
19
20. rosparam
It is a tool for getting and setting ROS Parameters on
the Parameter Server using YAML-encoded files.
Get a parameter value.
Usage: $ rosparam get parameter_name
rosparamget
20
21. Set a parameter to a value. parameter-value is required
unless --textfile or --binfile are specified.
Usage: $ rosparam set parameter_name value
rosparamset
rosparamload
Load parameters from a YAML file into the
specified [namespace] (defaults to /)
Usage: $ rosparam load dump.yaml
21
22. Delete a parameter value.
Usage: $ rosparam delete parameter_name
rosparamdelete
rosparamdump
Dump the YAML-formatted contents of the Parameter
Server to a file.
Usage: $ rosparam dump dump.yaml
Example:
$ rosparam dump -v gains.yaml /gains
dumping namespace [/gains] to file [gains.yaml]
/gains/i=1.0
/gains/p=1.0
/gains/d=1.0 22
24. rosmsg/rossrv
rosmsg contains two command-line
tools: rosmsg and rossrv. rosmsg is a tool for displaying
information about ROS Message types. rossrv is a tool for
displaying information about ROS Service types.
Display a list of all messages.
rosmsglist
24
25. Display a list of all messages in a package.
rosmsgpackage
rosmsgpackages
Display a list of all packages with messages.
25
28. rospack allows you to get information about packages.
Usage: $ rospack find [package_name]
rospack
28
29. Fixes path and pluginlib problems.
rospackprofile
roscd
roscd is part of the rosbash suite. It allows you to change
directory directly to a package or a stack.
Usage: $ roscd [package[/subdir]]
29
30. rosls is part of the rosbash suite. It allows you to ls directly
in a package by name rather than by absolute path.
Usage: $ rosls [package[/subdir]]
rosls
rosed
Open requested ROS file in a text editor.
Usage: $ rosed [package] [file]
30
31. Copy a file from one place to another.
Usage: $ roscp [package] [file] [destination]
roscp
roswtf
Displays a errors and warnings about a running ROS system
or launch file.
31
32. Creates a new ROS stack.
Usage: $ catkin create pkg [package name]
[depend1]..[dependN]
catkincreatepkg
catkin_make
Builds a ROS catkin workspace.
32
34. rosbag
The rosbag command-line tool provides functionality for
ROS bags.
It can record a bag, republish the messages from one or more
bags, summarize the contents of a bag, check a bag's
message definitions, filter a bag's messages based on a
Python expression, compress and decompress a bag and
rebuild a bag's index.
34
35. rosbag record subscribes to topics and writes a bag file with
the contents of all messages published on those topics. The
file contains interlaced, serialized ROS messages dumped
directly to a single file as they come in over the wire. This is
the most performance and disk-friendly recording format
possible. To further reduce disk usage, we can compress bag
files as they are created.
rosbagrecord
35
36. rosbag play reads the contents of one or more bag file, and
plays them back in a time-synchronized fashion. Time
synchronization occurs based on the global timestamps at
which messages were received.
rosbagplay
36
37. rosbag compress is a command-line tool for compressing
bag files.
rosbagcompress
rosbagdecompress
It is a command-line tool for decompressing bag files. It
automatically determines which compression format a bag
uses.
37
38. A tool that prints the information about a particular
transformation between a source frame and a target frame.
Usage: $ rosrun tf tf_echo <source_frame> <target_frame>
tf_echo
38
39. A tool for visualizing, inspecting, and replaying bag files.
Usage: $ rqt bag bag file.bag
rqt_bag
39