2 #include <ros/console.h> 
    7 int main(
int argc, 
char **argv)
 
    9     bool USE_GUIDANCE_CONTROL = 
false;
 
   11     int controller_frequency = 200;
 
   13     double gait_period = 0.4;
 
   15     double SET_TWIST_TIME = gait_period * 10.0;
 
   17     double LOG_START_TIME = gait_period * 20.0;;
 
   19     double LOG_PERIOD = gait_period * 3.0; 
 
   23     ros::Rate control_rate(controller_frequency);
 
   25     ROS_INFO(
"Initialization complete");
 
   31     ROS_INFO(
"Position joint states received");
 
   43         if(iteration == 
int(SET_TWIST_TIME * controller_frequency))
 
   50             if(USE_GUIDANCE_CONTROL)
 
   69         if(iteration >= 
int(LOG_START_TIME * controller_frequency) && (iteration <= 
int((LOG_START_TIME + LOG_PERIOD) * controller_frequency)))
 
bool UpdateJointCommands()
 
bool UpdateVelocityCommands()
 
void waitForReadyToProceed()
 
void SetTwistCommand(double lin_vel_cmd_x, double lin_vel_cmd_y, double ang_vel_cmd_z)
 
bool sendJointPositionCommands()
 
virtual void setInitialConfiguration()
 
void UpdateFeetTrajectories()
 
void UpdateNonGuidanceCommands()
 
void UpdateGuidanceCommands()
 
void PrintFootPositions()
 
void UpdateStepDistances()
 
int main(int argc, char **argv)