Basic RT components and utilities
315.12.1
|
import "RobotHardwareService.idl";
Classes | |
struct | BatteryState |
struct | RobotState |
status of the robot More... | |
struct | RobotState2 |
status of the robot More... | |
Public Types | |
enum | SwitchStatus { SWITCH_ON, SWITCH_OFF } |
typedef sequence< octet > | OctSequence |
typedef sequence< double > | DblSequence |
typedef sequence< long > | LongSequence |
typedef sequence< string > | StrSequence |
typedef sequence< LongSequence > | LongSequenceSequence |
typedef double | DblArray3 [3] |
typedef double | DblArray6 [6] |
typedef sequence< double, 3 > | DblSequence3 |
typedef sequence< double, 6 > | DblSequence6 |
Public Member Functions | |
void | getStatus (out RobotState rs) |
get status of the robot | |
boolean | power (in string name, in SwitchStatus _ss) |
turn on/off power supply for motor driver | |
boolean | servo (in string name, in SwitchStatus _ss) |
servo on/off | |
void | setServoGainPercentage (in string name, in double percentage) |
set the parcentage to the default servo gain | |
void | setServoErrorLimit (in string name, in double limit) |
set the maximum joint servo error angle | |
void | calibrateInertiaSensor () |
remove offsets on sensor outputs form gyro sensors and accelerometers. | |
void | removeForceSensorOffset () |
remove offsets on sensor outputs form force/torque sensors. | |
void | initializeJointAngle (in string name, in string option) |
initialize joint angle | |
boolean | addJointGroup (in string gname, in StrSequence jnames) |
add definition of joint group | |
boolean | readDigitalInput (out OctSequence din) |
get digital input to robot | |
long | lengthDigitalInput () |
get digital input length of robot, non-applicable bits are nop | |
boolean | writeDigitalOutput (in OctSequence dout) |
set digital output from robot | |
boolean | writeDigitalOutputWithMask (in OctSequence dout, in OctSequence mask) |
set digital output from robot | |
long | lengthDigitalOutput () |
get digital output length of robot, non-applicable bits are nop | |
boolean | readDigitalOutput (out OctSequence dOut) |
get digital output to robot | |
void | getStatus2 (out RobotState2 rs) |
get status of the robot | |
Public Attributes | |
const unsigned long | CALIB_STATE_MASK = 0x00000001 |
const unsigned long | CALIB_STATE_SHIFT = 0 |
const unsigned long | SERVO_STATE_MASK = 0x00000002 |
const unsigned long | SERVO_STATE_SHIFT = 1 |
const unsigned long | POWER_STATE_MASK = 0x00000004 |
const unsigned long | POWER_STATE_SHIFT = 2 |
const unsigned long | SERVO_ALARM_MASK = 0x0007fff8 |
const unsigned long | SERVO_ALARM_SHIFT = 3 |
const unsigned long | DRIVER_TEMP_MASK = 0xff000000 |
const unsigned long | DRIVER_TEMP_SHIFT = 24 |
typedef double OpenHRP::RobotHardwareService::DblArray3[3] |
typedef double OpenHRP::RobotHardwareService::DblArray6[6] |
typedef sequence<double> OpenHRP::RobotHardwareService::DblSequence |
typedef sequence<double, 3> OpenHRP::RobotHardwareService::DblSequence3 |
typedef sequence<double, 6> OpenHRP::RobotHardwareService::DblSequence6 |
typedef sequence<long> OpenHRP::RobotHardwareService::LongSequence |
typedef sequence<LongSequence> OpenHRP::RobotHardwareService::LongSequenceSequence |
typedef sequence<octet> OpenHRP::RobotHardwareService::OctSequence |
typedef sequence<string> OpenHRP::RobotHardwareService::StrSequence |
boolean OpenHRP::RobotHardwareService::addJointGroup | ( | in string | gname, |
in StrSequence | jnames | ||
) |
add definition of joint group
gname | name of the joint group |
jnames | list of joint name |
remove offsets on sensor outputs form gyro sensors and accelerometers.
This function takes 10[s]. Please keep the robot static.
void OpenHRP::RobotHardwareService::getStatus | ( | out RobotState | rs | ) |
get status of the robot
rs | status of the robot |
void OpenHRP::RobotHardwareService::getStatus2 | ( | out RobotState2 | rs | ) |
get status of the robot
rs | status of the robot |
void OpenHRP::RobotHardwareService::initializeJointAngle | ( | in string | name, |
in string | option | ||
) |
initialize joint angle
name | joint name, part name or "all" |
option | string of joint angle initialization |
get digital input length of robot, non-applicable bits are nop
get digital output length of robot, non-applicable bits are nop
boolean OpenHRP::RobotHardwareService::power | ( | in string | name, |
in SwitchStatus | _ss | ||
) |
turn on/off power supply for motor driver
name | joint name, part name or "all" |
_ss | SWITCH_ON or SWITCH_OFF |
true | if turned on/off successfully |
false | otherwise |
boolean OpenHRP::RobotHardwareService::readDigitalInput | ( | out OctSequence | din | ) |
get digital input to robot
dOut | will hold the input bits as an array of bytes |
boolean OpenHRP::RobotHardwareService::readDigitalOutput | ( | out OctSequence | dOut | ) |
get digital output to robot
dOut | will hold the input bits as an array of bytes |
remove offsets on sensor outputs form force/torque sensors.
This function takes 10[s]. Please keep the robot static and make sure that robot's sensors do not contact with any objects.
boolean OpenHRP::RobotHardwareService::servo | ( | in string | name, |
in SwitchStatus | _ss | ||
) |
servo on/off
name | joint name, part name or "all" |
_ss | SWITCH_ON or SWITCH_OFF |
true | if servo on/off successfully |
false | otherwise |
void OpenHRP::RobotHardwareService::setServoErrorLimit | ( | in string | name, |
in double | limit | ||
) |
set the maximum joint servo error angle
name | joint name, part name or "all" |
limit | the maximum joint servo error angle[rad] |
void OpenHRP::RobotHardwareService::setServoGainPercentage | ( | in string | name, |
in double | percentage | ||
) |
set the parcentage to the default servo gain
name | joint name, part name or "all" |
percentage | to joint servo gain[0-100] |
boolean OpenHRP::RobotHardwareService::writeDigitalOutput | ( | in OctSequence | dout | ) |
set digital output from robot
dOut | sends the output from the robot in a byte array |
boolean OpenHRP::RobotHardwareService::writeDigitalOutputWithMask | ( | in OctSequence | dout, |
in OctSequence | mask | ||
) |
set digital output from robot
dOut | sends the output from the robot in a byte array |
mask | binary vector which selects output to be set |
const unsigned long OpenHRP::RobotHardwareService::CALIB_STATE_MASK = 0x00000001 |
const unsigned long OpenHRP::RobotHardwareService::CALIB_STATE_SHIFT = 0 |
const unsigned long OpenHRP::RobotHardwareService::DRIVER_TEMP_MASK = 0xff000000 |
const unsigned long OpenHRP::RobotHardwareService::DRIVER_TEMP_SHIFT = 24 |
const unsigned long OpenHRP::RobotHardwareService::POWER_STATE_MASK = 0x00000004 |
const unsigned long OpenHRP::RobotHardwareService::POWER_STATE_SHIFT = 2 |
const unsigned long OpenHRP::RobotHardwareService::SERVO_ALARM_MASK = 0x0007fff8 |
const unsigned long OpenHRP::RobotHardwareService::SERVO_ALARM_SHIFT = 3 |
const unsigned long OpenHRP::RobotHardwareService::SERVO_STATE_MASK = 0x00000002 |
const unsigned long OpenHRP::RobotHardwareService::SERVO_STATE_SHIFT = 1 |