ROS Command Line Tools
Last updated
Last updated
is a command-line tool for performing various operations on ROS , including playing, recording, and validating.
See [ROS/Tutorials/reading msgs from a bag file](http://wiki.ros.org/ROS/Tutorials/reading msgs from a bag file) for help and a tutorial on how to use the 3rd-party ros_readbagfile
command-line tool.
is not a command, but rather a suite of commands and functionality. It requires that you source the contents of the rosbash file
which, if you followed the installation guide, should already be done by your bashrc file.
rosbash provides the commands roscd
and rosed
, in addition to adding correct tab-completion functionality to roscd
, rosed
, rosmake
, and rosrun
.
roscd
is part of the suite. It allows you to cd directly to a package, stack, or common location by name rather than having to know the package path.
Usage:
Example:
roscd without an argument will take you $ROS_ROOT
. In addition to your packages and stacks, there are some common locations, "log", and "test_results" which will take you directly to those locations.
For advanced users, you can extend roscd
with your own keywords by modifying the $ROS_LOCATIONS
environment variable to contain a colon-separated list of keys and locations that will be included in the roscd path. For example,
Prior to ROS-0.8, you could roscd to the first directory on your $ROS_PACKAGE_PATH
using the pkg keyword. This functionality can be restored with:
New in C Turtle
Usage:
Usage:
Example:
If the filename is not uniquely defined within the package, a menu will prompt you to choose which of the possible files you want to edit.
rosed
will open the editor defined in your $EDITOR
environmental variable, or else default to vim
.
rosrun
allows you to run an executable in an arbitrary package without having to cd (or roscd) there first.
Usage:
Example:
The ROS graphical tools often require additional dependencies before they can be used, such as graphviz and Python GTK. You can use bash <(rosdep satisfy PACKAGE_NAME)
to quickly install the dependencies for these tools.
如果工具未安装,可以使用以下命令安装:
在节点运行后,在命令行输入rqt_graph
和rosrun rqt_graph rqt_graph
,即可看到表示各节点之间关系的网络拓扑图。
The following tools may be commonly used by internal tools, but aren't often used by end users.
Cleanup filesystem resources (e.g. log files) created by ROS. See .
runs the ROS Core Stack (, [Parameter Server](http://wiki.ros.org/Parameter Server), , etc...).
Documented at , this installs system dependencies
rosed
is part of the suite. It allows you to directly edit a file within a package by package name rather than having to know the package path.
roscreate-pkg
creates common , , and other files necessary for a new ROS package. It is part of the package.
roscreate-stack
creates common [Stack Manifest](http://wiki.ros.org/Stack Manifest), and other files necessary for a new ROS stack. It is part of the package.
launches a set of nodes from an XML configuration file and includes support for launching on remote machines. More documentation is available on the .
Removed in ROS 1.4: this is now part of the tool
finds the repository that a ROS package is stored in, e.g. roslocate svn tf
. It makes it easy to quickly checkout the source of a package: svn co
roslocate svn tf``. More documentation is available on the .
See the page.
displays data structure definitions. More documentation is available on the .
displays runtime node information and lets you ping nodes to check connectivity. More documentation is available on the .
See the page.
enables getting and setting parameter server values from the command-line using YAML-encoded text.
displays Service data structure definitions. More documentation is available on the .
displays run-time information about and also lets you print out messages being sent to a topic. More documentation is available on the .
See the page.
displays run-time information about and also lets you print out messages being sent to a topic. More documentation is available on the .
is a graphical tool for viewing data in ROS .
generates a PDF of ROS dependencies.
rqt_graph
displays an interactive graph of ROS nodes and topics. See the package for documentation.
plots numerical data on a ROS topic over time.
See the page