QOS python code for create_subscriber
Hi I have tried various code snippets but have not been able to create correct code for sensor QOS definition for a service I am writing in python
self.speed_subscription = self.create_subscription(
Int32,
'distance',
self.speed_listener_callback,1)
# self.listener_callback,rmw_qos_profile_sensor_data)
So I like to replace the 1 with sensor profile for QOS
Any hints is appreciated