_core
Module Contents
Classes
The core module of a modular robot. |
- class Core(rotation: float | modular_robot.body._right_angles.RightAngles, mass: float, bounding_box: pyrr.Vector3, child_offset: float, sensors: list[modular_robot.body.sensors.Sensor])
Bases:
modular_robot.body._module.Module
The core module of a modular robot.
- property mass: float
Get the mass of the Core (in kg).
- Returns:
The value.
- property bounding_box: pyrr.Vector3
Get the bounding box.
Sizes are total length, not half length from origin. :return: Vector3 with sizes of bbox in x,y,z dimension (m).
- property front: modular_robot.body._module.Module | None
Get the front module of the core.
- Returns:
The attachment points module.
- property right: modular_robot.body._module.Module | None
Get the right module of the core.
- Returns:
The attachment points module.
- property back: modular_robot.body._module.Module | None
Get the back module of the core.
- Returns:
The attachment points module.
- property left: modular_robot.body._module.Module | None
Get the left module of the core.
- Returns:
The attachment points module.
- FRONT = 0
- RIGHT = 1
- BACK = 2
- LEFT = 3
- attachment_points
The base module only has orientation as its parameter since not all modules are square.
Here we covert the angle of the module to its orientation in space.