sensors
Sensors for Modular Robots.
Package Contents
Classes
A sensors for an active hinge that measures its angle. |
|
A camera for the Modular Robot. |
|
An inertial measurement unit (IMU). |
|
An abstract Sensor Class. |
- class ActiveHingeSensor
Bases:
modular_robot.body.sensors._sensor.Sensor
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
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
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
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.