@@ -52,7 +52,7 @@ std::unique_ptr<UrDriver> g_my_driver;
5252std::unique_ptr<DashboardClient> g_my_dashboard;
5353vector6d_t g_joint_positions;
5454
55- void SendTrajectory (const std::vector<vector6d_t >& p_p, const std::vector<vector6d_t >& p_v,
55+ void sendTrajectory (const std::vector<vector6d_t >& p_p, const std::vector<vector6d_t >& p_v,
5656 const std::vector<vector6d_t >& p_a, const std::vector<double >& time, bool use_spline_interpolation_)
5757{
5858 assert (p_p.size () == time.size ());
@@ -146,8 +146,8 @@ int main(int argc, char* argv[])
146146 }
147147
148148 // if the robot is not powered on and ready
149- std::string robotModeRunning (" RUNNING" );
150- while (!g_my_dashboard->commandRobotMode (robotModeRunning ))
149+ std::string robot_mode_running (" RUNNING" );
150+ while (!g_my_dashboard->commandRobotMode (robot_mode_running ))
151151 {
152152 // Power it off
153153 if (!g_my_dashboard->commandPowerOff ())
@@ -174,8 +174,8 @@ int main(int argc, char* argv[])
174174 // Now the robot is ready to receive a program
175175
176176 std::unique_ptr<ToolCommSetup> tool_comm_setup;
177- const bool HEADLESS = true ;
178- g_my_driver.reset (new UrDriver (robot_ip, SCRIPT_FILE, OUTPUT_RECIPE, INPUT_RECIPE, &handleRobotProgramState, HEADLESS ,
177+ const bool headless = true ;
178+ g_my_driver.reset (new UrDriver (robot_ip, SCRIPT_FILE, OUTPUT_RECIPE, INPUT_RECIPE, &handleRobotProgramState, headless ,
179179 std::move (tool_comm_setup), CALIBRATION_CHECKSUM));
180180
181181 g_my_driver->registerTrajectoryDoneCallback (&handleTrajectoryState);
@@ -241,7 +241,7 @@ int main(int argc, char* argv[])
241241 }
242242
243243 // CUBIC
244- SendTrajectory (p, v, std::vector<vector6d_t >(), time, true );
244+ sendTrajectory (p, v, std::vector<vector6d_t >(), time, true );
245245
246246 g_trajectory_running = true ;
247247 while (g_trajectory_running)
@@ -272,7 +272,7 @@ int main(int argc, char* argv[])
272272 URCL_LOG_INFO (" CUBIC Movement done" );
273273
274274 // QUINTIC
275- SendTrajectory (p, v, a, time, true );
275+ sendTrajectory (p, v, a, time, true );
276276
277277 g_trajectory_running = true ;
278278 while (g_trajectory_running)
0 commit comments