32
14. Set chassis to translate forward at (0)° and rotate (right)
(1) Description: Set the chassis to move in a specified direction while rotating simultaneously
(2) Type: Execution block
(3) Example: Translate in a figure-8 pattern
This sets the robot to translate in a figure-8 pattern.
Python API:
Function: chassis_ctrl.move_and_rotate(degree, direction)
Parameters:
● degree(int): [-180, 180] °
● direction_enum(enum):
■ rm_define.clockwise
■ rm_define.anticlockwise