13 TmcCoeMotor(p_nh, p_tmc_coe_interpreter, slave_number, motor_number)
28 const std::string s_commutation_mode =
"Commutation Mode";
29 const std::string s_position_scaler =
"Position Scaler";
30 const std::string s_encoder_steps =
"Encoder Settings - Steps";
45 ROS_ERROR_STREAM(
"[" << __func__ <<
"] Object Name for Commutation Mode is not Available");
57 ROS_ERROR_STREAM(
"[" << __func__ <<
"] Object Name for Position Scaler not Available");
71 ROS_ERROR_STREAM(
"[" << __func__ <<
"] Object Name for Encoder Steps not Available");
105 std::string mode_of_operation =
"";
121 case NONE: mode_of_operation =
"None";
break;
124 case HOMING_MODE: mode_of_operation =
"Homing Mode";
break;
125 case CYCLIC_SYNC_POS: mode_of_operation =
"Cyclic Synchronous Position Mode";
break;
126 case CYCLIC_SYNC_VEL: mode_of_operation =
"Cyclic Synchronous Velocity Mode";
break;
127 case CYCLIC_SYNC_TRQ: mode_of_operation =
"Cyclic Synchronous Torque Mode";
break;
128 default : mode_of_operation =
"NONE";
break;
199 ROS_INFO_STREAM(
"[" << __func__ <<
"] Commutation Mode : CLOSED LOOP");
208 float val = msg.linear.x;
224 ROS_DEBUG_STREAM(
"[" << __func__ <<
"] Subscriber callback entered, received: " << val <<
" board value: "
245 ROS_DEBUG_STREAM(
"["<< __func__ <<
"] Subscriber callback exited successfully");
262 float convert_const_deg = 0.00;
281 unit_val = val * convert_const_deg;
283 ROS_DEBUG_STREAM(
"[" << __func__ <<
"] Subscriber callback entered, received: " << msg.data <<
" board value: "
322 ROS_DEBUG_STREAM(
"["<< __func__ <<
"] Subscriber callback exited successfully");
332 float convert_const_deg = 0.00;
351 unit_val = val * convert_const_deg;
353 ROS_DEBUG_STREAM(
"[" << __func__ <<
"] Subscriber callback entered, received: " << msg.data <<
" board value: "
392 ROS_DEBUG_STREAM(
"["<< __func__ <<
"] Subscriber callback exited successfully");