gusimplewhiteboard
wb_sensors_body_sensors Struct Reference

WHITEBOARD_POSTER_STRING_CONVERSION. More...

#include <wb_sensors_body_sensors.h>

Inheritance diagram for wb_sensors_body_sensors:
Collaboration diagram for wb_sensors_body_sensors:

Public Attributes

signed int DCM_Time
 Absolute time used for all timed commands in the DCM, an integer (signed), with 1 ms precision. More...
 
float InertialSensor_AccX
 accelerometer X value More...
 
float InertialSensor_AccY
 accelerometer Y value More...
 
float InertialSensor_AccZ
 accelerometer Z value More...
 
float InertialSensor_GyrX
 gyro X value More...
 
float InertialSensor_GyrY
 gyro Y value More...
 
float InertialSensor_GyrZ
 gyro Z value (Nao V5 have a Z axis) More...
 
float InertialSensor_AngleX
 new acc values: AL_Docs 'Theses are direct acceleration values in m.s-2 (one g is approximately 9.81 m.s-2)' More...
 
float InertialSensor_AngleY
 new acc values: AL_Docs 'Theses are direct acceleration values in m.s-2 (one g is approximately 9.81 m.s-2)' More...
 
float InertialSensor_AngleZ
 new acc values: AL_Docs 'Theses are direct acceleration values in m.s-2 (one g is approximately 9.81 m.s-2)' More...
 
float InertialSensor_AccelerometerX
 new Accelerometer X value More...
 
float InertialSensor_AccelerometerY
 new Accelerometer Y value More...
 
float InertialSensor_AccelerometerZ
 new Accelerometer Z value More...
 
float InertialSensor_GyroscopeX
 new Gyro X value More...
 
float InertialSensor_GyroscopeY
 new Gyro Y value More...
 
float InertialSensor_GyroscopeZ
 new Gyro Z value More...
 
uint8_t Battery_Charge
 % of charge More...
 
uint8_t Battery_Current
 Amps. More...
 
float US
 unsure, check naoqi docs! Not sure about this type, might only be 1 byte More...
 
bool ChestBoard_Button
 state of the chest button, on / off. More...
 

Detailed Description

WHITEBOARD_POSTER_STRING_CONVERSION.

Contains the current values of sensors located in the robots chest (designed for Nao)

Examples

Get the state of the Chest Button

SensorsBodySensors s = SensorsBodySensors_t.get(); //get from the whiteboard bool button_state = s.ChestBoard_Button(); //pull the variable out of the class

Notes: 1) InertialSensor_GyrRef does not exist in Naoqi 2.1.4.13, thus removed. 2) doc/family/nao_dcm/actuator_sensor_names.html states "There are other deprecated values still returned." This comment likely applies to AccX, AccY, AccZ, GyrX, GyrY, and GyrZ, which appear to be replaced with AccelerometerX, AccelerometerY, AccelerometerZ, GyroscopeX, GyroscopeY, and GyroscopeZ. 3) InertialSensor_GyrZ added. 4) On the Nao V4/V5, DCM_Time is a 4 byte 'int'.

Definition at line 119 of file wb_sensors_body_sensors.h.

Member Data Documentation

◆ Battery_Charge

◆ Battery_Current

◆ ChestBoard_Button

◆ DCM_Time

signed int wb_sensors_body_sensors::DCM_Time

Absolute time used for all timed commands in the DCM, an integer (signed), with 1 ms precision.

Be careful: it can roll-over (doc/naoqi/sensors/dcm-api.html).

Definition at line 125 of file wb_sensors_body_sensors.h.

Referenced by guWhiteboard::SensorsBodySensors::SensorsBodySensors(), guWhiteboard::SensorsBodySensors::DCM_Time(), guWhiteboard::SensorsBodySensors::operator=(), guWhiteboard::SensorsBodySensors::set_DCM_Time(), and wb_sensors_body_sensors_from_network_serialised().

◆ InertialSensor_AccelerometerX

◆ InertialSensor_AccelerometerY

◆ InertialSensor_AccelerometerZ

◆ InertialSensor_AccX

◆ InertialSensor_AccY

◆ InertialSensor_AccZ

◆ InertialSensor_AngleX

float wb_sensors_body_sensors::InertialSensor_AngleX

new acc values: AL_Docs 'Theses are direct acceleration values in m.s-2 (one g is approximately 9.81 m.s-2)'

Definition at line 160 of file wb_sensors_body_sensors.h.

Referenced by guWhiteboard::SensorsBodySensors::SensorsBodySensors(), guWhiteboard::SensorsBodySensors::InertialSensor_AngleX(), guWhiteboard::SensorsBodySensors::operator=(), and guWhiteboard::SensorsBodySensors::set_InertialSensor_AngleX().

◆ InertialSensor_AngleY

float wb_sensors_body_sensors::InertialSensor_AngleY

new acc values: AL_Docs 'Theses are direct acceleration values in m.s-2 (one g is approximately 9.81 m.s-2)'

Definition at line 165 of file wb_sensors_body_sensors.h.

Referenced by guWhiteboard::SensorsBodySensors::SensorsBodySensors(), guWhiteboard::SensorsBodySensors::InertialSensor_AngleY(), guWhiteboard::SensorsBodySensors::operator=(), and guWhiteboard::SensorsBodySensors::set_InertialSensor_AngleY().

◆ InertialSensor_AngleZ

float wb_sensors_body_sensors::InertialSensor_AngleZ

new acc values: AL_Docs 'Theses are direct acceleration values in m.s-2 (one g is approximately 9.81 m.s-2)'

Definition at line 170 of file wb_sensors_body_sensors.h.

Referenced by guWhiteboard::SensorsBodySensors::SensorsBodySensors(), guWhiteboard::SensorsBodySensors::InertialSensor_AngleZ(), guWhiteboard::SensorsBodySensors::operator=(), and guWhiteboard::SensorsBodySensors::set_InertialSensor_AngleZ().

◆ InertialSensor_GyroscopeX

◆ InertialSensor_GyroscopeY

◆ InertialSensor_GyroscopeZ

◆ InertialSensor_GyrX

◆ InertialSensor_GyrY

◆ InertialSensor_GyrZ

◆ US

float wb_sensors_body_sensors::US

The documentation for this struct was generated from the following file: