Skip to content

get_motion_settings

Runs at once Any mode Open to every client

Read the motion settings every queued move starts from. The session settings are the robot's, not one program's: set_joint_speed(), set_blending(), set_profile(), set_ik_solver() and set_completion_policy() set them for every move that does not name its own. They go back to their start values when control passes to another client or is released, and when the robot software restarts; the same client taking control again keeps them. The status carries the same dict as motion_settings.

Syntax

robot.get_motion_settings()

Arguments

None.

Returns

dict

A dict: speed (percent of the speed limits), blend (percent, the exact-velocity blend set_blending() sets), profile, ik_solver and completion_policy.

Examples

robot.get_motion_settings()["speed"]
Usage restrictions never refused

This command runs at once; it is not queued. The robot accepts it in any mode and state, from every client.

It never answers with an error code.

In Python, the call raises:

  • RobotTimeout: The robot did not answer within 5 s.
  • RobotConnectionError: The client is not connected.

If the connection drops while the call waits for the robot's answer, it raises CommandRejected with the code CONNECTION_LOST (DISCONNECTED after disconnect()); while it waits for the robot's status, RobotConnectionError.

Like every immediate command, it also answers BAD_ARGS when a raw client sends a value the robot cannot read at all, and INTERNAL when it fails inside the robot.

Protocol

A client that does not use robotclient sends this over the TCP command protocol (port 29000) for the example above:

{"id": "c1", "cmd": "get_motion_settings", "args": []}

See also