6 #ifndef GAIT_INTERFACE_H
7 #define GAIT_INTERFACE_H
10 #include <gait/gait_common.h>
11 #include <gait/gait_command.h>
30 for(
int i = 0; i < NUM_JOINTS; i++)
76 for(
int i = 0; i < NUM_JOINTS; i++)
85 for(
int i = 0; i < 3; i++)
MotionID
Enumeration of motion IDs that can be used in the GaitCommand::motion field to trigger motions throug...
Definition: gait_common.h:85
Gait command data structure.
Definition: gait_command.h:20
Data struct for passing gait engine output data from the gait engine to the generic gait motion modul...
Definition: gait_interface.h:68
double jointEffort[NUM_JOINTS]
Commanded joint effort (indexed by the JointID enum, in the range [0,1]).
Definition: gait_interface.h:95
bool walking
Flag specifying whether the gait is currently active and walking (true) or halted (false)...
Definition: gait_interface.h:99
MotionStance
Enumeration of motion stances that can be commanded to a gait engine.
Definition: gait_common.h:107
void reset()
Reset function.
Definition: gait_interface.h:74
void reset(bool shouldWalk=false)
Reset function.
Definition: gait_command.h:26
double odomPosition[3]
Position (x,y,z) of the robot's body-fixed base transform (centred at the robot's centre of mass) in ...
Definition: gait_interface.h:106
double odomOrientation[4]
Orientation (w,x,y,z) of the robot's body-fixed base transform (centred at the robot's centre of mass...
Definition: gait_interface.h:107
GaitEngineOutput()
Default constructor.
Definition: gait_interface.h:71
double jointCmd[NUM_JOINTS]
Commanded position for each joint (indexed by the JointID enum, in rad).
Definition: gait_interface.h:94
bool useRawJointCmds
Apply the joint commands directly to the hardware, without using compensation or actuator controller(...
Definition: gait_interface.h:96
double supportCoeffLeftLeg
Current support coefficient of the left leg.
Definition: gait_interface.h:102
double supportCoeffRightLeg
Current support coefficient of the right leg.
Definition: gait_interface.h:103