Motion service API

The motion service exposes the methods below for planning and executing component motion. Most methods are implemented only by module-based motion services; the builtin service supports Move, DoCommand, and GetStatus.

Method NameDescription
MoveThe Move method is the primary way to move multiple components, or to move any object to any other location.
MoveOnMapMove a base component to a destination pose on a SLAM map.
MoveOnGlobeMove a base component to a destination GPS point, represented in geographic notation (latitude, longitude).
GetPoseGetPose gets the location and orientation of a component within the frame system.
StopPlanStop a base component being moved by an in progress MoveOnGlobe or MoveOnMap call.
ListPlanStatusesReturns the statuses of plans created by MoveOnGlobe or MoveOnMap calls that meet at least one of the following conditions since the motion service initialized: - the plan’s status is in progress - the plan’s status changed state within the last 24 hours All repeated fields are in chronological order.
GetPlanBy default, returns the plan history of the most recent MoveOnGlobe or MoveOnMap call to move a base component.
ReconfigureReconfigure this resource.
FromRobotGet the resource from the provided machine.
DoCommandExecute model-specific commands that are not otherwise defined by the service API.
GetResourceNameGet the ResourceName for this instance of the motion service.
CloseSafely shut down the resource and prevent further use.

For full method signatures, parameters, and code examples, see the auto-generated motion API reference.

Method overview

Move

Plans and executes a motion to a destination pose. This is the primary method for arm and gantry planning.

Key parameters:

  • component_name: the arm or gantry to move
  • destination: a PoseInFrame specifying the target pose and reference frame
  • world_state: optional obstacles and transforms
  • constraints: optional linear, orientation, or collision constraints

MoveOnMap

Plans and executes motion on a SLAM map.

MoveOnGlobe

Plans and executes motion to a GPS coordinate. Use the navigation service for GPS-based navigation.

GetPlan

Retrieves the plan for an executing motion.

ListPlanStatuses

Lists all active and recently completed plan statuses.

StopPlan

Stops an executing plan.

GetPose (deprecated)

Returns a component’s pose. Deprecated: the robot service’s GetPose replaces it. (Python callers currently still use this motion-service method; see the frame system API reference.)

DoCommand

Sends arbitrary commands. The builtin motion service supports "plan", "execute", and "executeCheckStart" commands.

GetStatus

Returns generic resource status for the motion service. Useful for liveness checks.