Skip to content

Commit

Permalink
change joint names to macro in micro_ros_cfg.cpp file
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejKurcius committed Nov 7, 2022
1 parent 944808c commit dcd5950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/micro_ros_cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ void MotorsResponseMsgInit(sensor_msgs__msg__JointState * arg_message){
arg_message->header.frame_id.data = frame_id;
arg_message->header.frame_id.capacity = arg_message->header.frame_id.size = strlen((const char*)frame_id);
msg_name_tab->capacity = msg_name_tab->size = MOT_RESP_MSG_LEN;
msg_name_tab[0].data = (char*)"rr_wheel_joint";
msg_name_tab[1].data = (char*)"rl_wheel_joint";
msg_name_tab[2].data = (char*)"fr_wheel_joint";
msg_name_tab[3].data = (char*)"fl_wheel_joint";
msg_name_tab[0].data = (char*)REAR_RIGHT_MOTOR_NAME;
msg_name_tab[1].data = (char*)REAR_LEFT_MOTOR_NAME;
msg_name_tab[2].data = (char*)FRONT_RIGHT_MOTOR_NAME;
msg_name_tab[3].data = (char*)FRONT_LEFT_MOTOR_NAME;
for(uint8_t i = 0; i < MOT_RESP_MSG_LEN; i++){
msg_name_tab[i].capacity = msg_name_tab[i].size = strlen(msg_name_tab[i].data);
}
Expand Down

0 comments on commit dcd5950

Please sign in to comment.