I don’t fully understand the questions, especially since after the last conversation (Motor dutycycle numbering) you agreed on a common version of numbering.
I think you’re right, and depending on whether you’re listening to the topic or working inside the robot, the numbering is different.
For topic /joint_state the order is: [FL, FR, RL, RR]
For the Core2 driver it is specified, as you noticed:
So it depends on the viewing level. You shouldn’t change the order in define, but if you don’t like something you can change the order in /joint_states.
What I’m curious about is that I wrote code to receive the motor’s duty cycle, and in this code, which wheels are assigned the numbers 0 to 3.
Is it numbered the same as /joint_states?
Regarding your question about main.cpp, I’m guessing you’re referring to the driver that’s inside the main function. For the driver, the order is as follows: [MOTOR_FR, MOTOR_FL, MOTOR_RR, MOTOR_RL].
Fully understanding what exactly you are asking about is a bit of a challenge for me, so maybe it will be easier for you to set PWM for a single wheel and make sure where in the code and what numbering is correct.