cisst-saw
|
#include <osaRobot1394.h>
Public Member Functions | |
Lifecycle | |
osaRobot1394 (const osaRobot1394Configuration &config, const size_t maxConsecutiveCurrentSafetyViolations=100, const size_t maxConsecutivePotsToEncodersViolations=200) | |
void | Configure (const osaRobot1394Configuration &config) |
void | SetBoards (const std::vector< osaActuatorMapping > &actuatorBoards, const std::vector< osaBrakeMapping > &brakeBoards) |
State Update Functions | |
} These functions interact with the lower-level hardware to query information only and update this class' members. | |
void | PollValidity (void) |
void | PollState (void) |
void | ConvertState (void) |
void | CheckState (void) |
Command Functions | |
} These functions interact with the lower-level hardware when called to change its state in some way. Note that these functions do not have any side-effects in the class. | |
void | EnablePower (void) |
Power / Safety Control. More... | |
void | EnableBoardsPower (void) |
void | DisablePower (void) |
void | DisableBoardPower (void) |
void | WriteSafetyRelay (const bool &enabled) |
void | SetWatchdogPeriod (const double &periodInSeconds) |
void | SetActuatorPower (const bool &enabled) |
void | SetActuatorPower (const vctBoolVec &enabled) |
void | SetBrakePower (const bool &enabled) |
void | SetBrakePower (const vctBoolVec &enabled) |
void | SetEncoderPosition (const vctDoubleVec &pos) |
Encoder Control. More... | |
void | SetEncoderPositionBits (const vctIntVec &bits) |
void | SetSingleEncoderPosition (const int index, const double pos=0) |
void | SetSingleEncoderPositionBits (const int index, const int bits=0) |
void | SetJointEffort (const vctDoubleVec &efforts) |
Actuator Control. More... | |
void | SetActuatorEffort (const vctDoubleVec &efforts) |
void | SetActuatorCurrent (const vctDoubleVec ¤ts) |
void | SetActuatorCurrentBits (const vctIntVec &bits) |
void | UsePotsForSafetyCheck (const bool &usePotsForSafetyCheck) |
Use potentiometers for safety. More... | |
void | SetPotsToEncodersTolerance (const vctDoubleVec &tolerances) |
void | SetBrakeCurrent (const vctDoubleVec ¤ts) |
Brake Control. More... | |
void | SetBrakeCurrentBits (const vctIntVec &bits) |
void | BrakeRelease (void) |
void | BrakeEngage (void) |
State Accessors | |
} These accessors only access data which is contained in this class, i.e. they do not interact with the lower-level hardware. To update these data from the lower-level system, you must call poll_state. | |
bool | Valid (void) const |
bool | PowerStatus (void) const |
bool | SafetyRelay (void) const |
bool | WatchdogStatus (void) const |
const vctBoolVec & | ActuatorPowerStatus (void) const |
const vctBoolVec & | BrakePowerStatus (void) const |
const vctDoubleVec & | ActuatorCurrentFeedback (void) const |
const vctDoubleVec & | BrakeCurrentFeedback (void) const |
const vctDoubleVec & | PotPosition (void) const |
const vctDoubleVec & | ActuatorTimeStamp (void) const |
const vctDoubleVec & | BrakeTimeStamp (void) const |
const vctDoubleVec & | EncoderPosition (void) const |
const vctDoubleVec & | EncoderVelocity (void) const |
const vctDoubleVec & | EncoderVelocitySoftware (void) const |
Parameter Accessors | |
} | |
osaRobot1394Configuration | GetConfiguration (void) const |
std::string | Name (void) const |
size_t | NumberOfJoints (void) const |
size_t | NumberOfActuators (void) const |
size_t | SerialNumber (void) const |
size_t | NumberOfBrakes (void) const |
void | GetJointTypes (prmJointTypeVec &jointTypes) const |
void | GetJointEffortCommandLimits (vctDoubleVec &limits) const |
void | GetActuatorEffortCommandLimits (vctDoubleVec &limits) const |
void | GetActuatorCurrentCommandLimits (vctDoubleVec &limits) const |
Bias Calibration Functions | |
} | |
void | CalibrateEncoderOffsetsFromPots (void) |
Static Public Attributes | |
static const size_t | WATCHDOG_MS_TO_COUNT = 192 |
Watchdog counts per ms (note counter width, e.g. 16 bits) More... | |
IO1394 Robot Abstraction Layer This class is responsible for robot-level actuation and unit conversion as well as safety monitoring for the QLA robot control architecture.
|
protected |
|
protected |
sawRobotIO1394::osaRobot1394::osaRobot1394 | ( | const osaRobot1394Configuration & | config, |
const size_t | maxConsecutiveCurrentSafetyViolations = 100 , |
||
const size_t | maxConsecutivePotsToEncodersViolations = 200 |
||
) |
void sawRobotIO1394::osaRobot1394::ActuatorBitsToCurrent | ( | const vctIntVec & | bits, |
vctDoubleVec & | currents | ||
) | const |
const vctDoubleVec& sawRobotIO1394::osaRobot1394::ActuatorCurrentFeedback | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::ActuatorCurrentToBits | ( | const vctDoubleVec & | currents, |
vctIntVec & | bits | ||
) | const |
void sawRobotIO1394::osaRobot1394::ActuatorCurrentToEffort | ( | const vctDoubleVec & | currents, |
vctDoubleVec & | efforts | ||
) | const |
void sawRobotIO1394::osaRobot1394::ActuatorEffortToCurrent | ( | const vctDoubleVec & | efforts, |
vctDoubleVec & | currents | ||
) | const |
Conversions for actuator current commands and measurements.
const vctBoolVec& sawRobotIO1394::osaRobot1394::ActuatorPowerStatus | ( | void | ) | const |
const vctDoubleVec& sawRobotIO1394::osaRobot1394::ActuatorTimeStamp | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::BrakeBitsToCurrent | ( | const vctIntVec & | bits, |
vctDoubleVec & | currents | ||
) | const |
const vctDoubleVec& sawRobotIO1394::osaRobot1394::BrakeCurrentFeedback | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::BrakeCurrentToBits | ( | const vctDoubleVec & | currents, |
vctIntVec & | bits | ||
) | const |
Conversions for brake commands.
void sawRobotIO1394::osaRobot1394::BrakeEngage | ( | void | ) |
const vctBoolVec& sawRobotIO1394::osaRobot1394::BrakePowerStatus | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::BrakeRelease | ( | void | ) |
const vctDoubleVec& sawRobotIO1394::osaRobot1394::BrakeTimeStamp | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::CalibrateEncoderOffsetsFromPots | ( | void | ) |
void sawRobotIO1394::osaRobot1394::CheckState | ( | void | ) |
|
protected |
|
protected |
}
|
protected |
void sawRobotIO1394::osaRobot1394::Configure | ( | const osaRobot1394Configuration & | config | ) |
void sawRobotIO1394::osaRobot1394::ConvertState | ( | void | ) |
void sawRobotIO1394::osaRobot1394::DisableBoardPower | ( | void | ) |
void sawRobotIO1394::osaRobot1394::DisablePower | ( | void | ) |
void sawRobotIO1394::osaRobot1394::EnableBoardsPower | ( | void | ) |
void sawRobotIO1394::osaRobot1394::EnablePower | ( | void | ) |
Power / Safety Control.
void sawRobotIO1394::osaRobot1394::EncoderBitsToDPosition | ( | const vctIntVec & | bits, |
vctDoubleVec & | dpos | ||
) | const |
void sawRobotIO1394::osaRobot1394::EncoderBitsToDTime | ( | const vctIntVec & | bits, |
vctDoubleVec & | dt | ||
) | const |
void sawRobotIO1394::osaRobot1394::EncoderBitsToPosition | ( | const vctIntVec & | bits, |
vctDoubleVec & | pos | ||
) | const |
void sawRobotIO1394::osaRobot1394::EncoderBitsToVelocity | ( | const vctIntVec & | bits, |
vctDoubleVec & | vel | ||
) | const |
const vctDoubleVec& sawRobotIO1394::osaRobot1394::EncoderPosition | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::EncoderPositionToBits | ( | const vctDoubleVec & | pos, |
vctIntVec & | bits | ||
) | const |
Conversions for encoders.
const vctDoubleVec& sawRobotIO1394::osaRobot1394::EncoderVelocity | ( | void | ) | const |
const vctDoubleVec& sawRobotIO1394::osaRobot1394::EncoderVelocitySoftware | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::GetActuatorCurrentCommandLimits | ( | vctDoubleVec & | limits | ) | const |
void sawRobotIO1394::osaRobot1394::GetActuatorEffortCommandLimits | ( | vctDoubleVec & | limits | ) | const |
osaRobot1394Configuration sawRobotIO1394::osaRobot1394::GetConfiguration | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::GetJointEffortCommandLimits | ( | vctDoubleVec & | limits | ) | const |
void sawRobotIO1394::osaRobot1394::GetJointTypes | ( | prmJointTypeVec & | jointTypes | ) | const |
std::string sawRobotIO1394::osaRobot1394::Name | ( | void | ) | const |
size_t sawRobotIO1394::osaRobot1394::NumberOfActuators | ( | void | ) | const |
size_t sawRobotIO1394::osaRobot1394::NumberOfBrakes | ( | void | ) | const |
size_t sawRobotIO1394::osaRobot1394::NumberOfJoints | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::PollState | ( | void | ) |
void sawRobotIO1394::osaRobot1394::PollValidity | ( | void | ) |
void sawRobotIO1394::osaRobot1394::PotBitsToVoltage | ( | const vctIntVec & | bits, |
vctDoubleVec & | voltages | ||
) | const |
Conversions for potentiometers.
const vctDoubleVec& sawRobotIO1394::osaRobot1394::PotPosition | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::PotVoltageToPosition | ( | const vctDoubleVec & | voltages, |
vctDoubleVec & | pos | ||
) | const |
bool sawRobotIO1394::osaRobot1394::PowerStatus | ( | void | ) | const |
bool sawRobotIO1394::osaRobot1394::SafetyRelay | ( | void | ) | const |
size_t sawRobotIO1394::osaRobot1394::SerialNumber | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::SetActuatorCurrent | ( | const vctDoubleVec & | currents | ) |
void sawRobotIO1394::osaRobot1394::SetActuatorCurrentBits | ( | const vctIntVec & | bits | ) |
void sawRobotIO1394::osaRobot1394::SetActuatorEffort | ( | const vctDoubleVec & | efforts | ) |
void sawRobotIO1394::osaRobot1394::SetActuatorPower | ( | const bool & | enabled | ) |
void sawRobotIO1394::osaRobot1394::SetActuatorPower | ( | const vctBoolVec & | enabled | ) |
void sawRobotIO1394::osaRobot1394::SetBoards | ( | const std::vector< osaActuatorMapping > & | actuatorBoards, |
const std::vector< osaBrakeMapping > & | brakeBoards | ||
) |
void sawRobotIO1394::osaRobot1394::SetBrakeCurrent | ( | const vctDoubleVec & | currents | ) |
Brake Control.
void sawRobotIO1394::osaRobot1394::SetBrakeCurrentBits | ( | const vctIntVec & | bits | ) |
void sawRobotIO1394::osaRobot1394::SetBrakePower | ( | const bool & | enabled | ) |
void sawRobotIO1394::osaRobot1394::SetBrakePower | ( | const vctBoolVec & | enabled | ) |
void sawRobotIO1394::osaRobot1394::SetEncoderPosition | ( | const vctDoubleVec & | pos | ) |
Encoder Control.
void sawRobotIO1394::osaRobot1394::SetEncoderPositionBits | ( | const vctIntVec & | bits | ) |
void sawRobotIO1394::osaRobot1394::SetJointEffort | ( | const vctDoubleVec & | efforts | ) |
Actuator Control.
void sawRobotIO1394::osaRobot1394::SetPotsToEncodersTolerance | ( | const vctDoubleVec & | tolerances | ) |
void sawRobotIO1394::osaRobot1394::SetSingleEncoderPosition | ( | const int | index, |
const double | pos = 0 |
||
) |
void sawRobotIO1394::osaRobot1394::SetSingleEncoderPositionBits | ( | const int | index, |
const int | bits = 0 |
||
) |
void sawRobotIO1394::osaRobot1394::SetWatchdogPeriod | ( | const double & | periodInSeconds | ) |
void sawRobotIO1394::osaRobot1394::UsePotsForSafetyCheck | ( | const bool & | usePotsForSafetyCheck | ) |
Use potentiometers for safety.
bool sawRobotIO1394::osaRobot1394::Valid | ( | void | ) | const |
bool sawRobotIO1394::osaRobot1394::WatchdogStatus | ( | void | ) | const |
void sawRobotIO1394::osaRobot1394::WriteSafetyRelay | ( | const bool & | enabled | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Board Objects.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Robot Configuration.
|
protected |
Vectors of actuator properties.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Robot type.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
State Members.
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
Watchdog counts per ms (note counter width, e.g. 16 bits)