Use Action or Service when called in a loop?

asked 2023-07-03 03:14:18 -0500

chris_1_ gravatar image

I'm doing a pose estimation with an ArUco marker on my robot. This is done to dock the robot. I have already the docking action and inside this action a pose estimation service is called synchronous within a loop. Is the pose estimation better suited as a action as it is called often inside the loop? But if it's better suited is it also possible to call the action synchronously?

The docking action is working like this but I'm wondering if this is the ROS intended style?

Thanks :)

edit retag flag offensive close merge delete