Skip to main content

Common Enumeration Definitions

Topics Index

 Enums and helper functions for describing GNSS

satellites and their signals. More...

Enumerations Index

enum classResponse : uint8_t { ... }

Command response status indicators. More...

enum classSolutionType : uint8_t { ... }

Navigation solution type definitions. More...

Operators Index

p1_ostream &operator<< (p1_ostream &stream, MessageType type)

MessageType stream operator. More...

p1_ostream &operator<< (p1_ostream &stream, Response val)

Response stream operator. More...

p1_ostream &operator<< (p1_ostream &stream, SolutionType type)

SolutionType stream operator. More...

Functions Index

P1_CONSTEXPR_FUNC const char *to_string (MessageType type)

Get a human-friendly string name for the specified MessageType. More...

P1_CONSTEXPR_FUNC const char *to_string (Response val)

Get a human-friendly string name for the specified Response. More...

P1_CONSTEXPR_FUNC const char *to_string (SolutionType type)

Get a human-friendly string name for the specified SolutionType. More...

Enumerations

Response

enum class point_one::fusion_engine::messages::Response : uint8_t
strong

Command response status indicators.

Enumeration values
OK (= 0)
UNSUPPORTED_CMD_VERSIONA version specified in the command or subcommand could not be handled (= 1)
UNSUPPORTED_FEATUREThe command interacts with a feature that is not present on the target device (e.g., Setting the baud rate on a device without a serial port) (= 2)
VALUE_ERROROne or more values in the command were not in acceptable ranges (e.g., An undefined enum value, or an invalid baud rate) (= 3)
INSUFFICIENT_SPACEThe command would require adding too many elements to an internal storage (= 4)
EXECUTION_FAILUREThere was a runtime failure executing the command (= 5)
INCONSISTENT_PAYLOAD_LENGTHThe header payload_size_bytes is in conflict with the size of the message based on its type and type specific length fields (= 6)
DATA_CORRUPTEDRequested data was corrupted and not available (= 7)
NO_DATA_STOREDThe requested data isn't available (= 8)
UNAVAILABLEThe device is in a state where it can't process the command (= 9)
UNSUPPORTED_INTERFACEAn interface specified in the command is invalid, or unsupported on the target device (= 10)

Definition at line 416 of file defs.h.

416enum class Response : uint8_t {
417 OK = 0,
418 /**
419 * A version specified in the command or subcommand could not be handled.
420 * This could mean that the version was too new, or it was old and there was
421 * not a translation for it.
422 */
424 /**
425 * The command interacts with a feature that is not present on the target
426 * device (e.g., Setting the baud rate on a device without a serial port).
427 */
429 /**
430 * One or more values in the command were not in acceptable ranges (e.g., An
431 * undefined enum value, or an invalid baud rate).
432 */
433 VALUE_ERROR = 3,
434 /**
435 * The command would require adding too many elements to an internal
436 * storage.
437 */
439 /**
440 * There was a runtime failure executing the command.
441 */
443 /**
444 * The header `payload_size_bytes` is in conflict with the size of the
445 * message based on its type and type specific length fields.
446 */
448 /**
449 * Requested data was corrupted and not available.
450 */
452 /**
453 * The requested data isn't available.
454 */
456 /**
457 * The device is in a state where it can't process the command.
458 */
459 UNAVAILABLE = 9,
460 /**
461 * An interface specified in the command is invalid, or unsupported on the
462 * target device.
463 */
465};

SolutionType

enum class point_one::fusion_engine::messages::SolutionType : uint8_t
strong

Navigation solution type definitions.

Enumeration values
InvalidInvalid, no position available (= 0)
AutonomousGPSStandalone GNSS fix, no GNSS corrections data used (= 1)
DGPSDifferential GNSS pseudorange solution using a local RTK base station or SSR or SBAS corrections (= 2)
RTKFixedGNSS RTK solution with fixed integer carrier phase ambiguities (one or more signals fixed) (= 4)
RTKFloatGNSS RTK solution with floating point carrier phase ambiguities (= 5)
IntegrateIntegrated position using dead reckoning (= 6)
VisualUsing vision measurements (= 9)
PPPGNSS precise point positioning (PPP) pseudorange/carrier phase solution (= 10)
MAX_VALUE (= PPP)

Definition at line 513 of file defs.h.

513enum class SolutionType : uint8_t {
514 /** Invalid, no position available. */
515 Invalid = 0,
516 /** Standalone GNSS fix, no GNSS corrections data used. */
517 AutonomousGPS = 1,
518 /**
519 * Differential GNSS pseudorange solution using a local RTK base station or
520 * SSR or SBAS corrections.
521 */
522 DGPS = 2,
523 /**
524 * GNSS RTK solution with fixed integer carrier phase ambiguities (one or more
525 * signals fixed).
526 */
527 RTKFixed = 4,
528 /** GNSS RTK solution with floating point carrier phase ambiguities. */
529 RTKFloat = 5,
530 /** Integrated position using dead reckoning. */
531 Integrate = 6,
532 /** Using vision measurements. */
533 Visual = 9,
534 /**
535 * GNSS precise point positioning (PPP) pseudorange/carrier phase solution.
536 */
537 PPP = 10,
538 MAX_VALUE = PPP,
539};

Operators

operator<<()

p1_ostream & point_one::fusion_engine::messages::operator<< (p1_ostream & stream, MessageType type)
inline

MessageType stream operator.

Definition at line 312 of file defs.h.

313 stream << to_string(type) << " (" << (int)type << ")";
314 return stream;
315}

operator<<()

p1_ostream & point_one::fusion_engine::messages::operator<< (p1_ostream & stream, Response val)
inline

Response stream operator.

Definition at line 505 of file defs.h.

506 stream << to_string(val) << " (" << (int)val << ")";
507 return stream;
508}

operator<<()

p1_ostream & point_one::fusion_engine::messages::operator<< (p1_ostream & stream, SolutionType type)
inline

SolutionType stream operator.

Definition at line 582 of file defs.h.

583 stream << to_string(type) << " (" << (int)type << ")";
584 return stream;
585}

Functions

to_string()

P1_CONSTEXPR_FUNC const char * point_one::fusion_engine::messages::to_string (MessageType type)

Get a human-friendly string name for the specified MessageType.

Parameters
type

The desired message type.

Returns

The corresponding string name.

Definition at line 127 of file defs.h.

128 switch (type) {
130 return "Invalid";
131
132 // Navigation solution messages.
134 return "Pose";
135
137 return "GNSS Info";
138
140 return "GNSS Satellite";
141
143 return "Pose Auxiliary";
144
146 return "Calibration Status";
147
149 return "Relative ENU Position";
150
152 return "GNSS Signals";
153
154 // Device status messages.
156 return "System Status";
157
159 return "SSR Status";
160
161 // Sensor measurement messages.
163 return "IMU Output";
164
166 return "Raw GNSS Heading Output";
167
169 return "Raw IMU Output";
170
172 return "GNSS Heading Output";
173
175 return "IMU Input";
176
178 return "GNSS Attitude Output";
179
181 return "Raw GNSS Attitude Output";
182
184 return "Wheel Speed Measurement";
185
187 return "Vehicle Speed Measurement";
188
190 return "Wheel Tick Input";
191
193 return "Vehicle Tick Input";
194
196 return "Wheel Speed Input";
197
199 return "Vehicle Speed Input";
200
202 return "Raw Wheel Tick Output";
203
205 return "Raw Vehicle Tick Output";
206
208 return "Raw Wheel Speed Output";
209
211 return "Raw Vehicle Speed Output";
212
214 return "Wheel Speed Output";
215
217 return "Vehicle Speed Output";
218
219 // ROS messages.
221 return "ROS Pose";
222
224 return "ROS GPSFix";
225
227 return "ROS IMU";
228
229 // Command and control messages.
231 return "Command Response";
232
234 return "Message Transmission Request";
235
237 return "Reset Request";
238
240 return "Version Information";
241
243 return "Event Notification";
244
246 return "Shutdown Request";
247
249 return "Startup Request";
250
252 return "Device ID Information";
253
255 return "Fault Control";
256
258 return "Set Configuration Parameter";
259
261 return "Get Configuration Parameter";
262
264 return "Save Configuration";
265
267 return "Configuration Parameter Value";
268
270 return "Set Message Rate";
271
273 return "Get Message Rate";
274
276 return "Supported IO Interfaces";
277
279 return "Message Rate Response";
280
282 return "Import Data To Device";
283
285 return "Export Data From Device";
286
288 return "Platform Data Contents";
289
291 return "Wrapped Input Data";
292
294 return "L-band Frame Contents";
295
297 return "STA5635 Command";
298
300 return "STA5635 Command Response";
301
303 return "STA5635 IQ Data";
304 }
305 return "Unrecognized Message";
306}

to_string()

P1_CONSTEXPR_FUNC const char * point_one::fusion_engine::messages::to_string (Response val)

Get a human-friendly string name for the specified Response.

Parameters
val

The enum to get the string name for.

Returns

The corresponding string name.

Definition at line 474 of file defs.h.

475 switch (val) {
476 case Response::OK:
477 return "Ok";
479 return "Unsupported Command Version";
481 return "Unsupported Feature";
483 return "Value Error";
485 return "Insufficient Space";
487 return "Execution Failure";
489 return "Inconsistent Payload Length";
491 return "Data Corrupted";
493 return "No Data Stored";
495 return "Device Unavailable";
497 return "Unsupported Interface";
498 }
499 return "Unrecognized";
500}

to_string()

P1_CONSTEXPR_FUNC const char * point_one::fusion_engine::messages::to_string (SolutionType type)

Get a human-friendly string name for the specified SolutionType.

Parameters
type

The desired message type.

Returns

The corresponding string name.

Definition at line 549 of file defs.h.

550 switch (type) {
552 return "Invalid";
553
555 return "Stand Alone GNSS";
556
558 return "Differential GNSS";
559
561 return "Fixed RTK GNSS";
562
564 return "Real-valued Ambiguity RTK GNSS";
565
567 return "Dead Reckoning";
568
570 return "Visual Navigation";
571
573 return "PPP GNSS";
574 }
575 return "Unrecognized Solution Type";
576}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.