ReferenceREST API

Power

REST API: Wake and rest. Generated from the OpenAPI document.

No motion in this phase

nao-rs doesn't drive the motors yet, and the robot must not move during bring-up without a person present. These operations exist and are documented for completeness; don't use them on a robot.

Power state

GET /v1/power

The robot's primary state from the latest state.

Token: required · Lease: not needed

StatusMeaningBody
200Current primary statePowerStatus
401Missing or wrong tokenErrorBody
curl -H "Authorization: Bearer $TOKEN" http://$ROBOT:7702/v1/power

Wake or rest

PUT /v1/power

wake makes the robot stiff and ready to move, rest unstiff. The death switch overrides stiffness whatever is requested.

Token: required · Lease: required (Nao-Lease header)

Request body (application/json)

PowerRequest

FieldTypeRequiredMeaning
statePowerStateyes
StatusMeaningBody
202Requested; watch primary_state for the resultPowerRequest
409Not the active leaseErrorBody
422Invalid inputErrorBody
428No Nao-Lease headerErrorBody

On this page