@@ -52,7 +52,7 @@ std::unique_ptr<UrDriver> g_my_driver;
52
52
std::unique_ptr<DashboardClient> g_my_dashboard;
53
53
vector6d_t g_joint_positions;
54
54
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,
56
56
const std::vector<vector6d_t >& p_a, const std::vector<double >& time, bool use_spline_interpolation_)
57
57
{
58
58
assert (p_p.size () == time.size ());
@@ -146,8 +146,8 @@ int main(int argc, char* argv[])
146
146
}
147
147
148
148
// 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 ))
151
151
{
152
152
// Power it off
153
153
if (!g_my_dashboard->commandPowerOff ())
@@ -174,8 +174,8 @@ int main(int argc, char* argv[])
174
174
// Now the robot is ready to receive a program
175
175
176
176
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 ,
179
179
std::move (tool_comm_setup), CALIBRATION_CHECKSUM));
180
180
181
181
g_my_driver->registerTrajectoryDoneCallback (&handleTrajectoryState);
@@ -241,7 +241,7 @@ int main(int argc, char* argv[])
241
241
}
242
242
243
243
// CUBIC
244
- SendTrajectory (p, v, std::vector<vector6d_t >(), time, true );
244
+ sendTrajectory (p, v, std::vector<vector6d_t >(), time, true );
245
245
246
246
g_trajectory_running = true ;
247
247
while (g_trajectory_running)
@@ -272,7 +272,7 @@ int main(int argc, char* argv[])
272
272
URCL_LOG_INFO (" CUBIC Movement done" );
273
273
274
274
// QUINTIC
275
- SendTrajectory (p, v, a, time, true );
275
+ sendTrajectory (p, v, a, time, true );
276
276
277
277
g_trajectory_running = true ;
278
278
while (g_trajectory_running)
0 commit comments