Skip to main content

Navigation API

Send navigation goals to a robot.

Send Waypoint

POST /api/robots/{robotId}/navigation/waypoints

Sends a navigation goal to the robot (internally executed as the built-in navigate_to action). Requires operate access on the robot.

Path Parameters

ParameterDescription
robotIdUnique robot identifier

Request Body

{
"waypoints": [
{ "x": 12.5, "y": 3.2, "theta": 1.57, "frameId": "map" }
]
}
FieldTypeRequiredDescription
waypointsarrayYesNon-empty list of waypoints
waypoints[].xnumberYesX coordinate
waypoints[].ynumberYesY coordinate
waypoints[].thetanumberYesOrientation (radians)
waypoints[].frameIdstringNoReference frame (e.g. map)
note

The API currently accepts exactly one waypoint. Sending more than one returns 400; multi-waypoint routes are planned.

Response

{ "message": "Action executed" }

Errors

StatusCondition
400Invalid body, or more than one waypoint supplied
403User lacks operate access to this robot
500The navigation action failed to execute

Example

curl -X POST \
-H "x-auth-api-key: YOUR_KEY" \
-H "Content-Type: application/json" \
http://localhost:3000/api/robots/robot_abc123/navigation/waypoints \
-d '{ "waypoints": [ { "x": 12.5, "y": 3.2, "theta": 1.57, "frameId": "map" } ] }'