|
Rerun C++ SDK
|
Archetype: Specifies the coordinate frame for an entity. More...
#include <rerun/archetypes/coordinate_frame.hpp>
Public Member Functions | |
| CoordinateFrame (CoordinateFrame &&other)=default | |
| CoordinateFrame (const CoordinateFrame &other)=default | |
| CoordinateFrame & | operator= (const CoordinateFrame &other)=default |
| CoordinateFrame & | operator= (CoordinateFrame &&other)=default |
| CoordinateFrame (rerun::components::TransformFrameId _frame_id) | |
| CoordinateFrame | with_frame_id (const rerun::components::TransformFrameId &_frame_id) && |
| The coordinate frame to use for the current entity. | |
| CoordinateFrame | with_many_frame_id (const Collection< rerun::components::TransformFrameId > &_frame_id) && |
This method makes it possible to pack multiple frame_id 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 CoordinateFrame | update_fields () |
Update only some specific fields of a CoordinateFrame. | |
| static CoordinateFrame | clear_fields () |
Clear all the fields of a CoordinateFrame. | |
Public Attributes | |
| std::optional< ComponentBatch > | frame_id |
| The coordinate frame to use for the current entity. | |
Static Public Attributes | |
| static constexpr const char | ArchetypeName [] = "rerun.archetypes.CoordinateFrame" |
The name of the archetype as used in ComponentDescriptors. | |
| static constexpr auto | Descriptor_frame_id |
ComponentDescriptor for the frame_id field. | |
Archetype: Specifies the coordinate frame for an entity.
Experimental: Transform frames are still in early development!
If not specified, the coordinate frame uses an implicit frame derived from the entity path. The implicit frame's name is tf#/your/entity/path and has an identity transform connection to its parent path.
To learn more about transforms see Spaces & Transforms in the reference.

⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
This method makes it possible to pack multiple frame_id in a single component batch.
This only makes sense when used in conjunction with columns. with_frame_id should be used when logging a single row's worth of data.
| Collection< ComponentColumn > rerun::archetypes::CoordinateFrame::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::CoordinateFrame::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.
|
staticconstexpr |
ComponentDescriptor for the frame_id field.