Skip to content

Commands

Published On:
Dec 1, 2016
Last Updated:
Dec 1, 2016

The following page lists terminal commands (i.e. commands that can be run in bash/the shell) to control ROS.

Terminal Commands

Creates a new ROS master, parameter server, and a rosout logging node.

Terminal window
$ roscore

Runs a ROS application.

Terminal window
$ rosrun <package> <executable>

Prints information about a node.

Terminal window
rosnode info

Prints a list of the active topics.

Terminal window
$ rostopic list

Prints a topic’s messages.

Terminal window
$ rosnode echo /topic

Publishes a message to a topic.

Terminal window
$ rostopic pub <arguments>