roverd.types
¶
Data Type Library.
Info
Following the recommendations of the abstract dataloader, each type is a generic dataclass of arrays.
Each type in this library is a dataclass of arrays:
- Each entry has a leading
batch
axis, which is usually1
when loading single samples. Some entries are annotated with#batch
to indicate that broadcasting is allowed on this axis, e.g., all samples in the same batch having the samerange_resolution
. - Each entry has a second
t
axis, which indicates the time dimension for sequences of frames. If only single frames are loaded, this is just1
.
roverd.types.CameraData
¶
roverd.types.CameraSemseg
¶
roverd.types.Depth
¶
roverd.types.IMUData
¶
IMU data.
Attributes:
Name | Type | Description |
---|---|---|
acc |
Float32[TArray, 'batch t 3']
|
linear acceleration, in m/s^2. |
rot |
Float32[TArray, 'batch t 3']
|
orientation (as euler angles). |
avel |
Float32[TArray, 'batch t 3']
|
angular velocity. |
timestamps |
Float64[TArray, 'batch t']
|
timestamp for each measurement; nominally in seconds. |
Source code in format/src/roverd/types.py
roverd.types.OSData
¶
Depth and IR intensity data from an Ouster OSX sensor.
Warning
The measurements are recorded in time space, so are "staggered," and must be destaggered. See the ouster-sdk for details.
Attributes:
Name | Type | Description |
---|---|---|
rng |
UInt16[TArray, 'batch t beam time']
|
raw range measurements in beam-time space; nominally in mm. |
rfl |
UInt8[TArray, 'batch t beam time']
|
reflectivity measurements (in NIR) for each beam (0-255). |
nir |
UInt16[TArray, 'batch t beam time']
|
near-infrared ambient photos. |
timestamps |
Float64[TArray, 'batch t']
|
timestamp for each frame; nominally in seconds. |
intrinsics |
str
|
path to intrinsics file used by the Ouster SDK. |
Source code in format/src/roverd/types.py
roverd.types.OSDepth
¶
Lidar raw depth data from an Ouster OSX sensor.
Warning
The measurements are recorded in time space, so are "staggered," and must be destaggered. See the ouster-sdk for details.
Attributes:
Name | Type | Description |
---|---|---|
rng |
UInt16[TArray, 'batch t beam time']
|
raw range measurements in beam-time space; nominally in mm. |
timestamps |
Float64[TArray, 'batch t']
|
timestamp for each frame; nominally in seconds. |
intrinsics |
str
|
path to intrinsics file used by the Ouster SDK. |
Source code in format/src/roverd/types.py
roverd.types.PointCloud
¶
Generic point cloud data.
Attributes:
Name | Type | Description |
---|---|---|
xyz |
Float32[TArray, 'batch t 3']
|
point cloud coordinates in meters. |
length |
Integer[TArray, '#batch #t']
|
number of points in each point cloud. |
timestamps |
Float64[TArray, 'batch t']
|
timestamp for each frame; nominally in seconds. |
Source code in format/src/roverd/types.py
roverd.types.Pose
¶
Pose data.
Attributes:
Name | Type | Description |
---|---|---|
pos |
Float32[TArray, 'batch t 3']
|
position, in meters (front-left-up coordinate convention). |
vel |
Float32[TArray, 'batch t 3']
|
velocity, in meters/second. |
acc |
Float32[TArray, 'batch t 3']
|
acceleration, in meters/second^2. |
rot |
Float32[TArray, 'batch t 3 3']
|
rotation (as matrix). |
timestamps |
Float64[TArray, 'batch t']
|
timestamp for each measurement; nominally in seconds. |
Source code in format/src/roverd/types.py
roverd.types.XWR4DSpectrum
¶
4D radar spectrum data.
Attributes:
Name | Type | Description |
---|---|---|
spectrum |
Complex64[TArray, 'batch t doppler elevation azimuth range']
|
4D complex spectrum in doppler-elevation-azimuth-range order. |
timestamps |
Float64[TArray, 'batch t']
|
timestamp for each frame; nominally in seconds. |
range_resolution |
Float[TArray, '#batch']
|
range resolution for the modulation used; nominally in meters. |
doppler_resolution |
Float[TArray, '#batch']
|
doppler resolution; nominally in m/s. |
Source code in format/src/roverd/types.py
roverd.types.XWRRadarIQ
¶
Raw I/Q data.
Attributes:
Name | Type | Description |
---|---|---|
iq |
Int16[TArray, 'batch t slow tx rx fast']
|
raw I/Q data in slow-tx-rx-fast order; see the |
timestamps |
Float64[TArray, 'batch t']
|
timestamp for each frame; nominally in seconds. |
range_resolution |
Float[TArray, '#batch']
|
range resolution for the modulation used; nominally in meters. |
doppler_resolution |
Float[TArray, '#batch']
|
doppler resolution; nominally in m/s. |
valid |
UInt8[TArray, 'batch t']
|
whether the entire frame is valid, or if the frame contains some zero-filled data due to dropped packets. |