Skip to content

identify_arm

Runs at once Any mode Open to every client

Play this arm's identify tune through one of its motors. A short tune, so you can hear which arm a client is talking to: the one chosen with set_sound(identify_tune=...) ("fanfare" as shipped). One drive plays it: J2, unless set_sound(node=...) names another. At rest it plays on the robot's sound axis (q as shipped: the tone is a small torque at its pitch, which nothing judges at rest); in EXEC, JOG, RTI and SOFT_RTI on d (no torque), so it never disturbs a move. Nothing moves. It plays with the arm enabled or disabled, in any mode except with the motors off, while flashing and while the robot starts. It needs no control of the robot.

Syntax

robot.identify_arm()

Arguments

None.

Returns

Nothing.

Examples

robot.identify_arm()
Usage restrictions 2 codes

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

It answers with one of these codes when it does not carry the command out:

  • [6025] RTI not running or not answering — rTI did not answer within 1 s: it is not running or not responding. The command may still have taken effect
  • [6026] Refused by RTI — the identify sound is switched off (set_sound(identify=0)), or the drives do not hold now: the motors are off, the robot is flashing a drive or starting. The message says why

In Python, a code above raises CommandRejected; its number is the code. The call raises:

  • CommandRejected: RTI refused it: the identify sound is switched off, or the drives do not hold now. Or RTI did not answer within 1 s (Errors:).
  • 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": "identify_arm", "args": []}

See also