_core_v2

Module Contents

Classes

CoreV2

The core module of a modular robot.

class CoreV2(rotation: float | modular_robot.body._right_angles.RightAngles, num_batteries: int = 1)

Bases: modular_robot.body.base.Core

Inheritance diagram of modular_robot.body.v2._core_v2.CoreV2

The core module of a modular robot.

property front_face: modular_robot.body.v2._attachment_face_core_v2.AttachmentFaceCoreV2

Get the face attached to the front of the core.

Returns:

The attached module.

property right_face: modular_robot.body.v2._attachment_face_core_v2.AttachmentFaceCoreV2

Get the face attached to the right of the core.

Returns:

The attached module.

property back_face: modular_robot.body.v2._attachment_face_core_v2.AttachmentFaceCoreV2

Get the face attached to the back of the core.

Returns:

The attached module.

property left_face: modular_robot.body.v2._attachment_face_core_v2.AttachmentFaceCoreV2

Get the face attached to the left of the core.

Returns:

The attached module.

property horizontal_offset: float

Get the horizontal offset for attachment positions (in m).

Returns:

The value.

property vertical_offset: float

Get the vertical offset for attachment positions (in m).

Returns:

The value.

property attachment_faces: dict[int, modular_robot.body.v2._attachment_face_core_v2.AttachmentFaceCoreV2]

Get all attachment faces for the Core.

Returns:

The attachment faces.

mass

Here we produce the attachment faces, with the advanced logic behind conflict checking.