Version 3 (modified by jpawlick, 13 years ago) (diff) |
---|
This command turns the agent a number of degrees in the transverse plane (yaw) and a looks a number of degrees in the sagittal plane (pitch). See http://en.wikipedia.org/wiki/Anatomical_terms_of_location#Planes if you are confused about what that means.
FIXME: currently, interrupting an ro with another command (even a pa) will result in the ro executing in parallel with that command. The ro will not report finished until the interrupting command is complete, as per the normal guarantee about reporting order, but the actual rotation of the body may complete at any point prior to the report.
Parameters:
- 1: float yaw, the number of degrees to turn to the left. The bot will always turn the shorter way. May be negative.
- 2: float pitch, the number of degrees to look down from the current view. May be negative.
Reports:
- done once turning is done. If you watch the bot, it will appear that the model rotates in successive jerks and finishes sooner than the command does. This is because the model rotation is not perfectly matched to the logical entity rotation.
- popped if popped by po.
- forgotten if deleted by fa or fm.
- replaced if replaced by a command scheduled with 'r'.
Example:
- User sends: "n ro 512 45 -30"
- Bot turns left 45 degrees and looks 30 degrees up.
- Bot replies "cp ro 512 done"