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

Revision history [back]

click to hide/show revision 1
initial version

A guy from my laboratory found the solution:

There was king of a communication problem, so the subscriber qos profile had to be redefined :

qos_sensor = QoSProfile(
    reliability=QoSReliabilityPolicy.RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT,
    history=QoSHistoryPolicy.RMW_QOS_POLICY_HISTORY_KEEP_LAST,
    depth=1
)


self.get_logger().info('Use QoS Sensor')

self.subscription = self.create_subscription(
    PoseStamped,
    'Turtle_2/pose',
    self.listener_callback,
    qos_profile=qos_sensor)

Thanks to everyone who tried to help