ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Rviz give a transform error when not "unreliable"

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

jGany gravatar image

updated 2022-06-11 10:38:34 -0500

lucasw 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

Comments

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

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 https://index.ros.org/doc/ros2/Concep... which can help you understand those that are incompatible.

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 555 times

Last updated: Jun 18 '20