Closed kurshakuz closed 2 years ago
Typing following command and trying autocompletion (tab) produces following output:
ros2 service call /spawn turtlesim/srv/Spawn
-r --rate x:\ 0.0\^Jy:\ 0.0\^Jtheta:\ 0.0\^Jname:\ \'\'\
However, adding an x after above statement, produces different output:
x
ros2 service call /spawn turtlesim/srv/Spawn x
ros2 service call /spawn turtlesim/srv/Spawn x:\ 0.0\ y:\ 0.0\ theta:\ 0.0\ name:\ \'\'\
Executing any of them produces errors:
yaml.scanner.ScannerError: mapping values are not allowed here in "<unicode string>", line 1, column 8: x: 0.0y: 0.0theta: 0.0name: '' ^
The expected and working example should look like the one below.
ros2 service call /spawn turtlesim/srv/Spawn "{x: 0.0, y: 0.0, theta: 0.0, name: ''}"
I bet this is actually an error in https://github.com/ros2/ros2cli. I'm going to move this error over there.
Typing following command and trying autocompletion (tab) produces following output:
However, adding an
x
after above statement, produces different output:Executing any of them produces errors:
The expected and working example should look like the one below.