Why Does a Robot Turn 358 Degrees Instead of 2 Degrees?
Heading angles wrap at a full turn. A controller that subtracts them directly can command almost a full revolution when the goal is only two degrees away.
The key idea
From 359 degrees to 1 degree, straightforward subtraction gives minus 358 degrees. Wrapping the difference into a signed interval spanning one turn yields plus 2 degrees for the shortest rotation.
What to remember
- Compute the angular difference using consistent units.
- If the joint has travel limits, check that the chosen turn is mechanically feasible.
Check your understanding
What is the shortest signed heading change from 1 degree to 359 degrees?
Show the explanation
Minus 2 degrees when positive angles increase in the usual direction.