10 #include <gait/gait_common.h>
11 #include <gait/gait_interface.h>
14 namespace robotcontrol
102 virtual void setOdometry(
double posX,
double posY,
double rotZ);
135 const robotcontrol::RobotModel*
model;
168 void setGaitOwner(
const Gait* gaitPtr) { m_gait = gaitPtr; }
Base implementation of a gait engine, made to work with the Gait motion module.
Definition: gait_engine.h:30
virtual void setOdometry(double posX, double posY, double rotZ)
Set the CoM odometry to a particular 2D position and orientation.
Definition: gait_engine.cpp:63
double haltJointCmd[NUM_JOINTS]
Commanded halt position for each joint (indexed by the JointID enum, in rad).
Definition: gait_engine.h:154
bool haltUseRawJointCmds
Apply the joint commands directly to the hardware in the halt pose, without using compensation or act...
Definition: gait_engine.h:156
Generic gait motion module that can execute a given GaitEngine.
Definition: gait.h:54
GaitEngine()
Default constructor.
Definition: gait_engine.h:34
Data struct for passing gait engine output data from the gait engine to the generic gait motion modul...
Definition: gait_interface.h:68
const robotcontrol::RobotModel * model
Pointer to the RobotModel object to use for retrieving state information in each step.
Definition: gait_engine.h:135
GaitEngineOutput out
Gait engine output data struct.
Definition: gait_engine.h:126
virtual ~GaitEngine()
Default destructor.
Definition: gait_engine.h:51
virtual void handleJoystickButton(int button)
Notify the gait engine that a particular joystick button has been pressed and released by the user...
Definition: gait_engine.h:122
void reset()
Reset function.
Definition: gait_interface.h:74
double haltJointEffort[NUM_JOINTS]
Commanded halt joint effort (indexed by the JointID enum, in the range [0,1]).
Definition: gait_engine.h:155
virtual void updateOdometry()
Force an update of the CoM odometry in terms of 3D position and orientation.
Definition: gait_engine.cpp:75
virtual void updateHaltPose()
Update the halt pose desired by the gait engine.
Definition: gait_engine.cpp:46
virtual void step()
Main step function of the gait engine.
Definition: gait_engine.cpp:21
void resetBase()
Reset the GaitEngine base class.
Definition: gait_engine.h:143
GaitEngineInput in
Gait engine input data struct.
Definition: gait_engine.h:125
virtual void reset()
Reset the gait engine.
Definition: gait_engine.h:61