|
Rerun C++ SDK
|
Archetype: A sparse 3D voxel grid map with grid indices and voxel dimensions. More...
#include <rerun/archetypes/voxel_grid_map.hpp>
Public Member Functions | |
| VoxelGridMap (VoxelGridMap &&other)=default | |
| VoxelGridMap (const VoxelGridMap &other)=default | |
| VoxelGridMap & | operator= (const VoxelGridMap &other)=default |
| VoxelGridMap & | operator= (VoxelGridMap &&other)=default |
| VoxelGridMap (Collection< rerun::components::VoxelIndex > _voxel_indices, rerun::components::VoxelSize _voxel_size) | |
| VoxelGridMap | with_voxel_indices (const Collection< rerun::components::VoxelIndex > &_voxel_indices) && |
| Indices of the voxels within the grid volume. | |
| VoxelGridMap | with_voxel_size (const rerun::components::VoxelSize &_voxel_size) && |
| The scene-unit dimensions of a single voxel cell. | |
| VoxelGridMap | with_many_voxel_size (const Collection< rerun::components::VoxelSize > &_voxel_size) && |
This method makes it possible to pack multiple voxel_size in a single component batch. | |
| VoxelGridMap | with_values (const Collection< rerun::components::VoxelValue > &_values) && |
| Optional scalar occupancy or value data for each voxel. | |
| VoxelGridMap | with_colors (const Collection< rerun::components::Color > &_colors) && |
| Optional colors for each voxel. | |
| VoxelGridMap | with_translation (const rerun::components::Translation3D &_translation) && |
Translation of the minimum corner of voxel [0, 0, 0]. | |
| VoxelGridMap | with_many_translation (const Collection< rerun::components::Translation3D > &_translation) && |
This method makes it possible to pack multiple translation in a single component batch. | |
| VoxelGridMap | with_rotation_axis_angle (const rerun::components::RotationAxisAngle &_rotation_axis_angle) && |
| Rotation of the grid via axis + angle. | |
| VoxelGridMap | with_many_rotation_axis_angle (const Collection< rerun::components::RotationAxisAngle > &_rotation_axis_angle) && |
This method makes it possible to pack multiple rotation_axis_angle in a single component batch. | |
| VoxelGridMap | with_quaternion (const rerun::components::RotationQuat &_quaternion) && |
| Rotation of the grid via quaternion. | |
| VoxelGridMap | with_many_quaternion (const Collection< rerun::components::RotationQuat > &_quaternion) && |
This method makes it possible to pack multiple quaternion in a single component batch. | |
| VoxelGridMap | with_opacity (const rerun::components::Opacity &_opacity) && |
| Opacity of the voxels after color or colormap application. | |
| VoxelGridMap | with_many_opacity (const Collection< rerun::components::Opacity > &_opacity) && |
This method makes it possible to pack multiple opacity in a single component batch. | |
| VoxelGridMap | with_value_range (const rerun::components::ValueRange &_value_range) && |
| Scalar value range for color-mapping. | |
| VoxelGridMap | with_many_value_range (const Collection< rerun::components::ValueRange > &_value_range) && |
This method makes it possible to pack multiple value_range in a single component batch. | |
| VoxelGridMap | with_colormap (const rerun::components::Colormap &_colormap) && |
Colormap to use when values are present and explicit colors are not provided. | |
| VoxelGridMap | with_many_colormap (const Collection< rerun::components::Colormap > &_colormap) && |
This method makes it possible to pack multiple colormap in a single component batch. | |
| Collection< ComponentColumn > | columns (const Collection< uint32_t > &lengths_) |
| Partitions the component data into multiple sub-batches. | |
| Collection< ComponentColumn > | columns () |
| Partitions the component data into unit-length sub-batches. | |
Static Public Member Functions | |
| static VoxelGridMap | update_fields () |
Update only some specific fields of a VoxelGridMap. | |
| static VoxelGridMap | clear_fields () |
Clear all the fields of a VoxelGridMap. | |
Public Attributes | |
| std::optional< ComponentBatch > | voxel_indices |
| Indices of the voxels within the grid volume. | |
| std::optional< ComponentBatch > | voxel_size |
| The scene-unit dimensions of a single voxel cell. | |
| std::optional< ComponentBatch > | values |
| Optional scalar occupancy or value data for each voxel. | |
| std::optional< ComponentBatch > | colors |
| Optional colors for each voxel. | |
| std::optional< ComponentBatch > | translation |
Translation of the minimum corner of voxel [0, 0, 0]. | |
| std::optional< ComponentBatch > | rotation_axis_angle |
| Rotation of the grid via axis + angle. | |
| std::optional< ComponentBatch > | quaternion |
| Rotation of the grid via quaternion. | |
| std::optional< ComponentBatch > | opacity |
| Opacity of the voxels after color or colormap application. | |
| std::optional< ComponentBatch > | value_range |
| Scalar value range for color-mapping. | |
| std::optional< ComponentBatch > | colormap |
Colormap to use when values are present and explicit colors are not provided. | |
Static Public Attributes | |
| static constexpr const char | ArchetypeName [] = "rerun.archetypes.VoxelGridMap" |
The name of the archetype as used in ComponentDescriptors. | |
| static constexpr auto | Descriptor_voxel_indices |
ComponentDescriptor for the voxel_indices field. | |
| static constexpr auto | Descriptor_voxel_size |
ComponentDescriptor for the voxel_size field. | |
| static constexpr auto | Descriptor_values |
ComponentDescriptor for the values field. | |
| static constexpr auto | Descriptor_colors |
ComponentDescriptor for the colors field. | |
| static constexpr auto | Descriptor_translation |
ComponentDescriptor for the translation field. | |
| static constexpr auto | Descriptor_rotation_axis_angle |
ComponentDescriptor for the rotation_axis_angle field. | |
| static constexpr auto | Descriptor_quaternion |
ComponentDescriptor for the quaternion field. | |
| static constexpr auto | Descriptor_opacity |
ComponentDescriptor for the opacity field. | |
| static constexpr auto | Descriptor_value_range |
ComponentDescriptor for the value_range field. | |
| static constexpr auto | Descriptor_colormap |
ComponentDescriptor for the colormap field. | |
Archetype: A sparse 3D voxel grid map with grid indices and voxel dimensions.
This archetype is intended for 3D occupancy maps and other volumetric data represented as a sparse grid of voxels with scene-unit dimensions along the local X/Y/Z axes.
The minimum corner of the voxel with [0, 0, 0] index is located at the origin of the entity's coordinate frame and can have an additional offset from there through the optional translation and rotation fields.
A voxel center is at (index + 0.5) * voxel_size in local grid coordinates (i.e. relative to the minimum corner).
⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
The scene-unit dimensions of a single voxel cell.
This defines the voxel size along the local grid X/Y/Z axes. Each dimension must be finite and positive.
|
inline |
This method makes it possible to pack multiple voxel_size in a single component batch.
This only makes sense when used in conjunction with columns. with_voxel_size should be used when logging a single row's worth of data.
|
inline |
Optional scalar occupancy or value data for each voxel.
If explicit colors are not provided, values are mapped through colormap and value_range.
|
inline |
Optional colors for each voxel.
If set, these colors take precedence over color-mapped scalar values.
|
inline |
Translation of the minimum corner of voxel [0, 0, 0].
Together with components::RotationAxisAngle or components::RotationQuat, this defines the pose of the grid relative to the map's parent coordinate frame.
If not set, the minimum corner is placed at the origin of the map's parent coordinate frame.
|
inline |
This method makes it possible to pack multiple translation in a single component batch.
This only makes sense when used in conjunction with columns. with_translation should be used when logging a single row's worth of data.
|
inline |
Rotation of the grid via axis + angle.
Together with components::Translation3D, this defines the pose of the grid relative to the map's parent coordinate frame.
Note: either this or components::RotationQuat can be set to specify the grid's rotation, but not both. If both this and components::RotationQuat are set, this is ignored in favor of the quaternion.
|
inline |
This method makes it possible to pack multiple rotation_axis_angle in a single component batch.
This only makes sense when used in conjunction with columns. with_rotation_axis_angle should be used when logging a single row's worth of data.
|
inline |
Rotation of the grid via quaternion.
Together with components::Translation3D, this defines the pose of the grid relative to the map's parent coordinate frame.
|
inline |
This method makes it possible to pack multiple quaternion in a single component batch.
This only makes sense when used in conjunction with columns. with_quaternion should be used when logging a single row's worth of data.
|
inline |
Opacity of the voxels after color or colormap application.
Defaults to 1.0 (fully opaque).
|
inline |
This method makes it possible to pack multiple opacity in a single component batch.
This only makes sense when used in conjunction with columns. with_opacity should be used when logging a single row's worth of data.
|
inline |
Scalar value range for color-mapping.
Defaults to [0.0, 1.0].
|
inline |
This method makes it possible to pack multiple value_range in a single component batch.
This only makes sense when used in conjunction with columns. with_value_range should be used when logging a single row's worth of data.
|
inline |
Colormap to use when values are present and explicit colors are not provided.
Defaults to Turbo.
|
inline |
This method makes it possible to pack multiple colormap in a single component batch.
This only makes sense when used in conjunction with columns. with_colormap should be used when logging a single row's worth of data.
| Collection< ComponentColumn > rerun::archetypes::VoxelGridMap::columns | ( | const Collection< uint32_t > & | lengths_ | ) |
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing ComponentBatch data into ComponentColumns instead, via ComponentBatch::partitioned.
This makes it possible to use RecordingStream::send_columns to send columnar data directly into Rerun.
The specified lengths must sum to the total length of the component batch.
| Collection< ComponentColumn > rerun::archetypes::VoxelGridMap::columns | ( | ) |
Partitions the component data into unit-length sub-batches.
This is semantically similar to calling columns with std::vector<uint32_t>(n, 1), where n is automatically guessed.
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::voxel_size |
The scene-unit dimensions of a single voxel cell.
This defines the voxel size along the local grid X/Y/Z axes. Each dimension must be finite and positive.
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::values |
Optional scalar occupancy or value data for each voxel.
If explicit colors are not provided, values are mapped through colormap and value_range.
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::colors |
Optional colors for each voxel.
If set, these colors take precedence over color-mapped scalar values.
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::translation |
Translation of the minimum corner of voxel [0, 0, 0].
Together with components::RotationAxisAngle or components::RotationQuat, this defines the pose of the grid relative to the map's parent coordinate frame.
If not set, the minimum corner is placed at the origin of the map's parent coordinate frame.
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::rotation_axis_angle |
Rotation of the grid via axis + angle.
Together with components::Translation3D, this defines the pose of the grid relative to the map's parent coordinate frame.
Note: either this or components::RotationQuat can be set to specify the grid's rotation, but not both. If both this and components::RotationQuat are set, this is ignored in favor of the quaternion.
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::quaternion |
Rotation of the grid via quaternion.
Together with components::Translation3D, this defines the pose of the grid relative to the map's parent coordinate frame.
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::opacity |
Opacity of the voxels after color or colormap application.
Defaults to 1.0 (fully opaque).
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::value_range |
Scalar value range for color-mapping.
Defaults to [0.0, 1.0].
| std::optional<ComponentBatch> rerun::archetypes::VoxelGridMap::colormap |
Colormap to use when values are present and explicit colors are not provided.
Defaults to Turbo.
|
staticconstexpr |
ComponentDescriptor for the voxel_indices field.
|
staticconstexpr |
ComponentDescriptor for the voxel_size field.
|
staticconstexpr |
ComponentDescriptor for the values field.
|
staticconstexpr |
ComponentDescriptor for the colors field.
|
staticconstexpr |
ComponentDescriptor for the translation field.
|
staticconstexpr |
ComponentDescriptor for the rotation_axis_angle field.
|
staticconstexpr |
ComponentDescriptor for the quaternion field.
|
staticconstexpr |
ComponentDescriptor for the opacity field.
|
staticconstexpr |
ComponentDescriptor for the value_range field.
|
staticconstexpr |
ComponentDescriptor for the colormap field.