ros2 topic echo /odom covariance is unclear
See original GitHub issueBug report
Required Info:
- Operating System: Ubuntu20.04
- Installation type: binaries
- Version or commit hash: ROS2 Foxy
- DDS implementation:
- Client library (if applicable):
Steps to reproduce issue
ros2 topic echo /odom
Expected behavior
The covariance should line up horizontally so we can see it clearer. But they’re actually arranged vertically.
Actual behavior
header:
stamp:
sec: 1
nanosec: 639623972
frame_id: /world
child_frame_id: /quadrotor
pose:
pose:
position:
x: 0.0
y: 0.0
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 1.0
covariance:
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
twist:
twist:
linear:
x: 0.0
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 0.0
covariance:
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
- 0.0
---
Additional information
Feature request
Feature description
Implementation considerations
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Exercise 2.4 question - working with messages and ros1_bridge
I can see the topic if I issue: rostopic list tho. Is just the ros2 command doesnt get the whole list of topics?...
Read more >robot_pose_ekf does not publish anything - ROS Answers
I had a similar issue the answer was to delete the "/" at the beginning of the topic name. rostopic echo robot_pose_ekf/odom_combined.
Read more >ros2 topic echo doesn't print arrays correctly #213 - GitHub
ros2 topic echo doesn't print arrays correctly · Issue #213 · ros2/ros2cli · GitHub.
Read more >robot_pose_ekf won't publish any messages
Hi, can you echo your IMU topic because the error is coming due to the zero covariance matrix of your IMU data. –...
Read more >[ROS Q&A] 196 - How to Output Odometry Data - The Construct
Otherwise, it would print continuously until you press Ctrl + C. user:~$ rostopic echo /odom -n1 header: seq: 4732 stamp: secs: 236 nsecs:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just adding the
default_flow_style=True
toyaml.dump
could work.I tried to add
yaml.add_representer(list, __represent_list)
, but it doesn’t work. After trying to add a newRos2Dumper
derived fromyaml.Dumper
, and overwrite theexpect_node
method (unmaintainable), it seems to work as expected. Usingstride = 8
as following,So I think we can provide two extra options to users,
Thanks, I’d like to post the detailed steps below for anyone who has the same problem. In
/opt/ros/foxy/lib/python3.8/site-packages/rosidl_runtime_py/convert.py
, line 66-94, add a param in line 93 will work.