Skip to main content

Common Enumeration Definitions

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...

GNSS Constellation (System) Definitions Index

P1_CONSTEXPR_FUNC const char *to_string (SatelliteType type)

Get a human-friendly string name for the specified SatelliteType (GNSS constellation). More...

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

SatelliteType stream operator. More...

P1_CONSTEXPR_FUNC const char *to_string (FrequencyBand type)

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

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

FrequencyBand stream operator. 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 406 of file defs.h.

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

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 503 of file defs.h.

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

Operators

operator<<()

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

MessageType stream operator.

Definition at line 304 of file defs.h.

305 stream << to_string(type) << " (" << (int)type << ")";
306 return stream;
307}

operator<<()

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

Response stream operator.

Definition at line 495 of file defs.h.

496 stream << to_string(val) << " (" << (int)val << ")";
497 return stream;
498}

operator<<()

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

SolutionType stream operator.

Definition at line 572 of file defs.h.

573 stream << to_string(type) << " (" << (int)type << ")";
574 return stream;
575}

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 125 of file defs.h.

126 switch (type) {
128 return "Invalid";
129
130 // Navigation solution messages.
132 return "Pose";
133
135 return "GNSS Info";
136
138 return "GNSS Satellite";
139
141 return "Pose Auxiliary";
142
144 return "Calibration Status";
145
147 return "Relative ENU Position";
148
149 // Device status messages.
151 return "System Status";
152
153 // Sensor measurement messages.
155 return "IMU Output";
156
158 return "Raw GNSS Heading Output";
159
161 return "Raw IMU Output";
162
164 return "GNSS Heading Output";
165
167 return "IMU Input";
168
170 return "GNSS Attitude Output";
171
173 return "Raw GNSS Attitude Output";
174
176 return "Wheel Speed Measurement";
177
179 return "Vehicle Speed Measurement";
180
182 return "Wheel Tick Input";
183
185 return "Vehicle Tick Input";
186
188 return "Wheel Speed Input";
189
191 return "Vehicle Speed Input";
192
194 return "Raw Wheel Tick Output";
195
197 return "Raw Vehicle Tick Output";
198
200 return "Raw Wheel Speed Output";
201
203 return "Raw Vehicle Speed Output";
204
206 return "Wheel Speed Output";
207
209 return "Vehicle Speed Output";
210
211 // ROS messages.
213 return "ROS Pose";
214
216 return "ROS GPSFix";
217
219 return "ROS IMU";
220
221 // Command and control messages.
223 return "Command Response";
224
226 return "Message Transmission Request";
227
229 return "Reset Request";
230
232 return "Version Information";
233
235 return "Event Notification";
236
238 return "Shutdown Request";
239
241 return "Startup Request";
242
244 return "Device ID Information";
245
247 return "Fault Control";
248
250 return "Set Configuration Parameter";
251
253 return "Get Configuration Parameter";
254
256 return "Save Configuration";
257
259 return "Configuration Parameter Value";
260
262 return "Set Message Rate";
263
265 return "Get Message Rate";
266
268 return "Supported IO Interfaces";
269
271 return "Message Rate Response";
272
274 return "Import Data To Device";
275
277 return "Export Data From Device";
278
280 return "Platform Data Contents";
281
283 return "Wrapped Input Data";
284
286 return "L-band Frame Contents";
287
289 return "STA5635 Command";
290
292 return "STA5635 Command Response";
293
295 return "STA5635 IQ Data";
296 }
297 return "Unrecognized Message";
298}

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 464 of file defs.h.

465 switch (val) {
466 case Response::OK:
467 return "Ok";
469 return "Unsupported Command Version";
471 return "Unsupported Feature";
473 return "Value Error";
475 return "Insufficient Space";
477 return "Execution Failure";
479 return "Inconsistent Payload Length";
481 return "Data Corrupted";
483 return "No Data Stored";
485 return "Device Unavailable";
487 return "Unsupported Interface";
488 }
489 return "Unrecognized";
490}

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 539 of file defs.h.

540 switch (type) {
542 return "Invalid";
543
545 return "Stand Alone GNSS";
546
548 return "Differential GNSS";
549
551 return "Fixed RTK GNSS";
552
554 return "Real-valued Ambiguity RTK GNSS";
555
557 return "Dead Reckoning";
558
560 return "Visual Navigation";
561
563 return "PPP GNSS";
564 }
565 return "Unrecognized Solution Type";
566}

GNSS Constellation (System) Definitions

operator<<

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

SatelliteType stream operator.

Definition at line 91 of file signal_defs.h.

92 stream << to_string(type) << " (" << (int)type << ")";
93 return stream;
94}

operator<<

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

FrequencyBand stream operator.

Definition at line 271 of file signal_defs.h.

272 stream << to_string(type) << " (" << (int)type << ")";
273 return stream;
274}

to_string

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

Get a human-friendly string name for the specified SatelliteType (GNSS constellation).

Parameters
type

The desired satellite type.

Returns

The corresponding string name.

Definition at line 50 of file signal_defs.h.

51 switch (type) {
53 return "Unknown";
54
56 return "GPS";
57
59 return "GLONASS";
60
62 return "LEO";
63
65 return "Galileo";
66
68 return "BeiDou";
69
71 return "QZSS";
72
74 return "Mixed";
75
77 return "SBAS";
78
80 return "IRNSS";
81
82 default:
83 return "Invalid System";
84 }
85}

to_string

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

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

Parameters
type

The desired frequency band.

Returns

The corresponding string name.

Definition at line 245 of file signal_defs.h.

246 switch (type) {
248 return "Unknown";
249
251 return "L1";
252
254 return "L2";
255
257 return "L5";
258
260 return "L6";
261
262 default:
263 return "Invalid Frequency Band";
264 }
265}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.