ros2 / ros2cli

ROS 2 command line interface tools
Apache License 2.0
166 stars 158 forks source link

`ros2 node list`, `ros2 service list` and `ros2 param list` randomly display information on Windows #876

Open bananasmoothii opened 6 months ago

bananasmoothii commented 6 months ago

Bug report

Required Info:

Steps to reproduce issue

Run

ros2 run turtlesim turtlesim_node

then

ros2 node list

a bunch of times, and

ros2 service list

a bunch of times.

Expected behavior

Command always containing the list of nodes / services

Actual behavior

image The /turtlesim node was found 10 out of 16 times in my test

image The services where found 8 out of 16 times in my test

Edit: I get the same bug with ros2 param list

When trying to get more information about a node or service that doesn't exist, for example ros2 service type /clear, the command just exits with exit code 1.

Additional information

When using rqt 'Plugins' > 'Introspection' > 'Node graph', nodes always display, and when using the 'Service Caller', services always show up.

A similar issue is #582 but this one seems to be fixed

For the fancy PowerShell displaying, I use oh-my-posh