Skip to content

Incompatible QoS on topic /battery_state #23

Discussion options

You must be logged in to vote

An answer to this question is explained in more detail here:
https://answers.ros.org/question/332207/cant-receive-data-in-python-node/

The short answer is instead of using 10 in the create_subscription call, use:

from rclpy.qos import qos_profile_sensor_data

self.subscription = self.create_subscription(
        BatteryState,'/battery_state',self.listener_callback,qos_profile_sensor_data)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chrisbuerginrogers
Comment options

@justinIRBT
Comment options

@chrisbuerginrogers
Comment options

Answer selected by justinIRBT
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