Anatomy flybody
FlyBody-specific anatomical definitions.
This module extends the default anatomy types from flygym.anatomy.
FlyBodyActuatedDOFPreset
¶
Bases: BaseActuatedDOFPreset
Presets for which flybody joint DoFs should be actuated.
Source code in src/flygym/flybody/anatomy_flybody.py
FlyBodyAnatomicalJoint
dataclass
¶
Bases: AnatomicalJoint
Anatomical joint specific to the flybody model.
Source code in src/flygym/flybody/anatomy_flybody.py
iter_dofs(axis_order)
¶
Iterate through the DOFs of this joint in the specified axis order.
Source code in src/flygym/flybody/anatomy_flybody.py
FlyBodyAxesSet
¶
FlyBodyAxisOrder
¶
Bases: BaseAxisOrder, Enum
Axis order enum based on FlyBodyRotationAxis.
Source code in src/flygym/flybody/anatomy_flybody.py
FlyBodyBodySegment
dataclass
¶
Bases: BodySegment
FlyBody-specific body segment class.
Source code in src/flygym/flybody/anatomy_flybody.py
FlyBodyContactBodiesPreset
¶
Bases: BaseContactBodiesPreset
Presets for which flybody segments can collide with the ground.
Source code in src/flygym/flybody/anatomy_flybody.py
FlyBodyJointDOF
dataclass
¶
Bases: JointDOF
Joint DOF specific to the flybody model.
Source code in src/flygym/flybody/anatomy_flybody.py
from_name(name)
classmethod
¶
Create a FlyBodyJointDOF from a name of the form 'parent-child-axis'.
Source code in src/flygym/flybody/anatomy_flybody.py
FlyBodyRotationAxis
¶
Bases: BaseRotationAxis
FlyBody axis convention.
yaw -> z, pitch -> x, roll -> y.
Source code in src/flygym/flybody/anatomy_flybody.py
FlyBodySkeleton
¶
Bases: Skeleton
Skeleton specific to the flybody model.
Source code in src/flygym/flybody/anatomy_flybody.py
get_actuated_dofs_from_preset(preset)
¶
Given a flybody preset of actuated DoFs, return an explicit list of joints.
Source code in src/flygym/flybody/anatomy_flybody.py
iter_jointdofs(root='c_thorax')
¶
Iterate through joint DOFs in depth-first order starting from the root.
Source code in src/flygym/flybody/anatomy_flybody.py
WingFlyBodyAxesSet
¶
Bases: AxesSet
Set of rotation axes for wings using WingFlyBody's axis convention.
Source code in src/flygym/flybody/anatomy_flybody.py
WingFlyBodyAxisOrder
¶
Bases: BaseAxisOrder, Enum
Axis order enum based on WingFlyBodyRotationAxis.
Source code in src/flygym/flybody/anatomy_flybody.py
WingFlyBodyRotationAxis
¶
Bases: BaseRotationAxis
FlyBody wing axis convention.
Same as FlyBody except pitch/roll are swapped: yaw -> z, pitch -> y, roll -> x.