_brick

Module Contents

Classes

Brick

A Brick Module.

class Brick(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

Inheritance diagram of modular_robot.body.base._brick.Brick

A Brick Module.

property front: modular_robot.body._module.Module | None

Get the front module of the brick.

Returns:

The attachment points module.

property right: modular_robot.body._module.Module | None

Get right module of the brick.

Returns:

The attachment points module.

property left: modular_robot.body._module.Module | None

Get the left module of the brick.

Returns:

The attachment points module.

property mass: float

Get the mass of the brick (in kg).

Returns:

The value.

property bounding_box: pyrr.Vector3

Get the bounding box size.

Sizes are total length, not half-length from origin. :return: Vector3 with sizes of bbox in x,y,z dimension (in m).

FRONT = 0
RIGHT = 1
LEFT = 2