#include <device.hh>
Public Types | |
enum | ForceSignalSource { FORCE_SIGNAL_RLEG, FORCE_SIGNAL_LLEG, FORCE_SIGNAL_RARM, FORCE_SIGNAL_LARM } |
Public Types inherited from dynamicgraph::Entity | |
typedef std::map< const std::string, command::Command *> | CommandMap_t |
typedef std::map< std::string, SignalBase< int > *> | SignalMap |
Public Member Functions | |
virtual void | cmdDisplay () |
Device (const std::string &name) | |
virtual void | display (std::ostream &os) const |
virtual const std::string & | getClassName (void) const |
void | getControl (std::map< std::string, ControlValues > &anglesOut, const double &period) |
int | getControlSize () const |
virtual void | setControlInputType (const std::string &cit) |
void | setControlSize (const int &size) |
virtual void | setNoIntegration () |
virtual void | setRoot (const dynamicgraph::Matrix &root) |
virtual void | setRoot (const MatrixHomogeneous &worldMwaist) |
virtual void | setSecondOrderIntegration () |
virtual void | setState (const dynamicgraph::Vector &st) |
virtual void | setStateSize (const unsigned int &size) |
virtual void | setVelocity (const dynamicgraph::Vector &vel) |
void | setVelocitySize (const unsigned int &size) |
virtual | ~Device () |
Sanity check parameterization | |
void | setSanityCheck (const bool &enableCheck) |
void | setPositionBounds (const Vector &lower, const Vector &upper) |
void | setVelocityBounds (const Vector &lower, const Vector &upper) |
void | setTorqueBounds (const Vector &lower, const Vector &upper) |
Public Member Functions inherited from dynamicgraph::Entity | |
std::ostream & | displaySignalList (std::ostream &os) const |
Entity (const std::string &name) | |
const std::string & | getCommandList () const |
virtual std::string | getDocString () const |
LoggerVerbosity | getLoggerVerbosityLevel () |
LoggerVerbosity | getLoggerVerbosityLevel () |
const std::string & | getName () const |
command::Command * | getNewStyleCommand (const std::string &cmdName) |
CommandMap_t | getNewStyleCommandMap () |
SignalBase< int > & | getSignal (const std::string &signalName) |
const SignalBase< int > & | getSignal (const std::string &signalName) const |
SignalMap | getSignalMap () const |
double | getStreamPrintPeriod () |
double | getStreamPrintPeriod () |
double | getTimeSample () |
double | getTimeSample () |
bool | hasSignal (const std::string &signame) const |
Logger & | logger () |
Logger const & | logger () const |
Logger & | logger () |
Logger const & | logger () const |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | sendMsg (const std::string &msg, MsgType t=MSG_TYPE_INFO, const std::string &lineId="") |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
void | setLoggerVerbosityLevel (LoggerVerbosity lv) |
bool | setStreamPrintPeriod (double t) |
bool | setStreamPrintPeriod (double t) |
bool | setTimeSample (double t) |
bool | setTimeSample (double t) |
virtual SignalBase< int > * | test () |
virtual void | test2 (SignalBase< int > *) |
virtual std::ostream & | writeCompletionList (std::ostream &os) const |
virtual std::ostream & | writeGraph (std::ostream &os) const |
virtual | ~Entity () |
Static Public Attributes | |
static const std::string | CLASS_NAME = "Device" |
Protected Attributes | |
ControlInput | controlInputType_ |
bool | sanityCheck_ |
dynamicgraph::Vector | state_ |
double | timestep_ |
dynamicgraph::Vector | vel_control_ |
dynamicgraph::Vector | velocity_ |
bool | withForceSignals [4] |
Robot bounds used for sanity checks | |
Vector | upperPosition_ |
Vector | upperVelocity_ |
Vector | upperTorque_ |
Vector | lowerPosition_ |
Vector | lowerVelocity_ |
Vector | lowerTorque_ |
Protected Attributes inherited from dynamicgraph::Entity | |
CommandMap_t | commandMap |
Logger | logger_ |
std::string | name |
SignalMap | signalMap |
Private Attributes | |
int | controlSize_ |
dynamicgraph::Vector | forceZero6 |
int | lastTimeControlWasRead_ |
Friends | |
SOT_CORE_EXPORT friend std::ostream & | operator<< (std::ostream &os, const Device &r) |
Additional Inherited Members | |
Protected Member Functions inherited from dynamicgraph::Entity | |
void | addCommand (const std::string &name, command::Command *command) |
void | entityDeregistration () |
void | entityRegistration () |
void | signalDeregistration (const std::string &name) |
void | signalRegistration (const SignalArray< int > &signals) |
Device::Device | ( | const std::string & | name | ) |
Definition at line 78 of file device.cpp.
|
virtual |
Definition at line 72 of file device.cpp.
|
virtual |
Definition at line 354 of file device.cpp.
|
virtual |
Reimplemented from dynamicgraph::Entity.
Definition at line 348 of file device.cpp.
|
inlinevirtual |
Reimplemented from dynamicgraph::Entity.
Reimplemented in dynamicgraph::sot::RobotSimu.
void Device::getControl | ( | std::map< std::string, ControlValues > & | anglesOut, |
const double & | period | ||
) |
Definition at line 226 of file device.cpp.
int Device::getControlSize | ( | ) | const |
Definition at line 261 of file device.cpp.
|
virtual |
Definition at line 293 of file device.cpp.
void Device::setControlSize | ( | const int & | size | ) |
Definition at line 259 of file device.cpp.
|
virtual |
Definition at line 291 of file device.cpp.
Definition at line 297 of file device.cpp.
|
virtual |
Definition at line 276 of file device.cpp.
|
virtual |
Definition at line 282 of file device.cpp.
void Device::setSanityCheck | ( | const bool & | enableCheck | ) |
Definition at line 295 of file device.cpp.
|
virtual |
Definition at line 289 of file device.cpp.
|
virtual |
Definition at line 269 of file device.cpp.
|
virtual |
Definition at line 244 of file device.cpp.
Definition at line 329 of file device.cpp.
|
virtual |
Definition at line 271 of file device.cpp.
Definition at line 313 of file device.cpp.
void Device::setVelocitySize | ( | const unsigned int & | size | ) |
Definition at line 263 of file device.cpp.
|
friend |
dynamicgraph::SignalPtr<dynamicgraph::Vector, int> dynamicgraph::sot::Device::attitudeSIN |
dynamicgraph::Signal<MatrixRotation, int> dynamicgraph::sot::Device::attitudeSOUT |
|
protected |
dynamicgraph::SignalPtr<dynamicgraph::Vector, int> dynamicgraph::sot::Device::controlSIN |
dynamicgraph::Signal<dynamicgraph::Vector, int>* dynamicgraph::sot::Device::forcesSOUT[4] |
|
private |
|
private |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::motorcontrolSOUT |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::previousControlSOUT |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::pseudoTorqueSOUT |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::robotState_ |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::robotVelocity_ |
|
protected |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::stateSOUT |
|
protected |
|
protected |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::velocitySOUT |
|
protected |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::ZMPPreviousControllerSOUT |
dynamicgraph::SignalPtr<dynamicgraph::Vector, int> dynamicgraph::sot::Device::zmpSIN |