sensors

Sensors for Modular Robots.

Package Contents

Classes

ActiveHingeSensor

A sensors for an active hinge that measures its angle.

CameraSensor

A camera for the Modular Robot.

IMUSensor

An inertial measurement unit (IMU).

Sensor

An abstract Sensor Class.

class ActiveHingeSensor

Bases: modular_robot.body.sensors._sensor.Sensor

Inheritance diagram of modular_robot.body.sensors.ActiveHingeSensor

A sensors for an active hinge that measures its angle.

class CameraSensor(position: pyrr.Vector3, orientation: pyrr.Quaternion = Quaternion(), camera_size: tuple[int, int] = (50, 50))

Bases: modular_robot.body.sensors._sensor.Sensor

Inheritance diagram of modular_robot.body.sensors.CameraSensor

A camera for the Modular Robot.

property camera_size: tuple[int, int]

Get the size of the camera.

Returns:

The camera size.

class IMUSensor(position: pyrr.Vector3, orientation: pyrr.Quaternion = Quaternion())

Bases: modular_robot.body.sensors._sensor.Sensor

Inheritance diagram of modular_robot.body.sensors.IMUSensor

An inertial measurement unit (IMU).

Reports specific force(closely related to acceleration), angular rate(closely related to angular velocity), and orientation.

class Sensor(orientation: pyrr.Quaternion, position: pyrr.Vector3)

Bases: abc.ABC

Inheritance diagram of modular_robot.body.sensors.Sensor

An abstract Sensor Class.

property uuid: uuid.UUID

Get the uuid of the sensor.

Returns:

The uuid.

property orientation: pyrr.Quaternion

Return the orientation of the sensor.

Returns:

The orientation.

property position: pyrr.Vector3

Get the relative position of the sensor on a module.

Returns:

The position.