sot-core
4.11.8
Hierarchical task solver plug-in for dynamic-graph.
|
#include <sot/core/device.hh>
Public Types | |
enum | ForceSignalSource { FORCE_SIGNAL_RLEG , FORCE_SIGNAL_LLEG , FORCE_SIGNAL_RARM , FORCE_SIGNAL_LARM } |
Public Member Functions | |
virtual const std::string & | getClassName (void) const |
Device (const std::string &name) | |
virtual | ~Device () |
virtual void | setStateSize (const unsigned int &size) |
virtual void | setState (const dynamicgraph::Vector &st) |
void | setVelocitySize (const unsigned int &size) |
virtual void | setVelocity (const dynamicgraph::Vector &vel) |
virtual void | setSecondOrderIntegration () |
virtual void | setNoIntegration () |
virtual void | setControlInputType (const std::string &cit) |
virtual void | increment (const double &dt=5e-2) |
PeriodicCall & | periodicCallBefore () |
PeriodicCall & | periodicCallAfter () |
virtual void | display (std::ostream &os) const |
virtual void | cmdDisplay () |
virtual void | setRoot (const dynamicgraph::Matrix &root) |
virtual void | setRoot (const MatrixHomogeneous &worldMwaist) |
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 Attributes | |
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > | controlSIN |
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > | attitudeSIN |
dynamicgraph::SignalPtr< dynamicgraph::Vector, int > | zmpSIN |
Device current state. | |
dynamicgraph::Signal< dynamicgraph::Vector, int > | stateSOUT |
dynamicgraph::Signal< dynamicgraph::Vector, int > | velocitySOUT |
dynamicgraph::Signal< MatrixRotation, int > | attitudeSOUT |
dynamicgraph::Signal< dynamicgraph::Vector, int > | motorcontrolSOUT |
The current state of the robot from the command viewpoint. More... | |
dynamicgraph::Signal< dynamicgraph::Vector, int > | previousControlSOUT |
dynamicgraph::Signal< dynamicgraph::Vector, int > | ZMPPreviousControllerSOUT |
The ZMP reference send by the previous controller. More... | |
Real robot current state | |
This corresponds to the real encoders values and take into account the stabilization step. Therefore, this usually does not match the state control input signal. Motor positions | |
dynamicgraph::Signal< dynamicgraph::Vector, int > | robotState_ |
dynamicgraph::Signal< dynamicgraph::Vector, int > | robotVelocity_ |
Motor velocities. More... | |
dynamicgraph::Signal< dynamicgraph::Vector, int > * | forcesSOUT [4] |
The force torque sensors. More... | |
dynamicgraph::Signal< dynamicgraph::Vector, int > | pseudoTorqueSOUT |
Static Public Attributes | |
static const std::string | CLASS_NAME |
Protected Member Functions | |
void | integrateRollPitchYaw (dynamicgraph::Vector &state, const dynamicgraph::Vector &control, double dt) |
Compute roll pitch yaw angles of freeflyer joint. More... | |
virtual void | integrate (const double &dt) |
const MatrixHomogeneous & | freeFlyerPose () const |
Get freeflyer pose. More... | |
Protected Attributes | |
dynamicgraph::Vector | state_ |
dynamicgraph::Vector | velocity_ |
bool | sanityCheck_ |
dynamicgraph::Vector | vel_control_ |
ControlInput | controlInputType_ |
bool | withForceSignals [4] |
PeriodicCall | periodicCallBefore_ |
PeriodicCall | periodicCallAfter_ |
double | timestep_ |
MatrixHomogeneous | ffPose_ |
Store Position of free flyer joint. More... | |
Robot bounds used for sanity checks | |
Vector | upperPosition_ |
Vector | upperVelocity_ |
Vector | upperTorque_ |
Vector | lowerPosition_ |
Vector | lowerVelocity_ |
Vector | lowerTorque_ |
Friends | |
SOT_CORE_EXPORT friend std::ostream & | operator<< (std::ostream &os, const Device &r) |
dynamicgraph::sot::Device::Device | ( | const std::string & | name | ) |
|
virtual |
|
virtual |
|
virtual |
|
protected |
Get freeflyer pose.
|
inlinevirtual |
Reimplemented in dynamicgraph::sot::RobotSimu.
|
virtual |
|
protectedvirtual |
Compute the new position, from the current control.
When sanity checks are enabled, this checks that the control is within bounds. There are three cases, depending on what the control is:
|
protected |
Compute roll pitch yaw angles of freeflyer joint.
|
inline |
|
inline |
|
virtual |
|
virtual |
void dynamicgraph::sot::Device::setPositionBounds | ( | const Vector & | lower, |
const Vector & | upper | ||
) |
|
virtual |
|
virtual |
void dynamicgraph::sot::Device::setSanityCheck | ( | const bool & | enableCheck | ) |
|
virtual |
|
virtual |
|
virtual |
void dynamicgraph::sot::Device::setTorqueBounds | ( | const Vector & | lower, |
const Vector & | upper | ||
) |
|
virtual |
void dynamicgraph::sot::Device::setVelocityBounds | ( | const Vector & | lower, |
const Vector & | upper | ||
) |
void dynamicgraph::sot::Device::setVelocitySize | ( | const unsigned int & | size | ) |
|
friend |
dynamicgraph::SignalPtr<dynamicgraph::Vector, int> dynamicgraph::sot::Device::attitudeSIN |
dynamicgraph::Signal<MatrixRotation, int> dynamicgraph::sot::Device::attitudeSOUT |
|
static |
|
protected |
dynamicgraph::SignalPtr<dynamicgraph::Vector, int> dynamicgraph::sot::Device::controlSIN |
|
protected |
Store Position of free flyer joint.
dynamicgraph::Signal<dynamicgraph::Vector, int>* dynamicgraph::sot::Device::forcesSOUT[4] |
The force torque sensors.
|
protected |
|
protected |
|
protected |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::motorcontrolSOUT |
The current state of the robot from the command viewpoint.
|
protected |
|
protected |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::previousControlSOUT |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::pseudoTorqueSOUT |
Motor torques
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::robotState_ |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::robotVelocity_ |
Motor velocities.
|
protected |
|
protected |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::stateSOUT |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::velocitySOUT |
|
protected |
dynamicgraph::Signal<dynamicgraph::Vector, int> dynamicgraph::sot::Device::ZMPPreviousControllerSOUT |
The ZMP reference send by the previous controller.
dynamicgraph::SignalPtr<dynamicgraph::Vector, int> dynamicgraph::sot::Device::zmpSIN |