/Users/jason/Code/naowalkoptimiser/src/Locomotion/Walk/sensors.h File Reference

#include "jwalkincludes.h"

Go to the source code of this file.

Classes

class  Sensors

Defines

#define SENSOR_VERBOSITY   0
#define SENSOR_LOGGING   0
#define SENSOR_ULTRASONIC_ON   1
#define SENSOR_EXPORT_TO_AL   1
#define DN_HEAD_YAW_POSITION   std::string("Device/SubDeviceList/HeadYaw/Position/Sensor/Value")
#define DN_HEAD_PITCH_POSITION   std::string("Device/SubDeviceList/HeadPitch/Position/Sensor/Value")
#define DN_L_SHOULDER_ROLL_POSITION   std::string("Device/SubDeviceList/LShoulderRoll/Position/Sensor/Value")
#define DN_L_SHOULDER_PITCH_POSITION   std::string("Device/SubDeviceList/LShoulderPitch/Position/Sensor/Value")
#define DN_L_ELBOW_YAW_POSITION   std::string("Device/SubDeviceList/LElbowYaw/Position/Sensor/Value")
#define DN_L_ELBOW_ROLL_POSITION   std::string("Device/SubDeviceList/LElbowRoll/Position/Sensor/Value")
#define DN_R_SHOULDER_ROLL_POSITION   std::string("Device/SubDeviceList/RShoulderRoll/Position/Sensor/Value")
#define DN_R_SHOULDER_PITCH_POSITION   std::string("Device/SubDeviceList/RShoulderPitch/Position/Sensor/Value")
#define DN_R_ELBOW_YAW_POSITION   std::string("Device/SubDeviceList/RElbowYaw/Position/Sensor/Value")
#define DN_R_ELBOW_ROLL_POSITION   std::string("Device/SubDeviceList/RElbowRoll/Position/Sensor/Value")
#define DN_L_HIP_YAWPITCH_POSITION   std::string("Device/SubDeviceList/LHipYawPitch/Position/Sensor/Value")
#define DN_L_HIP_ROLL_POSITION   std::string("Device/SubDeviceList/LHipRoll/Position/Sensor/Value")
#define DN_L_HIP_PITCH_POSITION   std::string("Device/SubDeviceList/LHipPitch/Position/Sensor/Value")
#define DN_L_KNEE_PITCH_POSITION   std::string("Device/SubDeviceList/LKneePitch/Position/Sensor/Value")
#define DN_L_ANKLE_PITCH_POSITION   std::string("Device/SubDeviceList/LAnklePitch/Position/Sensor/Value")
#define DN_L_ANKLE_ROLL_POSITION   std::string("Device/SubDeviceList/LAnkleRoll/Position/Sensor/Value")
#define DN_R_HIP_YAWPITCH_POSITION   std::string("Device/SubDeviceList/LHipYawPitch/Position/Sensor/Value")
#define DN_R_HIP_ROLL_POSITION   std::string("Device/SubDeviceList/RHipRoll/Position/Sensor/Value")
#define DN_R_HIP_PITCH_POSITION   std::string("Device/SubDeviceList/RHipPitch/Position/Sensor/Value")
#define DN_R_KNEE_PITCH_POSITION   std::string("Device/SubDeviceList/RKneePitch/Position/Sensor/Value")
#define DN_R_ANKLE_PITCH_POSITION   std::string("Device/SubDeviceList/RAnklePitch/Position/Sensor/Value")
#define DN_R_ANKLE_ROLL_POSITION   std::string("Device/SubDeviceList/RAnkleRoll/Position/Sensor/Value")
#define DN_HEAD_YAW_CURRENT   std::string("Device/SubDeviceList/HeadYaw/ElectricCurrent/Sensor/Value")
#define DN_HEAD_PITCH_CURRENT   std::string("Device/SubDeviceList/HeadPitch/ElectricCurrent/Sensor/Value")
#define DN_L_SHOULDER_ROLL_CURRENT   std::string("Device/SubDeviceList/LShoulderRoll/ElectricCurrent/Sensor/Value")
#define DN_L_SHOULDER_PITCH_CURRENT   std::string("Device/SubDeviceList/LShoulderPitch/ElectricCurrent/Sensor/Value")
#define DN_L_ELBOW_YAW_CURRENT   std::string("Device/SubDeviceList/LElbowYaw/ElectricCurrent/Sensor/Value")
#define DN_L_ELBOW_ROLL_CURRENT   std::string("Device/SubDeviceList/LElbowRoll/ElectricCurrent/Sensor/Value")
#define DN_R_SHOULDER_ROLL_CURRENT   std::string("Device/SubDeviceList/RShoulderRoll/ElectricCurrent/Sensor/Value")
#define DN_R_SHOULDER_PITCH_CURRENT   std::string("Device/SubDeviceList/RShoulderPitch/ElectricCurrent/Sensor/Value")
#define DN_R_ELBOW_YAW_CURRENT   std::string("Device/SubDeviceList/RElbowYaw/ElectricCurrent/Sensor/Value")
#define DN_R_ELBOW_ROLL_CURRENT   std::string("Device/SubDeviceList/RElbowRoll/ElectricCurrent/Sensor/Value")
#define DN_L_HIP_YAWPITCH_CURRENT   std::string("Device/SubDeviceList/LHipYawPitch/ElectricCurrent/Sensor/Value")
#define DN_L_HIP_ROLL_CURRENT   std::string("Device/SubDeviceList/LHipRoll/ElectricCurrent/Sensor/Value")
#define DN_L_HIP_PITCH_CURRENT   std::string("Device/SubDeviceList/LHipPitch/ElectricCurrent/Sensor/Value")
#define DN_L_KNEE_PITCH_CURRENT   std::string("Device/SubDeviceList/LKneePitch/ElectricCurrent/Sensor/Value")
#define DN_L_ANKLE_PITCH_CURRENT   std::string("Device/SubDeviceList/LAnklePitch/ElectricCurrent/Sensor/Value")
#define DN_L_ANKLE_ROLL_CURRENT   std::string("Device/SubDeviceList/LAnkleRoll/ElectricCurrent/Sensor/Value")
#define DN_R_HIP_YAWPITCH_CURRENT   std::string("Device/SubDeviceList/LHipYawPitch/ElectricCurrent/Sensor/Value")
#define DN_R_HIP_ROLL_CURRENT   std::string("Device/SubDeviceList/RHipRoll/ElectricCurrent/Sensor/Value")
#define DN_R_HIP_PITCH_CURRENT   std::string("Device/SubDeviceList/RHipPitch/ElectricCurrent/Sensor/Value")
#define DN_R_KNEE_PITCH_CURRENT   std::string("Device/SubDeviceList/RKneePitch/ElectricCurrent/Sensor/Value")
#define DN_R_ANKLE_PITCH_CURRENT   std::string("Device/SubDeviceList/RAnklePitch/ElectricCurrent/Sensor/Value")
#define DN_R_ANKLE_ROLL_CURRENT   std::string("Device/SubDeviceList/RAnkleRoll/ElectricCurrent/Sensor/Value")
#define DN_HEAD_YAW_TARGET   std::string("Device/SubDeviceList/HeadYaw/Position/Actuator/Value")
#define DN_HEAD_PITCH_TARGET   std::string("Device/SubDeviceList/HeadPitch/Position/Actuator/Value")
#define DN_L_SHOULDER_ROLL_TARGET   std::string("Device/SubDeviceList/LShoulderRoll/Position/Actuator/Value")
#define DN_L_SHOULDER_PITCH_TARGET   std::string("Device/SubDeviceList/LShoulderPitch/Position/Actuator/Value")
#define DN_L_ELBOW_YAW_TARGET   std::string("Device/SubDeviceList/LElbowYaw/Position/Actuator/Value")
#define DN_L_ELBOW_ROLL_TARGET   std::string("Device/SubDeviceList/LElbowRoll/Position/Actuator/Value")
#define DN_R_SHOULDER_ROLL_TARGET   std::string("Device/SubDeviceList/RShoulderRoll/Position/Actuator/Value")
#define DN_R_SHOULDER_PITCH_TARGET   std::string("Device/SubDeviceList/RShoulderPitch/Position/Actuator/Value")
#define DN_R_ELBOW_YAW_TARGET   std::string("Device/SubDeviceList/RElbowYaw/Position/Actuator/Value")
#define DN_R_ELBOW_ROLL_TARGET   std::string("Device/SubDeviceList/RElbowRoll/Position/Actuator/Value")
#define DN_L_HIP_YAWPITCH_TARGET   std::string("Device/SubDeviceList/LHipYawPitch/Position/Actuator/Value")
#define DN_L_HIP_ROLL_TARGET   std::string("Device/SubDeviceList/LHipRoll/Position/Actuator/Value")
#define DN_L_HIP_PITCH_TARGET   std::string("Device/SubDeviceList/LHipPitch/Position/Actuator/Value")
#define DN_L_KNEE_PITCH_TARGET   std::string("Device/SubDeviceList/LKneePitch/Position/Actuator/Value")
#define DN_L_ANKLE_PITCH_TARGET   std::string("Device/SubDeviceList/LAnklePitch/Position/Actuator/Value")
#define DN_L_ANKLE_ROLL_TARGET   std::string("Device/SubDeviceList/LAnkleRoll/Position/Actuator/Value")
#define DN_R_HIP_YAWPITCH_TARGET   std::string("Device/SubDeviceList/LHipYawPitch/Position/Actuator/Value")
#define DN_R_HIP_ROLL_TARGET   std::string("Device/SubDeviceList/RHipRoll/Position/Actuator/Value")
#define DN_R_HIP_PITCH_TARGET   std::string("Device/SubDeviceList/RHipPitch/Position/Actuator/Value")
#define DN_R_KNEE_PITCH_TARGET   std::string("Device/SubDeviceList/RKneePitch/Position/Actuator/Value")
#define DN_R_ANKLE_PITCH_TARGET   std::string("Device/SubDeviceList/RAnklePitch/Position/Actuator/Value")
#define DN_R_ANKLE_ROLL_TARGET   std::string("Device/SubDeviceList/RAnkleRoll/Position/Actuator/Value")
#define DN_HEAD_YAW_HARDNESS   std::string("Device/SubDeviceList/HeadYaw/Hardness/Actuator/Value")
#define DN_HEAD_PITCH_HARDNESS   std::string("Device/SubDeviceList/HeadPitch/Hardness/Actuator/Value")
#define DN_L_SHOULDER_ROLL_HARDNESS   std::string("Device/SubDeviceList/LShoulderRoll/Hardness/Actuator/Value")
#define DN_L_SHOULDER_PITCH_HARDNESS   std::string("Device/SubDeviceList/LShoulderPitch/Hardness/Actuator/Value")
#define DN_L_ELBOW_YAW_HARDNESS   std::string("Device/SubDeviceList/LElbowYaw/Hardness/Actuator/Value")
#define DN_L_ELBOW_ROLL_HARDNESS   std::string("Device/SubDeviceList/LElbowRoll/Hardness/Actuator/Value")
#define DN_R_SHOULDER_ROLL_HARDNESS   std::string("Device/SubDeviceList/RShoulderRoll/Hardness/Actuator/Value")
#define DN_R_SHOULDER_PITCH_HARDNESS   std::string("Device/SubDeviceList/RShoulderPitch/Hardness/Actuator/Value")
#define DN_R_ELBOW_YAW_HARDNESS   std::string("Device/SubDeviceList/RElbowYaw/Hardness/Actuator/Value")
#define DN_R_ELBOW_ROLL_HARDNESS   std::string("Device/SubDeviceList/RElbowRoll/Hardness/Actuator/Value")
#define DN_L_HIP_YAWPITCH_HARDNESS   std::string("Device/SubDeviceList/LHipYawPitch/Hardness/Actuator/Value")
#define DN_L_HIP_ROLL_HARDNESS   std::string("Device/SubDeviceList/LHipRoll/Hardness/Actuator/Value")
#define DN_L_HIP_PITCH_HARDNESS   std::string("Device/SubDeviceList/LHipPitch/Hardness/Actuator/Value")
#define DN_L_KNEE_PITCH_HARDNESS   std::string("Device/SubDeviceList/LKneePitch/Hardness/Actuator/Value")
#define DN_L_ANKLE_PITCH_HARDNESS   std::string("Device/SubDeviceList/LAnklePitch/Hardness/Actuator/Value")
#define DN_L_ANKLE_ROLL_HARDNESS   std::string("Device/SubDeviceList/LAnkleRoll/Hardness/Actuator/Value")
#define DN_R_HIP_YAWPITCH_HARDNESS   std::string("Device/SubDeviceList/LHipYawPitch/Hardness/Actuator/Value")
#define DN_R_HIP_ROLL_HARDNESS   std::string("Device/SubDeviceList/RHipRoll/Hardness/Actuator/Value")
#define DN_R_HIP_PITCH_HARDNESS   std::string("Device/SubDeviceList/RHipPitch/Hardness/Actuator/Value")
#define DN_R_KNEE_PITCH_HARDNESS   std::string("Device/SubDeviceList/RKneePitch/Hardness/Actuator/Value")
#define DN_R_ANKLE_PITCH_HARDNESS   std::string("Device/SubDeviceList/RAnklePitch/Hardness/Actuator/Value")
#define DN_R_ANKLE_ROLL_HARDNESS   std::string("Device/SubDeviceList/RAnkleRoll/Hardness/Actuator/Value")
#define DN_HEAD_YAW_TEMPERATURE   std::string("Device/SubDeviceList/HeadYaw/Temperature/Sensor/Value")
#define DN_HEAD_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/HeadPitch/Temperature/Sensor/Value")
#define DN_L_SHOULDER_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/LShoulderRoll/Temperature/Sensor/Value")
#define DN_L_SHOULDER_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/LShoulderPitch/Temperature/Sensor/Value")
#define DN_L_ELBOW_YAW_TEMPERATURE   std::string("Device/SubDeviceList/LElbowYaw/Temperature/Sensor/Value")
#define DN_L_ELBOW_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/LElbowRoll/Temperature/Sensor/Value")
#define DN_R_SHOULDER_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/RShoulderRoll/Temperature/Sensor/Value")
#define DN_R_SHOULDER_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/RShoulderPitch/Temperature/Sensor/Value")
#define DN_R_ELBOW_YAW_TEMPERATURE   std::string("Device/SubDeviceList/RElbowYaw/Temperature/Sensor/Value")
#define DN_R_ELBOW_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/RElbowRoll/Temperature/Sensor/Value")
#define DN_L_HIP_YAWPITCH_TEMPERATURE   std::string("Device/SubDeviceList/LHipYawPitch/Temperature/Sensor/Value")
#define DN_L_HIP_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/LHipRoll/Temperature/Sensor/Value")
#define DN_L_HIP_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/LHipPitch/Temperature/Sensor/Value")
#define DN_L_KNEE_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/LKneePitch/Temperature/Sensor/Value")
#define DN_L_ANKLE_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/LAnklePitch/Temperature/Sensor/Value")
#define DN_L_ANKLE_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/LAnkleRoll/Temperature/Sensor/Value")
#define DN_R_HIP_YAWPITCH_TEMPERATURE   std::string("Device/SubDeviceList/LHipYawPitch/Temperature/Sensor/Value")
#define DN_R_HIP_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/RHipRoll/Temperature/Sensor/Value")
#define DN_R_HIP_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/RHipPitch/Temperature/Sensor/Value")
#define DN_R_KNEE_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/RKneePitch/Temperature/Sensor/Value")
#define DN_R_ANKLE_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/RAnklePitch/Temperature/Sensor/Value")
#define DN_R_ANKLE_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/RAnkleRoll/Temperature/Sensor/Value")
#define DN_MB_CHEST   std::string("Device/DeviceList/ChestBoard/Error")
#define DN_MB_HEAD   std::string("Device/DeviceList/HeadBoard/Error")
#define DN_MB_R_SHOULDER   std::string("Device/DeviceList/RightShoulderBoard/Error")
#define DN_MB_R_ARM   std::string("Device/DeviceList/RightArmBoard/Error")
#define DN_MB_R_HAND   std::string("Device/DeviceList/RightHandBoard/Error")
#define DN_MB_R_HIP   std::string("Device/DeviceList/RightHipBoard/Error")
#define DN_MB_R_THIGH   std::string("Device/DeviceList/RightThighBoard/Error")
#define DN_MB_R_SHIN   std::string("Device/DeviceList/RightShinBoard/Error")
#define DN_MB_R_FOOT   std::string("Device/DeviceList/RightFootBoard/Error")
#define DN_MB_L_SHOULDER   std::string("Device/DeviceList/LeftShoulderBoard/Error")
#define DN_MB_L_ARM   std::string("Device/DeviceList/LeftArmBoard/Error")
#define DN_MB_L_HAND   std::string("Device/DeviceList/LeftHandBoard/Error")
#define DN_MB_L_HIP   std::string("Device/DeviceList/LeftHipBoard/Error")
#define DN_MB_L_THIGH   std::string("Device/DeviceList/LeftThighBoard/Error")
#define DN_MB_L_SHIN   std::string("Device/DeviceList/LeftShinBoard/Error")
#define DN_MB_L_FOOT   std::string("Device/DeviceList/LeftFootBoard/Error")
#define DN_MB_US   std::string("Device/DeviceList/USBoard/Error")
#define DN_MB_INERTIAL   std::string("Device/DeviceList/InertialSensor/Error")
#define DN_MB_TOUCH   std::string("Device/DeviceList/TouchBoard/Error")
#define DN_MB_FACE   std::string("Device/DeviceList/FaceBoard/Error")
#define DN_MB_EAR   std::string("Device/DeviceList/EarLeds/Error")
#define DN_NK_CHEST   std::string("Device/DeviceList/ChestBoard/Nack")
#define DN_ACCEL_X   std::string("Device/SubDeviceList/InertialSensor/AccX/Sensor/Value")
#define DN_ACCEL_Y   std::string("Device/SubDeviceList/InertialSensor/AccY/Sensor/Value")
#define DN_ACCEL_Z   std::string("Device/SubDeviceList/InertialSensor/AccZ/Sensor/Value")
#define DN_ANGLE_X   std::string("Device/SubDeviceList/InertialSensor/AngleX/Sensor/Value")
#define DN_ANGLE_Y   std::string("Device/SubDeviceList/InertialSensor/AngleY/Sensor/Value")
#define DN_GYRO_X   std::string("Device/SubDeviceList/InertialSensor/GyrX/Sensor/Value")
#define DN_GYRO_Y   std::string("Device/SubDeviceList/InertialSensor/GyrY/Sensor/Value")
#define DN_L_FSR_FL   std::string("Device/SubDeviceList/LFoot/FSR/FrontLeft/Sensor/Value")
#define DN_L_FSR_FR   std::string("Device/SubDeviceList/LFoot/FSR/FrontRight/Sensor/Value")
#define DN_L_FSR_BL   std::string("Device/SubDeviceList/LFoot/FSR/RearLeft/Sensor/Value")
#define DN_L_FSR_BR   std::string("Device/SubDeviceList/LFoot/FSR/RearRight/Sensor/Value")
#define DN_L_BUMP_L   std::string("Device/SubDeviceList/LFoot/Bumper/Left/Sensor/Value")
#define DN_L_BUMP_R   std::string("Device/SubDeviceList/LFoot/Bumper/Right/Sensor/Value")
#define DN_R_FSR_FL   std::string("Device/SubDeviceList/RFoot/FSR/FrontLeft/Sensor/Value")
#define DN_R_FSR_FR   std::string("Device/SubDeviceList/RFoot/FSR/FrontRight/Sensor/Value")
#define DN_R_FSR_BL   std::string("Device/SubDeviceList/RFoot/FSR/RearLeft/Sensor/Value")
#define DN_R_FSR_BR   std::string("Device/SubDeviceList/RFoot/FSR/RearRight/Sensor/Value")
#define DN_R_BUMP_L   std::string("Device/SubDeviceList/RFoot/Bumper/Left/Sensor/Value")
#define DN_R_BUMP_R   std::string("Device/SubDeviceList/RFoot/Bumper/Right/Sensor/Value")
#define DN_CHEST_BUTTON   std::string("Device/SubDeviceList/ChestBoard/Button/Sensor/Value")
#define DN_SIMPLE_CLICK   std::string("ALWatchDog/SimpleClickOccured")
#define DN_DOUBLE_CLICK   std::string("ALWatchDog/DoubleClickOccured")
#define DN_TRIPLE_CLICK   std::string("ALWatchDog/TripleClickOccured")
#define DN_CHARGE   std::string("Device/SubDeviceList/Battery/Charge/Sensor/Value")
#define DN_CURRENT   std::string("Device/SubDeviceList/Battery/Current/Sensor/Value")
#define DN_VOLTAGE_MIN   std::string("Device/SubDeviceList/Battery/Charge/Sensor/CellVoltageMin")
#define DN_VOLTAGE_MAX   std::string("Device/SubDeviceList/Battery/Charge/Sensor/CellVoltageMax")
#define DN_TEMPERATURE   std::string("Device/SubDeviceList/Battery/Temperature/Sensor/Value")
#define DN_US_DISTANCE   std::string("Device/SubDeviceList/US/Sensor/Value")
#define ALL_NUM_SENSORS   J_NUM_JOINTS*4 + B_NUM_SENSORS + T_NUM_SENSORS + E_NUM_SENSORS + D_NUM_SENSORS
#define VEL_WINDOW_SIZE   16
#define B_WINDOW_SIZE   9
#define S_WINDOW_SIZE   1

Enumerations

enum  {
  J_HEAD_YAW, J_HEAD_PITCH, J_L_SHOULDER_ROLL, J_L_SHOULDER_PITCH,
  J_L_ELBOW_YAW, J_L_ELBOW_ROLL, J_R_SHOULDER_ROLL, J_R_SHOULDER_PITCH,
  J_R_ELBOW_YAW, J_R_ELBOW_ROLL, J_L_HIP_YAWPITCH, J_L_HIP_ROLL,
  J_L_HIP_PITCH, J_L_KNEE_PITCH, J_L_ANKLE_PITCH, J_L_ANKLE_ROLL,
  J_R_HIP_YAWPITCH, J_R_HIP_ROLL, J_R_HIP_PITCH, J_R_KNEE_PITCH,
  J_R_ANKLE_PITCH, J_R_ANKLE_ROLL, J_NUM_JOINTS
}
enum  {
  MB_CHEST, MB_HEAD, MB_R_SHOULDER, MB_R_ARM,
  MB_R_HAND, MB_R_HIP, MB_R_THIGH, MB_R_SHIN,
  MB_R_FOOT, MB_L_SHOULDER, MB_L_ARM, MB_L_HAND,
  MB_L_HIP, MB_L_THIGH, MB_L_SHIN, MB_L_FOOT,
  MB_US, MB_INERTIAL, MB_TOUCH, MB_FACE,
  MB_EAR, MB_NUM_BOARDS
}
enum  { NK_CHEST, NK_NUM_BOARDS }
enum  {
  B_ACCEL_X, B_ACCEL_Y, B_ACCEL_Z, B_ANGLE_X,
  B_ANGLE_Y, B_GYRO_X, B_GYRO_Y, B_NUM_SENSORS
}
enum  {
  T_L_FSR_FL, T_L_FSR_FR, T_L_FSR_BL, T_L_FSR_BR,
  T_L_BUMP_L, T_L_BUMP_R, T_R_FSR_FL, T_R_FSR_FR,
  T_R_FSR_BL, T_R_FSR_BR, T_R_BUMP_L, T_R_BUMP_R,
  T_CHEST_BUTTON, T_NUM_SENSORS
}
enum  {
  PS_L_FL, PS_L_FR, PS_L_BL, PS_L_BR,
  PS_L, PS_R_FL, PS_R_FR, PS_R_BL,
  PS_R_BR, PS_R, PS_NUM_SENSORS
}
enum  SupportModeEnum {
  SM_STANCE, SM_PUSH, SM_SWING, SM_IMPACT,
  SM_NUM_MODES
}
enum  {
  E_CHARGE, E_CURRENT, E_VOLTAGE_MIN, E_VOLTAGE_MAX,
  E_TEMPERATURE, E_NUM_SENSORS
}
enum  { D_US, D_NUM_SENSORS }
enum  {
  S_LL, S_LR, S_RL, S_RR,
  S_NUM_SENSORS
}

Functions

void * runSonicThread (void *arg)

Variables

string indexToName []
string indexToPositionSensor []
string indexToCurrentSensor []
string indexToTargetSensor []
string indexToHardnessSensor []
string indexToTemperatureSensor []
string indexToBoardError []
string indexToNack []
string indexToBalanceSensor []
string indexToTouchSensor []
string indexToBatterySensor []
string indexToDistanceSensor []
string indexToSupportMode [SM_NUM_MODES]
int dcmTime
int dcmTimeSinceStart
float jointPositions [J_NUM_JOINTS]
float jointVelocities [J_NUM_JOINTS]
float jointVelocitySum
float jointAccelerations [J_NUM_JOINTS]
float jointCurrents [J_NUM_JOINTS]
float jointCurrentSum
float jointTargets [J_NUM_JOINTS]
float jointHardnesses [J_NUM_JOINTS]
int boardErrors [MB_NUM_BOARDS]
int nackErrors [NK_NUM_BOARDS]
unsigned char walkCyclesSinceCall
bool walkAmIWalking
bool walkPreviousAmIWalking
float odometryDeltaX
float odometryDeltaY
float odometryDeltaO
float jointTemperatures [J_NUM_JOINTS]
float balanceValues [B_NUM_SENSORS]
bool balanceFallingEnabled
bool balanceFalling
bool balancePreviousFalling
bool balanceFallingForward
bool balanceFallingBackward
bool balanceFallingLeft
bool balanceFallingRight
bool balanceFallen
bool balancePreviousFallen
int balanceFallenCount
float touchValues [T_NUM_SENSORS]
float touchLeftCoPX
float touchLeftCoPY
float touchRightCoPX
float touchRightCoPY
float touchPSValues [PS_NUM_SENSORS]
bool touchOnGround
bool touchPreviousOnGround
bool touchLeftFootOnGround
bool touchRightFootOnGround
SupportModeEnum leftSupportMode
SupportModeEnum rightSupportMode
bool collisionAny
bool collisionLeftArm
bool collisionLeftArmFront
bool collisionLeftArmSide
bool collisionLeftArmBack
bool collisionRightArm
bool collisionRightArmFront
bool collisionRightArmSide
bool collisionRightArmBack
bool collisionLeftFoot
bool collisionLeftFootFront
bool collisionLeftFootBack
bool collisionRightFoot
bool collisionRightFootFront
bool collisionRightFootBack
float batteryValues [E_NUM_SENSORS]
float sonicValues [S_NUM_SENSORS]
float sonicObstacleDistance

Define Documentation

#define ALL_NUM_SENSORS   J_NUM_JOINTS*4 + B_NUM_SENSORS + T_NUM_SENSORS + E_NUM_SENSORS + D_NUM_SENSORS
#define B_WINDOW_SIZE   9
#define DN_ACCEL_X   std::string("Device/SubDeviceList/InertialSensor/AccX/Sensor/Value")
#define DN_ACCEL_Y   std::string("Device/SubDeviceList/InertialSensor/AccY/Sensor/Value")
#define DN_ACCEL_Z   std::string("Device/SubDeviceList/InertialSensor/AccZ/Sensor/Value")
#define DN_ANGLE_X   std::string("Device/SubDeviceList/InertialSensor/AngleX/Sensor/Value")
#define DN_ANGLE_Y   std::string("Device/SubDeviceList/InertialSensor/AngleY/Sensor/Value")
#define DN_CHARGE   std::string("Device/SubDeviceList/Battery/Charge/Sensor/Value")
#define DN_CHEST_BUTTON   std::string("Device/SubDeviceList/ChestBoard/Button/Sensor/Value")
#define DN_CURRENT   std::string("Device/SubDeviceList/Battery/Current/Sensor/Value")
#define DN_DOUBLE_CLICK   std::string("ALWatchDog/DoubleClickOccured")
#define DN_GYRO_X   std::string("Device/SubDeviceList/InertialSensor/GyrX/Sensor/Value")
#define DN_GYRO_Y   std::string("Device/SubDeviceList/InertialSensor/GyrY/Sensor/Value")
#define DN_HEAD_PITCH_CURRENT   std::string("Device/SubDeviceList/HeadPitch/ElectricCurrent/Sensor/Value")
#define DN_HEAD_PITCH_HARDNESS   std::string("Device/SubDeviceList/HeadPitch/Hardness/Actuator/Value")
#define DN_HEAD_PITCH_POSITION   std::string("Device/SubDeviceList/HeadPitch/Position/Sensor/Value")
#define DN_HEAD_PITCH_TARGET   std::string("Device/SubDeviceList/HeadPitch/Position/Actuator/Value")
#define DN_HEAD_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/HeadPitch/Temperature/Sensor/Value")
#define DN_HEAD_YAW_CURRENT   std::string("Device/SubDeviceList/HeadYaw/ElectricCurrent/Sensor/Value")
#define DN_HEAD_YAW_HARDNESS   std::string("Device/SubDeviceList/HeadYaw/Hardness/Actuator/Value")
#define DN_HEAD_YAW_POSITION   std::string("Device/SubDeviceList/HeadYaw/Position/Sensor/Value")
#define DN_HEAD_YAW_TARGET   std::string("Device/SubDeviceList/HeadYaw/Position/Actuator/Value")
#define DN_HEAD_YAW_TEMPERATURE   std::string("Device/SubDeviceList/HeadYaw/Temperature/Sensor/Value")
#define DN_L_ANKLE_PITCH_CURRENT   std::string("Device/SubDeviceList/LAnklePitch/ElectricCurrent/Sensor/Value")
#define DN_L_ANKLE_PITCH_HARDNESS   std::string("Device/SubDeviceList/LAnklePitch/Hardness/Actuator/Value")
#define DN_L_ANKLE_PITCH_POSITION   std::string("Device/SubDeviceList/LAnklePitch/Position/Sensor/Value")
#define DN_L_ANKLE_PITCH_TARGET   std::string("Device/SubDeviceList/LAnklePitch/Position/Actuator/Value")
#define DN_L_ANKLE_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/LAnklePitch/Temperature/Sensor/Value")
#define DN_L_ANKLE_ROLL_CURRENT   std::string("Device/SubDeviceList/LAnkleRoll/ElectricCurrent/Sensor/Value")
#define DN_L_ANKLE_ROLL_HARDNESS   std::string("Device/SubDeviceList/LAnkleRoll/Hardness/Actuator/Value")
#define DN_L_ANKLE_ROLL_POSITION   std::string("Device/SubDeviceList/LAnkleRoll/Position/Sensor/Value")
#define DN_L_ANKLE_ROLL_TARGET   std::string("Device/SubDeviceList/LAnkleRoll/Position/Actuator/Value")
#define DN_L_ANKLE_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/LAnkleRoll/Temperature/Sensor/Value")
#define DN_L_BUMP_L   std::string("Device/SubDeviceList/LFoot/Bumper/Left/Sensor/Value")
#define DN_L_BUMP_R   std::string("Device/SubDeviceList/LFoot/Bumper/Right/Sensor/Value")
#define DN_L_ELBOW_ROLL_CURRENT   std::string("Device/SubDeviceList/LElbowRoll/ElectricCurrent/Sensor/Value")
#define DN_L_ELBOW_ROLL_HARDNESS   std::string("Device/SubDeviceList/LElbowRoll/Hardness/Actuator/Value")
#define DN_L_ELBOW_ROLL_POSITION   std::string("Device/SubDeviceList/LElbowRoll/Position/Sensor/Value")
#define DN_L_ELBOW_ROLL_TARGET   std::string("Device/SubDeviceList/LElbowRoll/Position/Actuator/Value")
#define DN_L_ELBOW_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/LElbowRoll/Temperature/Sensor/Value")
#define DN_L_ELBOW_YAW_CURRENT   std::string("Device/SubDeviceList/LElbowYaw/ElectricCurrent/Sensor/Value")
#define DN_L_ELBOW_YAW_HARDNESS   std::string("Device/SubDeviceList/LElbowYaw/Hardness/Actuator/Value")
#define DN_L_ELBOW_YAW_POSITION   std::string("Device/SubDeviceList/LElbowYaw/Position/Sensor/Value")
#define DN_L_ELBOW_YAW_TARGET   std::string("Device/SubDeviceList/LElbowYaw/Position/Actuator/Value")
#define DN_L_ELBOW_YAW_TEMPERATURE   std::string("Device/SubDeviceList/LElbowYaw/Temperature/Sensor/Value")
#define DN_L_FSR_BL   std::string("Device/SubDeviceList/LFoot/FSR/RearLeft/Sensor/Value")
#define DN_L_FSR_BR   std::string("Device/SubDeviceList/LFoot/FSR/RearRight/Sensor/Value")
#define DN_L_FSR_FL   std::string("Device/SubDeviceList/LFoot/FSR/FrontLeft/Sensor/Value")
#define DN_L_FSR_FR   std::string("Device/SubDeviceList/LFoot/FSR/FrontRight/Sensor/Value")
#define DN_L_HIP_PITCH_CURRENT   std::string("Device/SubDeviceList/LHipPitch/ElectricCurrent/Sensor/Value")
#define DN_L_HIP_PITCH_HARDNESS   std::string("Device/SubDeviceList/LHipPitch/Hardness/Actuator/Value")
#define DN_L_HIP_PITCH_POSITION   std::string("Device/SubDeviceList/LHipPitch/Position/Sensor/Value")
#define DN_L_HIP_PITCH_TARGET   std::string("Device/SubDeviceList/LHipPitch/Position/Actuator/Value")
#define DN_L_HIP_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/LHipPitch/Temperature/Sensor/Value")
#define DN_L_HIP_ROLL_CURRENT   std::string("Device/SubDeviceList/LHipRoll/ElectricCurrent/Sensor/Value")
#define DN_L_HIP_ROLL_HARDNESS   std::string("Device/SubDeviceList/LHipRoll/Hardness/Actuator/Value")
#define DN_L_HIP_ROLL_POSITION   std::string("Device/SubDeviceList/LHipRoll/Position/Sensor/Value")
#define DN_L_HIP_ROLL_TARGET   std::string("Device/SubDeviceList/LHipRoll/Position/Actuator/Value")
#define DN_L_HIP_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/LHipRoll/Temperature/Sensor/Value")
#define DN_L_HIP_YAWPITCH_CURRENT   std::string("Device/SubDeviceList/LHipYawPitch/ElectricCurrent/Sensor/Value")
#define DN_L_HIP_YAWPITCH_HARDNESS   std::string("Device/SubDeviceList/LHipYawPitch/Hardness/Actuator/Value")
#define DN_L_HIP_YAWPITCH_POSITION   std::string("Device/SubDeviceList/LHipYawPitch/Position/Sensor/Value")
#define DN_L_HIP_YAWPITCH_TARGET   std::string("Device/SubDeviceList/LHipYawPitch/Position/Actuator/Value")
#define DN_L_HIP_YAWPITCH_TEMPERATURE   std::string("Device/SubDeviceList/LHipYawPitch/Temperature/Sensor/Value")
#define DN_L_KNEE_PITCH_CURRENT   std::string("Device/SubDeviceList/LKneePitch/ElectricCurrent/Sensor/Value")
#define DN_L_KNEE_PITCH_HARDNESS   std::string("Device/SubDeviceList/LKneePitch/Hardness/Actuator/Value")
#define DN_L_KNEE_PITCH_POSITION   std::string("Device/SubDeviceList/LKneePitch/Position/Sensor/Value")
#define DN_L_KNEE_PITCH_TARGET   std::string("Device/SubDeviceList/LKneePitch/Position/Actuator/Value")
#define DN_L_KNEE_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/LKneePitch/Temperature/Sensor/Value")
#define DN_L_SHOULDER_PITCH_CURRENT   std::string("Device/SubDeviceList/LShoulderPitch/ElectricCurrent/Sensor/Value")
#define DN_L_SHOULDER_PITCH_HARDNESS   std::string("Device/SubDeviceList/LShoulderPitch/Hardness/Actuator/Value")
#define DN_L_SHOULDER_PITCH_POSITION   std::string("Device/SubDeviceList/LShoulderPitch/Position/Sensor/Value")
#define DN_L_SHOULDER_PITCH_TARGET   std::string("Device/SubDeviceList/LShoulderPitch/Position/Actuator/Value")
#define DN_L_SHOULDER_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/LShoulderPitch/Temperature/Sensor/Value")
#define DN_L_SHOULDER_ROLL_CURRENT   std::string("Device/SubDeviceList/LShoulderRoll/ElectricCurrent/Sensor/Value")
#define DN_L_SHOULDER_ROLL_HARDNESS   std::string("Device/SubDeviceList/LShoulderRoll/Hardness/Actuator/Value")
#define DN_L_SHOULDER_ROLL_POSITION   std::string("Device/SubDeviceList/LShoulderRoll/Position/Sensor/Value")
#define DN_L_SHOULDER_ROLL_TARGET   std::string("Device/SubDeviceList/LShoulderRoll/Position/Actuator/Value")
#define DN_L_SHOULDER_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/LShoulderRoll/Temperature/Sensor/Value")
#define DN_MB_CHEST   std::string("Device/DeviceList/ChestBoard/Error")
#define DN_MB_EAR   std::string("Device/DeviceList/EarLeds/Error")
#define DN_MB_FACE   std::string("Device/DeviceList/FaceBoard/Error")
#define DN_MB_HEAD   std::string("Device/DeviceList/HeadBoard/Error")
#define DN_MB_INERTIAL   std::string("Device/DeviceList/InertialSensor/Error")
#define DN_MB_L_ARM   std::string("Device/DeviceList/LeftArmBoard/Error")
#define DN_MB_L_FOOT   std::string("Device/DeviceList/LeftFootBoard/Error")
#define DN_MB_L_HAND   std::string("Device/DeviceList/LeftHandBoard/Error")
#define DN_MB_L_HIP   std::string("Device/DeviceList/LeftHipBoard/Error")
#define DN_MB_L_SHIN   std::string("Device/DeviceList/LeftShinBoard/Error")
#define DN_MB_L_SHOULDER   std::string("Device/DeviceList/LeftShoulderBoard/Error")
#define DN_MB_L_THIGH   std::string("Device/DeviceList/LeftThighBoard/Error")
#define DN_MB_R_ARM   std::string("Device/DeviceList/RightArmBoard/Error")
#define DN_MB_R_FOOT   std::string("Device/DeviceList/RightFootBoard/Error")
#define DN_MB_R_HAND   std::string("Device/DeviceList/RightHandBoard/Error")
#define DN_MB_R_HIP   std::string("Device/DeviceList/RightHipBoard/Error")
#define DN_MB_R_SHIN   std::string("Device/DeviceList/RightShinBoard/Error")
#define DN_MB_R_SHOULDER   std::string("Device/DeviceList/RightShoulderBoard/Error")
#define DN_MB_R_THIGH   std::string("Device/DeviceList/RightThighBoard/Error")
#define DN_MB_TOUCH   std::string("Device/DeviceList/TouchBoard/Error")
#define DN_MB_US   std::string("Device/DeviceList/USBoard/Error")
#define DN_NK_CHEST   std::string("Device/DeviceList/ChestBoard/Nack")
#define DN_R_ANKLE_PITCH_CURRENT   std::string("Device/SubDeviceList/RAnklePitch/ElectricCurrent/Sensor/Value")
#define DN_R_ANKLE_PITCH_HARDNESS   std::string("Device/SubDeviceList/RAnklePitch/Hardness/Actuator/Value")
#define DN_R_ANKLE_PITCH_POSITION   std::string("Device/SubDeviceList/RAnklePitch/Position/Sensor/Value")
#define DN_R_ANKLE_PITCH_TARGET   std::string("Device/SubDeviceList/RAnklePitch/Position/Actuator/Value")
#define DN_R_ANKLE_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/RAnklePitch/Temperature/Sensor/Value")
#define DN_R_ANKLE_ROLL_CURRENT   std::string("Device/SubDeviceList/RAnkleRoll/ElectricCurrent/Sensor/Value")
#define DN_R_ANKLE_ROLL_HARDNESS   std::string("Device/SubDeviceList/RAnkleRoll/Hardness/Actuator/Value")
#define DN_R_ANKLE_ROLL_POSITION   std::string("Device/SubDeviceList/RAnkleRoll/Position/Sensor/Value")
#define DN_R_ANKLE_ROLL_TARGET   std::string("Device/SubDeviceList/RAnkleRoll/Position/Actuator/Value")
#define DN_R_ANKLE_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/RAnkleRoll/Temperature/Sensor/Value")
#define DN_R_BUMP_L   std::string("Device/SubDeviceList/RFoot/Bumper/Left/Sensor/Value")
#define DN_R_BUMP_R   std::string("Device/SubDeviceList/RFoot/Bumper/Right/Sensor/Value")
#define DN_R_ELBOW_ROLL_CURRENT   std::string("Device/SubDeviceList/RElbowRoll/ElectricCurrent/Sensor/Value")
#define DN_R_ELBOW_ROLL_HARDNESS   std::string("Device/SubDeviceList/RElbowRoll/Hardness/Actuator/Value")
#define DN_R_ELBOW_ROLL_POSITION   std::string("Device/SubDeviceList/RElbowRoll/Position/Sensor/Value")
#define DN_R_ELBOW_ROLL_TARGET   std::string("Device/SubDeviceList/RElbowRoll/Position/Actuator/Value")
#define DN_R_ELBOW_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/RElbowRoll/Temperature/Sensor/Value")
#define DN_R_ELBOW_YAW_CURRENT   std::string("Device/SubDeviceList/RElbowYaw/ElectricCurrent/Sensor/Value")
#define DN_R_ELBOW_YAW_HARDNESS   std::string("Device/SubDeviceList/RElbowYaw/Hardness/Actuator/Value")
#define DN_R_ELBOW_YAW_POSITION   std::string("Device/SubDeviceList/RElbowYaw/Position/Sensor/Value")
#define DN_R_ELBOW_YAW_TARGET   std::string("Device/SubDeviceList/RElbowYaw/Position/Actuator/Value")
#define DN_R_ELBOW_YAW_TEMPERATURE   std::string("Device/SubDeviceList/RElbowYaw/Temperature/Sensor/Value")
#define DN_R_FSR_BL   std::string("Device/SubDeviceList/RFoot/FSR/RearLeft/Sensor/Value")
#define DN_R_FSR_BR   std::string("Device/SubDeviceList/RFoot/FSR/RearRight/Sensor/Value")
#define DN_R_FSR_FL   std::string("Device/SubDeviceList/RFoot/FSR/FrontLeft/Sensor/Value")
#define DN_R_FSR_FR   std::string("Device/SubDeviceList/RFoot/FSR/FrontRight/Sensor/Value")
#define DN_R_HIP_PITCH_CURRENT   std::string("Device/SubDeviceList/RHipPitch/ElectricCurrent/Sensor/Value")
#define DN_R_HIP_PITCH_HARDNESS   std::string("Device/SubDeviceList/RHipPitch/Hardness/Actuator/Value")
#define DN_R_HIP_PITCH_POSITION   std::string("Device/SubDeviceList/RHipPitch/Position/Sensor/Value")
#define DN_R_HIP_PITCH_TARGET   std::string("Device/SubDeviceList/RHipPitch/Position/Actuator/Value")
#define DN_R_HIP_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/RHipPitch/Temperature/Sensor/Value")
#define DN_R_HIP_ROLL_CURRENT   std::string("Device/SubDeviceList/RHipRoll/ElectricCurrent/Sensor/Value")
#define DN_R_HIP_ROLL_HARDNESS   std::string("Device/SubDeviceList/RHipRoll/Hardness/Actuator/Value")
#define DN_R_HIP_ROLL_POSITION   std::string("Device/SubDeviceList/RHipRoll/Position/Sensor/Value")
#define DN_R_HIP_ROLL_TARGET   std::string("Device/SubDeviceList/RHipRoll/Position/Actuator/Value")
#define DN_R_HIP_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/RHipRoll/Temperature/Sensor/Value")
#define DN_R_HIP_YAWPITCH_CURRENT   std::string("Device/SubDeviceList/LHipYawPitch/ElectricCurrent/Sensor/Value")
#define DN_R_HIP_YAWPITCH_HARDNESS   std::string("Device/SubDeviceList/LHipYawPitch/Hardness/Actuator/Value")
#define DN_R_HIP_YAWPITCH_POSITION   std::string("Device/SubDeviceList/LHipYawPitch/Position/Sensor/Value")
#define DN_R_HIP_YAWPITCH_TARGET   std::string("Device/SubDeviceList/LHipYawPitch/Position/Actuator/Value")
#define DN_R_HIP_YAWPITCH_TEMPERATURE   std::string("Device/SubDeviceList/LHipYawPitch/Temperature/Sensor/Value")
#define DN_R_KNEE_PITCH_CURRENT   std::string("Device/SubDeviceList/RKneePitch/ElectricCurrent/Sensor/Value")
#define DN_R_KNEE_PITCH_HARDNESS   std::string("Device/SubDeviceList/RKneePitch/Hardness/Actuator/Value")
#define DN_R_KNEE_PITCH_POSITION   std::string("Device/SubDeviceList/RKneePitch/Position/Sensor/Value")
#define DN_R_KNEE_PITCH_TARGET   std::string("Device/SubDeviceList/RKneePitch/Position/Actuator/Value")
#define DN_R_KNEE_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/RKneePitch/Temperature/Sensor/Value")
#define DN_R_SHOULDER_PITCH_CURRENT   std::string("Device/SubDeviceList/RShoulderPitch/ElectricCurrent/Sensor/Value")
#define DN_R_SHOULDER_PITCH_HARDNESS   std::string("Device/SubDeviceList/RShoulderPitch/Hardness/Actuator/Value")
#define DN_R_SHOULDER_PITCH_POSITION   std::string("Device/SubDeviceList/RShoulderPitch/Position/Sensor/Value")
#define DN_R_SHOULDER_PITCH_TARGET   std::string("Device/SubDeviceList/RShoulderPitch/Position/Actuator/Value")
#define DN_R_SHOULDER_PITCH_TEMPERATURE   std::string("Device/SubDeviceList/RShoulderPitch/Temperature/Sensor/Value")
#define DN_R_SHOULDER_ROLL_CURRENT   std::string("Device/SubDeviceList/RShoulderRoll/ElectricCurrent/Sensor/Value")
#define DN_R_SHOULDER_ROLL_HARDNESS   std::string("Device/SubDeviceList/RShoulderRoll/Hardness/Actuator/Value")
#define DN_R_SHOULDER_ROLL_POSITION   std::string("Device/SubDeviceList/RShoulderRoll/Position/Sensor/Value")
#define DN_R_SHOULDER_ROLL_TARGET   std::string("Device/SubDeviceList/RShoulderRoll/Position/Actuator/Value")
#define DN_R_SHOULDER_ROLL_TEMPERATURE   std::string("Device/SubDeviceList/RShoulderRoll/Temperature/Sensor/Value")
#define DN_SIMPLE_CLICK   std::string("ALWatchDog/SimpleClickOccured")
#define DN_TEMPERATURE   std::string("Device/SubDeviceList/Battery/Temperature/Sensor/Value")
#define DN_TRIPLE_CLICK   std::string("ALWatchDog/TripleClickOccured")
#define DN_US_DISTANCE   std::string("Device/SubDeviceList/US/Sensor/Value")
#define DN_VOLTAGE_MAX   std::string("Device/SubDeviceList/Battery/Charge/Sensor/CellVoltageMax")
#define DN_VOLTAGE_MIN   std::string("Device/SubDeviceList/Battery/Charge/Sensor/CellVoltageMin")
#define S_WINDOW_SIZE   1
#define SENSOR_EXPORT_TO_AL   1
#define SENSOR_LOGGING   0
#define SENSOR_ULTRASONIC_ON   1
#define SENSOR_VERBOSITY   0
Author:
Jason Kulk

NUbots (c) 2008 All Rights Reserved - This file is confidential.

This file contains globals and sensor data access functions.

Version :

Id
sensors.h,v 1.4 2009/07/02 09:37:12 jason Exp
#define VEL_WINDOW_SIZE   16

Enumeration Type Documentation

anonymous enum
Enumerator:
S_LL 
S_LR 
S_RL 
S_RR 
S_NUM_SENSORS 
anonymous enum
Enumerator:
J_HEAD_YAW 
J_HEAD_PITCH 
J_L_SHOULDER_ROLL 
J_L_SHOULDER_PITCH 
J_L_ELBOW_YAW 
J_L_ELBOW_ROLL 
J_R_SHOULDER_ROLL 
J_R_SHOULDER_PITCH 
J_R_ELBOW_YAW 
J_R_ELBOW_ROLL 
J_L_HIP_YAWPITCH 
J_L_HIP_ROLL 
J_L_HIP_PITCH 
J_L_KNEE_PITCH 
J_L_ANKLE_PITCH 
J_L_ANKLE_ROLL 
J_R_HIP_YAWPITCH 
J_R_HIP_ROLL 
J_R_HIP_PITCH 
J_R_KNEE_PITCH 
J_R_ANKLE_PITCH 
J_R_ANKLE_ROLL 
J_NUM_JOINTS 
anonymous enum
Enumerator:
MB_CHEST 
MB_HEAD 
MB_R_SHOULDER 
MB_R_ARM 
MB_R_HAND 
MB_R_HIP 
MB_R_THIGH 
MB_R_SHIN 
MB_R_FOOT 
MB_L_SHOULDER 
MB_L_ARM 
MB_L_HAND 
MB_L_HIP 
MB_L_THIGH 
MB_L_SHIN 
MB_L_FOOT 
MB_US 
MB_INERTIAL 
MB_TOUCH 
MB_FACE 
MB_EAR 
MB_NUM_BOARDS 
anonymous enum
Enumerator:
NK_CHEST 
NK_NUM_BOARDS 
anonymous enum
Enumerator:
B_ACCEL_X 
B_ACCEL_Y 
B_ACCEL_Z 
B_ANGLE_X 
B_ANGLE_Y 
B_GYRO_X 
B_GYRO_Y 
B_NUM_SENSORS 
anonymous enum
Enumerator:
T_L_FSR_FL 
T_L_FSR_FR 
T_L_FSR_BL 
T_L_FSR_BR 
T_L_BUMP_L 
T_L_BUMP_R 
T_R_FSR_FL 
T_R_FSR_FR 
T_R_FSR_BL 
T_R_FSR_BR 
T_R_BUMP_L 
T_R_BUMP_R 
T_CHEST_BUTTON 
T_NUM_SENSORS 
anonymous enum
Enumerator:
PS_L_FL 
PS_L_FR 
PS_L_BL 
PS_L_BR 
PS_L 
PS_R_FL 
PS_R_FR 
PS_R_BL 
PS_R_BR 
PS_R 
PS_NUM_SENSORS 
anonymous enum
Enumerator:
E_CHARGE 
E_CURRENT 
E_VOLTAGE_MIN 
E_VOLTAGE_MAX 
E_TEMPERATURE 
E_NUM_SENSORS 
anonymous enum
Enumerator:
D_US 
D_NUM_SENSORS 
Enumerator:
SM_STANCE 
SM_PUSH 
SM_SWING 
SM_IMPACT 
SM_NUM_MODES 

Function Documentation

void* runSonicThread ( void *  arg  ) 

Variable Documentation

float balanceValues[B_NUM_SENSORS]
float batteryValues[E_NUM_SENSORS]
int boardErrors[MB_NUM_BOARDS]
int dcmTime

Sensor access functions and global variables

  • global store of arrays for feedback data position, velocity, acceleration current stiffnesses and targets temperatures balance (accelerometers and gyros) touch (all buttons + FSR) battery (current, temp and voltage)
  • ALMemoryFastAccess is connected to the feedback data, and new data is copied to the global store
  • Feedback datalogging is also provided by this file
    Author:
    Jason Kulk Version : $Id $
    NUbots (c) 2008 All Rights Reserved
string indexToNack[]
string indexToName[]
string indexToSupportMode[SM_NUM_MODES]
float jointAccelerations[J_NUM_JOINTS]
float jointCurrents[J_NUM_JOINTS]
float jointHardnesses[J_NUM_JOINTS]
float jointPositions[J_NUM_JOINTS]
float jointTargets[J_NUM_JOINTS]
float jointTemperatures[J_NUM_JOINTS]
float jointVelocities[J_NUM_JOINTS]
int nackErrors[NK_NUM_BOARDS]
float sonicValues[S_NUM_SENSORS]
float touchPSValues[PS_NUM_SENSORS]
float touchValues[T_NUM_SENSORS]
unsigned char walkCyclesSinceCall

Generated on Fri Oct 9 13:42:11 2009 for naowalkoptimiser by  doxygen 1.6.1