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)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 — Type
Balance()A PetoiBittle.Command (category: Postures) that makes the robot stand still and self-balance.
Serializes to the firmware token "kbalance". Send it explicitly with PetoiBittle.send_command, or use the convenience verb PetoiBittle.balance.
PetoiBittle.balance — Function
balance(connection)Make the robot stand still and self-balance (category: Postures).
Convenience wrapper, equivalent to send_command(connection, Balance()).
PetoiBittle.Sit — Type
Sit()A PetoiBittle.Command (category: Postures) that makes the robot sit down.
Serializes to the firmware token "ksit". Send it explicitly with PetoiBittle.send_command, or use the convenience verb PetoiBittle.sit.
PetoiBittle.sit — Function
sit(connection)Make the robot sit down (category: Postures).
Convenience wrapper, equivalent to send_command(connection, Sit()).
PetoiBittle.Stretch — Type
Stretch()A PetoiBittle.Command (category: Postures) that makes the robot stretch the body.
Serializes to the firmware token "kstr". Send it explicitly with PetoiBittle.send_command, or use the convenience verb PetoiBittle.stretch.
PetoiBittle.stretch — Function
stretch(connection)Make the robot stretch the body (category: Postures).
Convenience wrapper, equivalent to send_command(connection, Stretch()).
PetoiBittle.Sleep — Type
Sleep()A PetoiBittle.Command (category: Postures) that makes the robot fold down into the sleep posture.
Serializes to the firmware token "ksleep". Send it explicitly with PetoiBittle.send_command, or use the convenience verb PetoiBittle.nap.
PetoiBittle.nap — Function
nap(connection)Make the robot fold down into the sleep posture (category: Postures).
Convenience wrapper, equivalent to send_command(connection, Sleep()).
PetoiBittle.Zero — Type
Zero()A PetoiBittle.Command (category: Postures) that makes the robot straighten all joints to the neutral (zero) pose.
Serializes to the firmware token "kzero". Send it explicitly with PetoiBittle.send_command, or use the convenience verb PetoiBittle.straighten.
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()).
PetoiBittle.ButtUp — Type
ButtUp()A PetoiBittle.Command (category: Postures) that makes the robot raise the hindquarters (butt up).
Serializes to the firmware token "kbuttUp". Send it explicitly with PetoiBittle.send_command, or use the convenience verb PetoiBittle.butt_up.
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()).
PetoiBittle.CalibrationPose — Type
CalibrationPose()A PetoiBittle.Command (category: Postures) that makes the robot stand in the calibration pose.
Serializes to the firmware token "kcalib". Send it explicitly with PetoiBittle.send_command, or use the convenience verb PetoiBittle.calibration_pose.
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()).