2 #include <ros/console.h>
6 int main(
int argc,
char **argv)
8 bool USE_POSITION_CONTROL =
false;
10 double PUBLISH_FREQUENCY = 200.0;
18 ros::Rate check_for_messages_rate(1);
20 ros::Rate send_command_rate(PUBLISH_FREQUENCY);
26 ROS_INFO(
"Waiting for state");
28 check_for_messages_rate.sleep();
36 ROS_INFO(
"Waiting for ready to proceed");
37 check_for_messages_rate.sleep();
46 if(USE_POSITION_CONTROL)
59 send_command_rate.sleep();
void checkForNewMessages()
bool initialStateReceived()
void sendJointTorqueCommand()
void sendJointPositionCommand()
void initializeMotor(double _k_p_pos, double _k_d_pos, double _k_p_vel, double _k_i_vel, double _k_p_torque, double _k_i_torque)
int main(int argc, char **argv)