Skip to content
On this page

Rotate

Overview

This command rotates the target motor(s) by x degrees from their current angle.

shell
poppy rotate <value> [-wh] [-d duration] [-m motors] [-H hostname] [-P port]

Options

 desccriptionvaluedefaultmandatory
<value>Rotation value (in degree)integern.a.yes
-d/--durationSet duration of the movementnumbern.a.no
-w/--waitWait until the end of the rotationbooleanfalseno
-m/--motorSelect the targeted motors.name of motors | 'all''all'no
-H/--hostSet the Poppy hostname/IPstringpoppy.localno
-p/--portSet the REST API port on Poppyinteger8080no
-h/--helpDisplay help about this commandbooleanfalseno

Examples

  • Simultaneously rotate all motors by 10 degrees:
shell
poppy rotate 10
  • Rotate the motor m1 by -90 degrees in 2.5 seconds:
shell
poppy rotate -90 -m m1 -d 2.5

Released under the MIT License.