1 #ifndef robot_controller_h
2 #define robot_controller_h
LegType
Leg type enumerator.
double step_distance_x_linear
void SetFeetPositionsGoalPose()
A function that sets the goal positions as the targets to reach eventually.
double step_distance_y_linear
double swing_rise_percentage
void UpdateFeetReferences()
A function updating the foot positions of the robot in the hip frames.
double _guidance_lin_vel_gain
double fr_step_distance_y
MotionState motion_state
A variable deciding which of the four motion states we are currently in.
void UpdateFeetTrajectories()
double _lin_vel_x_command
Eigen::Matrix< double, 3, 1 > rl_goal_position
The rear left foot target position in the hip frame when using pose control.
void UpdateNonGuidanceCommands()
double stance_phase_duration_percentage
Eigen::Matrix< double, 3, 1 > UpdateSwingFootPosition(Kinematics::LegType _leg_type, double _progress)
Eigen::Matrix< double, 3, 1 > fr_goal_position
The front right foot target position in the hip frame when using pose control.
Eigen::Matrix< double, 3, 1 > UpdateStanceFootPosition(Kinematics::LegType _leg_type, double _progress)
Eigen::Matrix< double, 12, 1 > initial_feet_positions_pose_control
double _ang_vel_z_command
double rr_step_distance_x
double _guidance_ang_vel_gain
void UpdateGuidanceCommands()
void PrintFootPositions()
void UpdateFeetReferencesGaitControl()
A gait controller updating the robot's foot positions to walk.
double step_distance_x_rotational
void UpdateStepDistances()
double rr_step_distance_y
void UpdateFeetReferencesPoseControl()
A pose controller updating robot's foot positions to control its pose.
double step_distance_y_rotational
double rl_step_distance_y
SuperState super_state
The main state of the robot deciding whether the robot is walking or not.
RobotController(int controller_freq, double gait_period)
void UpdateSwingFootTrajectory(Kinematics::LegType _leg_type, double progress)
double _lin_vel_y_command
double fl_step_distance_y
double rl_step_distance_x
Eigen::Matrix< double, 3, 1 > rr_goal_position
The rear right foot target position in the hip frame when using pose control.
Eigen::Matrix< double, 3, 1 > fl_goal_position
The front left foot target position in the hip frame when using pose control.
double fr_step_distance_x
double fl_step_distance_x