ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There are equivalents for some of them. In ROS 2 they're all under the ros2 command.


rosmsg / rossrv

The equivalent to rosmsg/rossrv is ros2 interface.

$ rosmsg show std_msgs/Bool
bool data

ROS 2 equivalent

$ ros2 interface show std_msgs/msg/Bool
bool data

and for services

$ rossrv show std_srvs/Trigger
---
bool success
string message

ROS 2 equivalent

$ ros2 interface show std_srvs/srv/Trigger
---
bool success   # indicate successful run of triggered service
string message # informational, e.g. for error messages

And ros2 interface also works with actions

$ ros2 interface show test_msgs/action/Fibonacci
#goal definition
int32 order
---
#result definition
int32[] sequence
---
#feedback
int32[] sequence

rosed / roscd / rosls

In ROS 1 I think these were provided by rosbash: http://wiki.ros.org/rosbash

$ rosls std_msgs
cmake  msg  package.xml

There's nothing equivalent in ROS 2 that I know of. Maybe you could make a bash alias around ros2 pkg prefix?

$ ls `ros2 pkg prefix --share std_msgs`
cmake  environment  local_setup.bash  local_setup.dsv  local_setup.sh  local_setup.zsh  msg  package.dsv  package.xml

Here's a brief intro to the command line tools. https://index.ros.org/doc/ros2/Tutorials/Introspection-with-command-line-tools/

If you'd like to contribute to them, most of the source code is in the ros2cli repo: https://github.com/ros2/ros2cli . Some tools are in other repos; for example ros2 launch is in the ros2/launch_ros repo: https://github.com/ros2/launch_ros/tree/master/ros2launch