Skip to content

QoS error when running costum node #189

Answered by alsora
gmptrr98 asked this question in Questions
Discussion options

You must be logged in to vote

Hi @gmptrr98, this error indicates that there is a QoS mismatch between the subscriptions in your application and the publishers on the robot (and also there's probably a bug in the simulator since it should use the same QoS as the real robot).

The publishers on the robot use Best Effort reliability.
So, if your subscriptions use "Reliable" reliability, they will not be able to communicate.

To check the QoS for a robot entity, you can use for example: ros2 topic info --verbose /dock

I recommend to use the qos_profile_sensor_data QoS profile in your subscriptions.
For example in Python you can do:

from rclpy.qos import qos_profile_sensor_data
....
subscription = node.create_subscription(
 …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gmptrr98
Comment options

Answer selected by shamlian
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forum_ros2 Forum post about general ROS 2 usage
2 participants