Postures

Postures are single, static poses. The robot moves into the pose and holds it. They are useful as start/stop states around gaits and behaviors.

Use case: a little routine

using PetoiBittle

connection = PetoiBittle.connect(PetoiBittle.find_bittle_port())

PetoiBittle.stretch(connection)   # wake up with a stretch
sleep(2)
PetoiBittle.sit(connection)       # sit down
sleep(2)
PetoiBittle.nap(connection)       # fold down into the sleep posture

PetoiBittle.disconnect(connection)
Note

The firmware's bare lie-down / rest command is exposed separately as PetoiBittle.Rest (token "d") on the Control & state page. PetoiBittle.balance makes the robot stand and actively self-balance using its gyroscope.

Reference

PetoiBittle.balance — Function
balance(connection)

Make the robot stand still and self-balance (category: Postures).

Convenience wrapper, equivalent to send_command(connection, Balance()).

source
PetoiBittle.sit — Function
sit(connection)

Make the robot sit down (category: Postures).

Convenience wrapper, equivalent to send_command(connection, Sit()).

source
PetoiBittle.stretch — Function
stretch(connection)

Make the robot stretch the body (category: Postures).

Convenience wrapper, equivalent to send_command(connection, Stretch()).

source
PetoiBittle.nap — Function
nap(connection)

Make the robot fold down into the sleep posture (category: Postures).

Convenience wrapper, equivalent to send_command(connection, Sleep()).

source
PetoiBittle.straighten — Function
straighten(connection)

Make the robot straighten all joints to the neutral (zero) pose (category: Postures).

Convenience wrapper, equivalent to send_command(connection, Zero()).

source
PetoiBittle.butt_up — Function
butt_up(connection)

Make the robot raise the hindquarters (butt up) (category: Postures).

Convenience wrapper, equivalent to send_command(connection, ButtUp()).

source
PetoiBittle.calibration_pose — Function
calibration_pose(connection)

Make the robot stand in the calibration pose (category: Postures).

Convenience wrapper, equivalent to send_command(connection, CalibrationPose()).

source