Fixposition SDK 0.0.0-heads/main-0-g408dc89
Collection of c++ libraries and apps for use with Fixposition products on Linux
Loading...
Searching...
No Matches
fpsdk::common::parser::fpa::FpaTfPayload Struct Reference

FP_A-TF (version 2) message payload. More...

#include <fpa.hpp>

Inheritance diagram for fpsdk::common::parser::fpa::FpaTfPayload:
[legend]
Collaboration diagram for fpsdk::common::parser::fpa::FpaTfPayload:
[legend]

Public Member Functions

bool SetFromMsg (const uint8_t *msg, const std::size_t msg_size) final
 Set data from message.
Public Member Functions inherited from fpsdk::common::parser::fpa::FpaPayload
virtual ~FpaPayload ()=default
 Virtual dtor for polymorphism.
bool SetFromBuf (const std::vector< uint8_t > &buf)
 Set data from message.

Public Attributes

FpaGpsTime gps_time
 Time.
char frame_a [10] = { 0 }
 Target frame (nul-terminated string)
char frame_b [10] = { 0 }
 Initial frame (nul-terminated string)
FpaFloat3 translation
 Translation, X/Y/Z components.
FpaFloat4 orientation
 Rotation in quaternion, W/X/Y/Z components.
Public Attributes inherited from fpsdk::common::parser::fpa::FpaPayload
bool valid_ = false
 Payload successfully decoded (true), or not (yet) decoded (false)
FpaMessageType msg_type_ = FpaMessageType::UNSPECIFIED
 Message (payload) type.

Static Public Attributes

static constexpr const char * MSG_NAME = "FP_A-TF"
 Message name.

Detailed Description

FP_A-TF (version 2) message payload.

Definition at line 844 of file fpa.hpp.

Member Function Documentation

◆ SetFromMsg()

bool fpsdk::common::parser::fpa::FpaTfPayload::SetFromMsg ( const uint8_t * msg,
const std::size_t msg_size )
finalvirtual

Set data from message.

Parameters
[in]msgPointer to the FP_A message
[in]msg_sizeSize of the FP_A message (>= 11)
Returns
true if message payload was correct and all data could be extracted (fields are now valid), or false otherwise (fields are now invalid)

Implements fpsdk::common::parser::fpa::FpaPayload.

Member Data Documentation

◆ gps_time

FpaGpsTime fpsdk::common::parser::fpa::FpaTfPayload::gps_time

Time.

Definition at line 846 of file fpa.hpp.

◆ frame_a

char fpsdk::common::parser::fpa::FpaTfPayload::frame_a[10] = { 0 }

Target frame (nul-terminated string)

Definition at line 847 of file fpa.hpp.

◆ frame_b

char fpsdk::common::parser::fpa::FpaTfPayload::frame_b[10] = { 0 }

Initial frame (nul-terminated string)

Definition at line 848 of file fpa.hpp.

◆ translation

FpaFloat3 fpsdk::common::parser::fpa::FpaTfPayload::translation

Translation, X/Y/Z components.

Definition at line 849 of file fpa.hpp.

◆ orientation

FpaFloat4 fpsdk::common::parser::fpa::FpaTfPayload::orientation

Rotation in quaternion, W/X/Y/Z components.

Definition at line 850 of file fpa.hpp.

◆ MSG_NAME

const char* fpsdk::common::parser::fpa::FpaTfPayload::MSG_NAME = "FP_A-TF"
staticconstexpr

Message name.

Definition at line 855 of file fpa.hpp.


The documentation for this struct was generated from the following file:
  • fpsdk_common/include/fpsdk_common/parser/fpa.hpp