Get desktop application:
View/edit binary Protocol Buffers messages
The Keepalive service allows users to specify what the system should do when one or more clients stop communicating with the robot. The actions, and when those actions happen, are specified in a Policy. Clients will periodically check in with the Keepalive service to prevent the actions from happening. This service is in BETA and may undergo changes in future releases.
Add and/or remove policies of the session. Adding or removing only happens if all parts of the request are valid. For example, if the policy to be added is valid, but policies to be removed are not valid, no policy is added.
If the Policy in the request was invalid, CODE_INVALID_REQUEST will be set in this header. In that case, no policies will have been removed. CODE_INVALID_REQUEST can also happen if the Policy contains unknown fields. This may happen if there is a version mismatch between client and server.
The policy added to the session, if any.
The policies removed from the session, if any.
Refresh the timer on a specific policy.
Specify the policy whose timer should be refreshed.
Time the robot recorded the check in. Specified in robot's clock.
Get the status of the current session.
Per-policy status.
Is a Policy controlling the robot? An empty field means that no Policy is actively controlling the robot, though other actions may have triggered. For details, clients must parse the "status" field above.
Used in:
Take the specified action after not hearing from the associated policy_id in this long.
Robot triggers AutoReturn.
Used in:
Leases that AutoReturn may use to accomplish its goals when it triggers. This field is required. This should be a newer lease than the last one used to control the robot. For example, if you have acquired lease [6] from the robot, you should begin controlling the robot with [6, 0, 1] and pass [6, 1] here. If you have added an associated lease, it should be the [6] lease.
Parameters to AutoReturn. See that message's documentation for details.
After coming to a halt, robot sits and powers off its motors. Takes priority over AutoReturn and HaltRobot actions.
Used in:
(message has no fields)
Robot powers off its computer immediately. WARNING: This will cause loss of recent data, and may damage the robot or its payloads if done while the robot is not sitting.
Used in:
(message has no fields)
The leases are marked as stale, making the resource available for other clients. See the LeaseResource message for details.
Used in:
Record an event.
Used in:
The events to be logged.
Used in:
Set if the given policy ID was not valid on the system.
Used in:
Used in:
,What time the policy was last refreshed with a check-in. Specified in robot's clock.
client_name from the RequestHeader of the most recent CheckInRequest for this policy.
Used in:
Policy was added successfully, and/or policies were removed successfully.
Set if any given policy ID was not valid on the system. No policy will have been added.
Set if given policy's associated_lease was not the same, super, or sub lease of the active lease. No policy will have been removed.
Used in:
,Human-friendly name of this policy.
What to do, when.
If provided, this field ties this policy to lease ownership. When any one associated lease is no longer an owner, this policy is automatically removed.
Optionally provide a unique identifier for this policy. Uniqueness is not enforced by the service; this is entirely for client use.