SensorInfo
Sensor metadata, containing the common fields shared by all types of sensors.
Attributes:
Attribute | Type | Description |
|---|---|---|
|
| Unique sensor identifier, e.g. |
|
| Sensor category, see "Robot Metadata / SensorType" |
|
| Vendor model identifier, e.g. |
|
| Extension information field, currently an empty dict, reserved for future extensions |
SensorInfo
Signature:
SensorInfo(
*,
id: str,
sensor_type: SensorType,
model: str,
extra: dict[str, object] = {},
)
Description:
Constructs a SensorInfo instance. This type is an immutable dataclass and only supports keyword arguments.
Parameters:
Parameter | Type | Required | Description |
|---|---|---|---|
|
| Yes | Unique sensor identifier |
|
| Yes | Sensor category, |
|
| Yes | Vendor model identifier |
|
| No | Extension field, defaults to an empty dict |
Returns:
A SensorInfo instance.
Exceptions:
None.
Example:
# IMU sensor
imu = SensorInfo(
id="imu_main_1",
sensor_type="imu",
model="IMU_MODEL_HI13R4N",
)
# Camera sensor
camera = SensorInfo(
id="head",
sensor_type="camera",
model="CAMERA_Model_BOOSTER_MIPI",
)