Go to the documentation of this file.
16 namespace fusion_engine {
131 return "GNSS Satellite";
134 return "Pose Auxiliary";
137 return "Calibration Status";
140 return "Relative ENU Position";
144 return "System Status";
151 return "Raw heading output";
154 return "Raw IMU Output";
157 return "Heading Output";
163 return "Wheel Speed Measurement";
166 return "Vehicle Speed Measurement";
169 return "Wheel Tick Input";
172 return "Vehicle Tick Input";
175 return "Wheel Speed Input";
178 return "Vehicle Speed Input";
181 return "Raw Wheel Tick Output";
184 return "Raw Vehicle Tick Output";
187 return "Raw Wheel Speed Output";
190 return "Raw Vehicle Speed Output";
193 return "Wheel Speed Output";
196 return "Vehicle Speed Output";
210 return "Command Response";
213 return "Message Transmission Request";
216 return "Reset Request";
219 return "Version Information";
222 return "Event Notification";
225 return "Shutdown Request";
228 return "Startup Request";
231 return "Device ID Information";
234 return "Fault Control";
237 return "Set Configuration Parameter";
240 return "Get Configuration Parameter";
243 return "Save Configuration";
246 return "Configuration Parameter Value";
249 return "Set Message Rate";
252 return "Get Message Rate";
255 return "Supported IO Interfaces";
258 return "Message Rate Response";
261 return "Import Data To Device";
264 return "Export Data From Device";
267 return "Platform Data Contents";
270 return "L-band Frame Contents";
272 return "Unrecognized Message";
280 stream <<
to_string(type) <<
" (" << (int)type <<
")";
295 switch (message_type) {
362 switch (message_type) {
431 return "Unsupported Command Version";
433 return "Unsupported Feature";
435 return "Value Error";
437 return "Insufficient Space";
439 return "Execution Failure";
441 return "Inconsistent Payload Length";
443 return "Data Corrupted";
445 return "No Data Stored";
447 return "Device Unavailable";
449 return "Unrecognized";
457 stream <<
to_string(val) <<
" (" << (int)val <<
")";
506 return "Stand Alone GNSS";
509 return "Differential GNSS";
512 return "Fixed RTK GNSS";
515 return "Real-valued Ambiguity RTK GNSS";
518 return "Dead Reckoning";
521 return "Visual Navigation";
527 return "Unrecognized Solution Type";
536 stream <<
to_string(type) <<
" (" << (int)type <<
")";
550 static constexpr uint32_t
INVALID = 0xFFFFFFFF;
570 static constexpr uint8_t SYNC0 = 0x2E;
571 static constexpr uint8_t SYNC1 = 0x31;
573 static constexpr uint32_t INVALID_SOURCE_ID = 0xFFFFFFFF;
578 static const size_t MAX_MESSAGE_SIZE_BYTES = (1 << 24);
581 uint8_t sync[2] = {SYNC0, SYNC1};
583 uint8_t reserved[2] = {0};
596 uint8_t protocol_version = 2;
601 uint8_t message_version = 0;
607 uint32_t sequence_number = 0;
610 uint32_t payload_size_bytes = 0;
613 uint32_t source_identifier = INVALID_SOURCE_ID;
@ RAW_VEHICLE_SPEED_OUTPUT
RawVehicleSpeedOutput
@ IMPORT_DATA
ImportDataMessage
@ MAX_VALUE
The maximum defined MessageType enum value.
MessageType
Identifiers for the defined output message types.
Library portability helper definitions.
@ RTKFloat
GNSS RTK solution with floating point carrier phase ambiguities.
SolutionType
Navigation solution type definitions.
@ COMMAND_RESPONSE
CommandResponseMessage
@ DEVICE_ID
DeviceIDMessage
@ SHUTDOWN_REQUEST
ShutdownRequest
@ UNAVAILABLE
The device is in a state where it can't process the command.
@ RAW_VEHICLE_TICK_OUTPUT
RawVehicleTickOutput
@ DEPRECATED_WHEEL_SPEED_MEASUREMENT
DeprecatedWheelSpeedMeasurement
@ GNSS_INFO
GNSSInfoMessage
@ SUPPORTED_IO_INTERFACES
SupportedIOInterfacesMessage
@ INCONSISTENT_PAYLOAD_LENGTH
The header payload_size_bytes is in conflict with the size of the message based on its type and type ...
@ ROS_GPS_FIX
ros::GPSFixMessage
@ ROS_POSE
ros::PoseMessage
@ RAW_WHEEL_SPEED_OUTPUT
RawWheelSpeedOutput
@ SYSTEM_STATUS
SystemStatusMessage
@ INVALID
Invalid message type.
@ DGPS
Differential GNSS pseudorange solution using a local RTK base station or SSR or SBAS corrections.
@ MESSAGE_RATE_RESPONSE
MessageRateResponse
@ SAVE_CONFIG
SaveConfigMessage
@ HEADING_OUTPUT
HeadingOutput
@ CALIBRATION_STATUS
CalibrationStatusMessage
@ GNSS_SATELLITE
GNSSSatelliteMessage
@ AutonomousGPS
Standalone GNSS fix, no GNSS corrections data used.
P1_CONSTEXPR_FUNC bool IsResponse(MessageType message_type)
Check if the specified message type is a response to a user command.
@ LBAND_FRAME
LBandFrameMessage
@ DEPRECATED_VEHICLE_SPEED_MEASUREMENT
DeprecatedVehicleSpeedMeasurement
The base class for all message payloads.
@ VALUE_ERROR
One or more values in the command were not in acceptable ranges (e.g., An undefined enum value,...
P1_CONSTEXPR_FUNC bool IsCommand(MessageType message_type)
Check if the specified message type is a user command.
@ RESET_REQUEST
ResetRequest
@ RTKFixed
GNSS RTK solution with fixed integer carrier phase ambiguities (one or more signals fixed).
@ VERSION_INFO
VersionInfoMessage
@ Invalid
Invalid, no position available.
GNSS signal and frequency type definitions.
@ Integrate
Integrated position using dead reckoning.
@ UNSUPPORTED_CMD_VERSION
A version specified in the command or subcommand could not be handled.
@ EXECUTION_FAILURE
There was a runtime failure executing the command.
@ Visual
Using vision measurements.
@ RAW_IMU_OUTPUT
RawIMUOutput
P1_CONSTEXPR_FUNC const char * to_string(ConfigType type)
Get a human-friendly string name for the specified ConfigType.
@ GET_MESSAGE_RATE
GetMessageRate
Response
Command response status indicators.
@ NO_DATA_STORED
The requested data isn't available.
p1_ostream & operator<<(p1_ostream &stream, ConfigType type)
ConfigType stream operator.
@ EXPORT_DATA
ExportDataMessage
@ VEHICLE_SPEED_INPUT
VehicleSpeedInput
@ WHEEL_SPEED_INPUT
WheelSpeedInput
@ SET_MESSAGE_RATE
SetMessageRate
@ WHEEL_SPEED_OUTPUT
WheelSpeedOutput
@ RAW_WHEEL_TICK_OUTPUT
RawWheelTickOutput
#define P1_CONSTEXPR_FUNC
@ VEHICLE_SPEED_OUTPUT
VehicleSpeedOutput
@ VEHICLE_TICK_INPUT
VehicleTickInput
@ GET_CONFIG
GetConfigMessage
@ RELATIVE_ENU_POSITION
RelativeENUPositionMessage
@ SET_CONFIG
SetConfigMessage
@ EVENT_NOTIFICATION
EventNotificationMessage
Generic timestamp representation.
@ PLATFORM_STORAGE_DATA
PlatformStorageDataMessage
@ STARTUP_REQUEST
StartupRequest
@ INSUFFICIENT_SPACE
The command would require adding too many elements to an internal storage.
@ PPP
GNSS precise point positioning (PPP) pseudorange/carrier phase solution.
@ DATA_CORRUPTED
Requested data was corrupted and not available.
@ MESSAGE_REQUEST
MessageRequest
@ UNSUPPORTED_FEATURE
The command interacts with a feature that is not present on the target device (e.g....
@ RAW_HEADING_OUTPUT
RawHeadingOutput
@ FAULT_CONTROL
FaultControlMessage
@ WHEEL_TICK_INPUT
WheelTickInput
@ CONFIG_RESPONSE
ConfigResponseMessage