Robotics StackExchange | Archived questions

Missing commands (ROS2 dashing, Ubuntu 18.04)

Hi, I was going through the ROS2 tutorials using turtlesim, and I got to the "Understanding ROS2 services" tutorial (https://index.ros.org/doc/ros2/Tutorials/Services/Understanding-ROS2-Services/#ros2services), where it tells me to run the following command

ros2 service type abcdef

When I tried to run this, I got an error saying that "type" isn't a valid command. Running "ros2 service type -h" shows that I only have two commands in "service": "list" and "call". Upon doing some googling, it seems like I'm missing "find" and "type" from service. Additionally I realized that I'm missing the "interface" commands entirely. I guess I messed up my installation of ROS2? How do I go about fixing this problem? Thanks in advance for any help!

Asked by pathojin on 2019-10-31 17:07:58 UTC

Comments

Answers

Which version of ROS2 do you have and how did you install it?

I'm using a binary install of ROS Dashing and I don't have those commands either. It looks like the change to the ros2service package that added the type and find command line verbs hasn't been back-ported into Dashing, so those commands will only be available on the master branch until the Eloquent release.

Compare the Dashing branch of ros2service to the master branch.

Asked by jschornak on 2019-11-04 23:22:13 UTC

Comments

So there isn't a way for me to add these commands?

Asked by pathojin on 2019-11-10 14:29:07 UTC