First, check the motors. Issue command "mot" and make sure that the motors rotate in the sequence indicated by red numbers: first 1, then 2, ... Each of them must rotate first clockwise, then anticlockwise. It is important that You establish this pattern. Otherwise, the algorithm for driving the robot in the desired direction will not work.
If the sequence is not right,
revisit the page that shows how to connect the motors. Alternatively, rearrange cables that connect motor controller and the motors, after noticing the error in sequence.
If any of the motors doesn't start clockwise, but anticlockwise, You will have to change the program. Use Arduino IDE or Visual Studio Code (even Notepad++ or some other editor will be OK) and open mrm-robot-line.cpp and find the lines similar to these, at the beginning of the program:
mrm_mot4x3_6can->directionChange(0); // Uncomment to change 1st wheel's rotation direction
mrm_mot4x3_6can->directionChange(1); // Uncomment to change 2nd wheel's rotation direction
mrm_mot4x3_6can->directionChange(2); // Uncomment to change 3rd wheel's rotation direction
mrm_mot4x3_6can->directionChange(3); // Uncomment to change 4th wheel's rotation direction
Comment lines that correspondent to the wheels that rotate in the wrong direction by putting "//" in the front of that line. For example, if motors 2 and 4 misbehave, the result will look like this:
mrm_mot4x3_6can->directionChange(0); // Uncomment to change 1st wheel's rotation direction
//mrm_mot4x3_6can->directionChange(1); // Uncomment to change 2nd wheel's rotation direction
mrm_mot4x3_6can->directionChange(2); // Uncomment to change 3rd wheel's rotation direction
//mrm_mot4x3_6can->directionChange(3); // Uncomment to change 4th wheel's rotation direction
Run "mot" again to verify that everything works fine.