diff --git a/baxter_sim_controllers/src/baxter_effort_controller.cpp b/baxter_sim_controllers/src/baxter_effort_controller.cpp index 8d4e226..90b85fe 100644 --- a/baxter_sim_controllers/src/baxter_effort_controller.cpp +++ b/baxter_sim_controllers/src/baxter_effort_controller.cpp @@ -87,7 +87,9 @@ bool BaxterEffortController::init( } // Get joint names from the parameter server - std::string joint_name[n_joints_]; + // FIX: Initialising arrays with a variable for the length is a GCC extension and not standard C++ + // std::string joint_name[n_joints_]; + std::vector joint_name = std::vector(n_joints_); // Get joint controller name std::string joint_controller_name = joint_it->first;