Requesting to callback for already at goal. #523
Replies: 2 comments
-
I can imagine some legitimate use cases for wanting to be notified when the robot is being commanded to the location that RMF believes it is already on, so I'm open to adding an API that lets you hook a callback into that event. I would put it in the unstable API for now since we're trying to wind down official feature development for these APIs so we can direct attention to the next generation. Are you able to share any details about what you want to do inside your callback? That would help me understand what kind of arguments to pass to the callback. For example which of the following best describes your purpose for wanting the callback:
This is exclusively for the EasyFullControl API [C++][Python]. If you use the basic command handle then you'll need to filter out these points yourself. The simplest way is to iterate through the path as soon as you receive it and identify whenever you have two sequential waypoints with the same graph index, then delete the earlier of the two waypoints before you begin following the path. |
Beta Was this translation helpful? Give feedback.
-
Hi! @mxgrey
In this log I got the lines from the fleet adapter node: "Got distance from [1] as 0.000000" "Robot [floor/apex] is already at its goal [1]" I was using a Command Handler Template for the task given. As per the free fleet template, it's not suitable for my application. The "Received task planner response" is the task_response for a direct request submission. The follow_new_path function is not receiving any waypoints for already_at_goal. If possible, I need at least the robot's location (already at a place) in the task_response callback.
This is direct request i was using from command handler |
Beta Was this translation helpful? Give feedback.
-
Hi @mxgrey ,
I am using the submit direct request call for all tasks. When I provide the same location, the "go to place" function prints a distance of 0. As a result, the "follow new path" function does not receive any callbacks. Is there a way to implement a callback to capture that the robot is already at the goal?
Also i want to know, is that possible to use skip_rotation_command (fleet config) on the command handler py wrapper.
Beta Was this translation helpful? Give feedback.
All reactions