Table of Contents |
---|
...
Structure |
| ||||||
---|---|---|---|---|---|---|---|
Argument Description |
| ||||||
Function Description | This command is used to set the response format of the TCP/IP communication with the Realtime Controller. The Realtime controller stores this response type for each client that is connected to it. This command should be called at the beginning of a program to indicate the format in which the responses should be sent. If this command is not sent, the default response type is yaml. If the As long as the IP address has at least one open connection, the settings will persist. | ||||||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||||||
Example Request |
| ||||||
Example YAML Responses |
| ||||||
Example CSV Responses |
|
...
GetUnits
Structure |
|
---|
Argument Description
length
:
| |
Argument Description |
|
---|
0
or m,meter,
|
1
or cm,centimeter,
|
2
or mm,millimeter,
|
3
or ft,foot,
|
4
or in,inch,
|
|
0
or rad,rads,radian,
|
1
or deg,degs,degree,degrees,°
set_ip_default
:
Status | ||||
---|---|---|---|---|
|
Function Description
This command is used to set the unit convention for API calls made to the Realtime controller. On first project load, the default units of millimeters
and degrees
will be used, and if this command is called, the units will be stored for that specific client. Subsequent loads for that project will use require the client to reinitialize their unit convention.
If the set_ip_default
argument is enabled, then all new connections from the IP address will use these unit preferences. Existing sockets will be unaffected by this change, until they re-establish a connection.
As long as the IP address has at least one open connection, the settings will persist.
Response Details
This command will return a response to acknowledge the command has been received and executed successfully.
Example Request
Code Block |
---|
{topic: SetUnits,data: {length: in, angle: deg}} |
Example YAML Responses
Code Block |
---|
{topic: SetUnits,type: Response} |
Example CSV Responses
Code Block |
---|
SetUnits,0 |
GetMode
Structure
Code Block |
---|
{topic: GetMode} |
Argument Description
None
Function Description
This command retrieves the current mode of the Realtime Controller.
Response Details
This command will return a response code, followed by the current state of the system. The states of the system are: Config mode, Operation mode, Calibration mode and Fault mode.
Example Request
Code Block |
---|
{topic: GetMode} |
Example YAML Responses
| |||
Function Description |
| ||
---|---|---|---|
Response Details | This command will return a response to show the units used by the loaded project. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
SetUnits
Structure |
| ||||||
---|---|---|---|---|---|---|---|
Argument Description |
| ||||||
Function Description | This command is used to set the unit convention for API calls made to the Realtime controller. On first project load, the default units of If the As long as the IP address has at least one open connection, the settings will persist. | ||||||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||||||
Example Request |
| ||||||
Example YAML Responses |
| ||||||
Example CSV Responses |
|
GetMode
Structure |
| ||
---|---|---|---|
Argument Description | None | ||
Function Description | This command retrieves the current mode of the Realtime Controller. | ||
Response Details | This command will return a response code, followed by the current state of the system. The states of the system are: Config mode, Operation mode, Calibration mode and Fault mode. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | If a robot error/fault state occurs for one of the robots in the currently loaded deconfliction group, the Realtime Controller will enter a fault state. Examples of reasons may be: lost connection to a robot due to an E-stop, or the robot entering a fault state due to excessive speed or force. The ClearFaults command will attempt to recover any faults that the OEM controller allows allows to be cleared programmatically, and transition the Controller back into Config mode if possible. It will fail if there are still active, unresolvable faults. If | ||
Response Details | This command will return a single response code as a result value. | ||
Example Request |
| ||
Example Responses |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This function loads an RPC project. A load result will be returned once the process has finished and then RapidPlan will be in configuration mode. | ||
Response Details | This command will return a response code to acknowledge the command has been received.
| ||
Delayed Response Details | Once the load is completed, the system will send a delayed response to indicate the project has finished loading.
| ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
...
Structure |
| ||||
---|---|---|---|---|---|
Argument Description |
| ||||
Function Description | This command is used to define which project is the Default project that will automatically be loaded when RapidPlan powers on or is otherwise not in Operation Mode. Sending a SetDefaultProject command without specifying the | ||||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||||
Example Request |
or
| ||||
Example YAML Responses |
| ||||
Example CSV Responses |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This command indicates that the project is ready to begin operation. This call is blocking, until all active robots have been connected. Once all participating robots have indicated readiness, return messages will be sent, and subsequent Move calls will be accepted. | ||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This command will re-activate a robot. After this command, when Connect is called, the activated robot will be connected to, and when in OPERATION mode this robot will be controlled by RTR. | ||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||
Example Request |
| ||
Example YAML Response |
| ||
Example CSV Response |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This command ‘deactivates’ a robot which means the RTR controller will ignore it when connecting to the robots within a project. Subsequent | ||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||
Example Request |
| ||
Example YAML Response |
| ||
Example CSV Response |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This command is used to enable and set the behavior of a robot in case its original move has timed out. With this feature enabled, in the event a Move command fails or is interrupted, the Realtime Controller will not return a response code immediately, and will instead automatically plan to the specified alternate position. Depending on the behavior of complete move the Realtime Controller will either return a response Error code indicating the robot reached the alternate location, or continue to plan to the location that was first specified in the move command. | ||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||
Example Request |
| ||
Example Responses |
| ||
Example CSV Responses |
|
...
Structure |
| ||||
---|---|---|---|---|---|
Argument Description |
A
If a robot's external axes remain fixed during a move, or switch to different setpoint values defined by a target,
Robot pose value plus
| ||||
Function Description | With this new generic A A A | ||||
Response Details | When a Move request is received, path planning occurs before a response is sent. If a path is found, this command will return a response code to acknowledge the command has been received, the name of the robot that this move is for, and a unique sequence ID for this specific move. If planning fails, an appropriate error code will be returned, and no delayed response will be sent.
| ||||
Delayed Response Details | If a path was found, the system will send a
or, for a
| ||||
Example Request |
| ||||
Example YAML Responses |
| ||||
Example CSV Responses |
|
...
Structure |
| ||||||
---|---|---|---|---|---|---|---|
Argument Description |
SetRobotPreset before the combined move. This argument provides the default preset which is used for all move segments. If this argument is not included, then each move segment in the move array must specify the preset that should be used for that move segment. Each move can use a different preset provided the TCP or number of controlled axes do not change. | ||||||
Function Description |
The smoothing argument of each individual move command will specify if it will blend into the next move in the list, and at what distance from the end of the current move. In the event a If move queuing is being used, a | ||||||
Response Details | This command will return an initial response to indicate that the command has been processed and a collision free path has been found for all moves, smoothing included. A unique sequence number will be included to identify the
| ||||||
Delayed Response Details | For every If a trigger output is specified for a move segment, a feedback message will be sent as soon as the trigger output is activated to on or off. Different segments of the same
| ||||||
Example Request |
Note: the new line (\n) and tab (\t) characters have been added for readability, the actual request format does not include them. | ||||||
Example YAML Responses |
| ||||||
Example CSV Responses |
|
CancelMove
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This function tells the Realtime Controller to abort planning and motion for the specified robot. After calling this, a robot may be left in an off roadmap location and will require a planning move command. If If a move is canceled mid-motion after a | ||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||
Example Request |
|
|
| |||
Example YAML Responses |
|
---|
|
|
Example CSV Responses
Code Block |
---|
CombinedMove,0,Robot1,61
CombinedMoveFeedback,0,Robot1,61,0
CombinedMoveFeedback,0,robot_1,61,output_1,1
CombinedMoveFeedback,0,Robot1,61,1
CombinedMoveFeedback,0,robot_1,61,output_1,0
CombinedMoveFeedback,0,Robot1,61,2
CombinedMoveResult,0,Robot1,61 |
...
| |||
Example CSV Responses |
|
---|
GetTargets
Structure |
|
---|
|
| |
Argument Description |
|
---|
acceleration_factor
[ OPTIONAL ] : The acceleration factor at which the robot will move on a scale from 0.5(50%) to 1.0(100%), when the move is being canceled. The default value is 0.8.Function Description
This function tells the Realtime Controller to abort planning and motion for the specified robot. After calling this, a robot may be left in an off roadmap location and will require a planning move command.
This command is only accepted when the RTR Controller is in OPERATION
mode.
If a series of Move
commands are queued for the robot in question, they will all be canceled simultaneously. The delayed responses of these commands are not guaranteed to be in queue order.
If CancelMove
is called before planning is finished for a Move
command, robot preset of the canceled move will still be applied because the preset had changed before planning started.
Move
command which also sets the robot preset, the robot preset will be maintained.|Specifies which robot’s targets will be returned.
| ||||||
Function Description | This command retrieves the targets for a given robot in a specific preset in the loaded project. The default behavior is to return the targets in the active robot preset, but a different preset can be specified. | |||||
---|---|---|---|---|---|---|
Response Details | This command will return a response |
code, followed by a comma separated array of the target names. | |||
Example Request |
|
---|
|
| |||
Example YAML Responses |
|
---|
| ||
Example CSV Responses |
|
---|
|
CreateTarget
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This command creates a target in the active robot preset for the specified robot. The target is created using the robot’s current joint angles. To ensure consistent joint angle readings, the robot must stay stationary while the target is created. Therefore, the controller must be in No connections will be created automatically for the new target. | ||
Response Details | This command will return an acknowledgement with a status code indicating the command was received and executed. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
If
| ||
Function Description | This command updates the specified targets position to be at the specified robot TCP location in its current preset, or using an optional pose value. The target’s new position will be used for all assigned robots. A target’s position will only be updated, if all of its connections remain valid, otherwise the command fails and returns an error code Only one target can be updated at a time. While a target is updating, any subsequent UpdateTarget commands will be rejected. With the | ||
Response Details | This command will return an acknowledgement with a status code indicating the command was received and is being executed. | ||
Delayed Response Details | This command will also return a delayed response when the update has completed or failed. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This command retrieves the current joint angles of a specified robot. If the robot has additional axes, they will be included sorted by their driver index. The values will be returned in the client’s units for both revolute and prismatic joints. | ||
Response Details | This command will return a response code, followed by the current joint angles in a comma separated array. This command will always include the robot axes, and by default will include the position of external axes if present. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
...
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This command returns information about an object’s state for a loaded project. | ||
Response Details | This command will return a response with the object’s active state and a list of possible object states. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
GetStatefulObjects
Structure |
| ||
---|---|---|---|
Argument Description | None. | ||
Function Description | This command retrieves the stateful object names for the loaded project. | ||
Response Details | This command will return a response code, followed by a comma separated array of the object names. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
SetObjectState
Structure |
| ||
---|---|---|---|
Argument Description |
| ||
Function Description | This command changes the active state of a stateful mate. An object is specified as a function argument, and the direct parent’s mate state will be set based on the specified When called, the selected object state is stored to disk so upon project reload, the last active state will be used. | ||
Response Details | This command will return a response to acknowledge the command has been received and executed successfully. | ||
Example Request |
| ||
Example YAML Responses |
| ||
Example CSV Responses |
|
...