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_SYNCFLAGS__
21 #define __XBOT_SYNCFLAGS__
53 template <
typename... Flags>
63 Sync s, Flags... rest){
66 parseFlags(pos, vel, acc, eff, k, d, ft, imu, motor_side, rest...);
92 template <
typename... Flags>
117 if(mot && !pos && !vel)
119 throw std::runtime_error(
"Sync::MotorSide must be used together with Position OR Velocity!");
136 bool pos, vel, acc, eff, k, d, ft, imu, mot;
bool motor_side_flag() const
Definition: SyncFlags.h:132
Definition: SyncFlags.h:83
bool damping_flag() const
Definition: SyncFlags.h:129
bool acceleration_flag() const
Definition: SyncFlags.h:126
bool stiffness_flag() const
Definition: SyncFlags.h:128
bool effort_flag() const
Definition: SyncFlags.h:127
bool ft_flag() const
Definition: SyncFlags.h:130
Sync
enum class that represents a set of flags to specify what part of the robot/model state needs to be s...
Definition: TypedefAndEnums.h:107
void load_flags(Flags... flags)
Definition: SyncFlags.h:93
void parseFlags(bool &pos, bool &vel, bool &acc, bool &eff, bool &k, bool &d, bool &ft, bool &imu, bool &motor_side, Sync s=Sync::All)
Definition: SyncFlags.h:27
bool velocity_flag() const
Definition: SyncFlags.h:125
bool imu_flag() const
Definition: SyncFlags.h:131
bool position_flag() const
Definition: SyncFlags.h:124
Definition: IXBotModel.h:20
FlagsParser()
Definition: SyncFlags.h:88