Subscribing to action servers' feedback topic
I have some action servers which will run sequentially through smach. I will have a launch file that simultaneously launches these action servers. These action servers will publish a common feedback topic say motor_velocity. If I am not mistaken the topic is published as '/action_server_name/feedback/motor_velocity'
. How do I subscribe to that topic without knowing which state is running? The current state that is run by smach should be the server that the subscriber should get the motor_velocity.
- Can I just subscribe to
'/feedback/motor_velocity'
? Since I launched the servers simultaneously aren't they simultaneously publishing it and may just cause confusion? - Is it possible to remap the feedback topic?
- What is a better way of doing this?