Closed torrhen closed 2 years ago
I cannot reproduce this issue on Ubuntu 20.04 or 22.04 with https://github.com/ros2/ros2/commit/28a83a843324918293ccd0d106117cf2fa4e33a6 (cyclonedds and fastdds just works okay.)
New install and build resolved the issue in the end. Thanks for checking regardless.
Bug report
Required Info:
Steps to reproduce issue
Caused when attempting to print the messages sent/received over a topic. The example below highlights this with a
turtlesim
example, but the same error is reproducible fortalker
andlistener
nodes over the/chatter
topic.ros2 topic echo /turtle1/cmd_vel
Expected behavior
Actual behavior
Additional information
The same error is thrown when including the information of a message over the topic, e.g.
ros2 topic echo /turtle1/cmd_vel --include-message-info --csv
A temporary fix can be found by providing a default argument to the
_subscriber_callback
method below on line 288 within ros2topic/verb/echo.pyThis gives the expected behaviour for the ordinary
ros2 topic echo <topic-name>
example above as well forros2 topic echo --include-message-info <topic-name>
with or without--raw
(which prints the 'Default' string before each message in this case).However, this does not help with
--include-message-info --csv
as it raises an entirely new error.