| 
    XBotInterface
    2.4.1
    
   XBotInterface provides a generic API to model and control a robot. 
   | 
 
 
 
 
Go to the documentation of this file.
   20 #ifndef __XBOT_XBOTINTERFACE_CONTROLMODE_H__ 
   21 #define __XBOT_XBOTINTERFACE_CONTROLMODE_H__ 
   44                     bool position_enabled = 
false, 
 
   45                     bool velocity_enabled = 
false,
 
   46                     bool effort_enabled = 
false,
 
   47                     bool stiffness_enabled = 
false,
 
   48                     bool damping_enabled = 
false);
 
   60         const std::string& 
getName() 
const;
 
   82         bool _position_enabled;
 
   83         bool _velocity_enabled;
 
   85         bool _stiffness_enabled;
 
   86         bool _damping_enabled;
 
   88         bool setPositionEnabled(
bool is_enabled);
 
   89         bool setVelocityEnabled(
bool is_enabled);
 
   90         bool setEffortEnabled(
bool is_enabled);
 
   91         bool setStiffnessEnabled(
bool is_enabled);
 
   92         bool setDampingEnabled(
bool is_enabled);
 
  
bool isVelocityEnabled() const
Definition: ControlMode.cpp:82
 
bool isDampingEnabled() const
Definition: ControlMode.cpp:62
 
static ControlMode Effort()
Definition: ControlMode.cpp:124
 
std::bitset< 5 > Bitset
Representation of a control mode as a bitset.
Definition: ControlMode.h:41
 
Definition: ControlMode.h:28
 
bool isEffortEnabled() const
Definition: ControlMode.cpp:67
 
static ControlMode PosImpedance()
Definition: ControlMode.cpp:131
 
bool isStiffnessEnabled() const
Definition: ControlMode.cpp:77
 
bool isPositionEnabled() const
Definition: ControlMode.cpp:72
 
const std::string & getName() const
Definition: ControlMode.cpp:223
 
static ControlMode Idle()
Definition: ControlMode.cpp:161
 
static ControlMode Damping()
Definition: ControlMode.cpp:117
 
ControlMode(const std::string &name="", bool position_enabled=false, bool velocity_enabled=false, bool effort_enabled=false, bool stiffness_enabled=false, bool damping_enabled=false)
Definition: ControlMode.cpp:24
 
static Bitset AsBitset(const ControlMode &ctrl_mode)
Definition: ControlMode.cpp:166
 
static ControlMode Stiffness()
Definition: ControlMode.cpp:147
 
bool operator==(const ControlMode &ctrl_mode) const
Definition: ControlMode.cpp:218
 
static ControlMode FromBitset(Bitset bitset)
Definition: ControlMode.cpp:178
 
ControlMode operator+(const ControlMode &ctrl_mode) const
Definition: ControlMode.cpp:42
 
static ControlMode Velocity()
Definition: ControlMode.cpp:154
 
Definition: IXBotModel.h:20
 
static ControlMode Position()
Definition: ControlMode.cpp:140