Closed hansryant closed 1 year ago
related to https://github.com/ros2/ros2cli/issues/680
I changed the title since the current format isn't wrong, though it may be inconvenient in some circumstances.
@hansryant I know for at least Rolling (and probably Humble) we added in a --flow-style
argument so you can get the old argument (what @fujitatomoya references above). Can you try that out and see if it is more to your liking?
I can only use eloquent since my system is only running ubuntu 18.04, but anyway I tried to follow the #680 implementation on how to solve this and it works!
I will just put the steps on how I do it in case other people have this issue as well (for older ROS2 distro):
/opt/ros/<distro>/lib/python3.8/site-package/rosidl_runtime_py
convert.py
yaml.dump
and add default_flow_style=True
to itThanks for the help! @fujitatomoya @clalancette
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
Running in Ubuntu 18.04, ROS2 Eloquent, when I try to echo the topic:
Actual behavior
And then I have another machine that is running in Ubuntu 20.04, ROS2 Foxy, and the topic I got from echo is:
Additional information
I want to replicate the topic format from the expected behavior when I run the ROS2 Foxy on it, but it seems that I can't find the problem or how to fix the formatting problem, especially in the covariance part (which is an array). With the format of newline for each covariance is hard to read compared with the array format like the expected behavior. Is there any suggested solution to debug or to fix the issue? Thank you