ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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