Ask Your Question

Rviz give a transform error when not "unreliable"

asked 2020-06-18 07:58:15 -0600

jGany gravatar image

Hi, I am working with ros2-dashing and I notice that when I don't check "unreliable" in rviz for a topic, rviz don't receive messages or raise the Could not transform from [odom] to [base_footprint] error. If I check unreliable (which made rviz subscribe udp ) the messages are received normally.

I don't understand the error, because I using a simulate robot in gazebo, and I can't see why network parameters could affect local simulations. This happens with the odom topic (error transform from base_footprint to odom ), which is generated by the gazebo diff drive plugin and with the lasers topics (0 messages receive ) which are generated by libgazebo_ros_ray_sensor plugin.

Does anyone face the same problem or have ideas what can be the source ?

edit retag flag offensive close merge delete


I don't know for sure, but I could imagine reliable is mapped onto DDS QoS parameters with the same name (and otherwise it will be best effort for instance). DDS publishers/subscribers with different QoS settings can't always connect, which could be the cause of what you report.

See About Quality of Service settings - QoS compatibilities on the ROS Index for some more information.

I can't see why network parameters could affect local simulations

this doesn't have anything to do with which network you are using or not (well, not directly anyway). If it is the QoS settings, it will happen even if no networking is used at all.

gvdhoorn gravatar image gvdhoorn  ( 2020-06-18 08:32:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-18 09:53:03 -0600

updated 2020-06-18 09:53:22 -0600

There are pairings of QoS settings in DDS (and by extension ROS2) that are incompatible with each other, you've found one such pair - that's why it doesn't work.

There are some tables on this page which can help you understand those that are incompatible.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-06-18 07:58:15 -0600

Seen: 296 times

Last updated: Jun 18 '20