Main MRPT website > C++ reference for MRPT 1.5.7
Macros | Enumerations | Functions
xsens_std.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define XSENS_LABEL_SIZE   64
 The maximum length of a label. More...
 
#define XSENS_SHORT_STRING_SIZE   256
 The maximum length of a short string. More...
 
#define XSENS_LONG_STRING_SIZE   16384
 The maximum length of a long string. More...
 

Enumerations

enum  XsensResultValue {
  XRV_OK = 0, XRV_NOBUS = 1, XRV_BUSNOTREADY = 2, XRV_INVALIDPERIOD = 3,
  XRV_INVALIDMSG = 4, XRV_INITBUSFAIL1 = 16, XRV_INITBUSFAIL2 = 17, XRV_INITBUSFAIL3 = 18,
  XRV_SETBIDFAIL1 = 20, XRV_SETBIDFAIL2 = 21, XRV_MEASUREMENTFAIL1 = 24, XRV_MEASUREMENTFAIL2 = 25,
  XRV_MEASUREMENTFAIL3 = 26, XRV_MEASUREMENTFAIL4 = 27, XRV_MEASUREMENTFAIL5 = 28, XRV_MEASUREMENTFAIL6 = 29,
  XRV_TIMEROVERFLOW = 30, XRV_BAUDRATEINVALID = 32, XRV_PARAMINVALID = 33, XRV_INVALIDPARAM = 33,
  XRV_MEASUREMENTFAIL7 = 35, XRV_MEASUREMENTFAIL8 = 36, XRV_ERROR = 256, XRV_NOTIMPLEMENTED = 257,
  XRV_TIMEOUT = 258, XRV_TIMEOUTNODATA = 259, XRV_CHECKSUMFAULT = 260, XRV_OUTOFMEMORY = 261,
  XRV_NOTFOUND = 262, XRV_UNEXPECTEDMSG = 263, XRV_INVALIDID = 264, XRV_INVALIDOPERATION = 265,
  XRV_INSUFFICIENTSPACE = 266, XRV_INPUTCANNOTBEOPENED = 267, XRV_OUTPUTCANNOTBEOPENED = 268, XRV_ALREADYOPEN = 269,
  XRV_ENDOFFILE = 270, XRV_COULDNOTREADSETTINGS = 271, XRV_NODATA = 272, XRV_READONLY = 273,
  XRV_NULLPTR = 274, XRV_INSUFFICIENTDATA = 275, XRV_BUSY = 276, XRV_INVALIDINSTANCE = 277,
  XRV_DATACORRUPT = 278, XRV_READINITFAILED = 279, XRV_NOXMFOUND = 280, XRV_ONLYONEXMFOUND = 281,
  XRV_MTCOUNTZERO = 282, XRV_MTLOCATIONINVALID = 283, XRV_INSUFFICIENTMTS = 284, XRV_INITFUSIONFAILED = 285,
  XRV_OTHER = 286, XRV_NOFILEOPEN = 287, XRV_NOPORTOPEN = 288, XRV_NOFILEORPORTOPEN = 289,
  XRV_PORTNOTFOUND = 290, XRV_INITPORTFAILED = 291, XRV_CALIBRATIONFAILED = 292, XRV_CONFIGCHECKFAIL = 293,
  XRV_ALREADYDONE = 294, XRV_SYNC_SINGLE_SLAVE = 295, XRV_SYNC_SECOND_MASTER = 296, XRV_SYNC_NO_SYNC = 297,
  XRV_SYNC_NO_MASTER = 298, XRV_SYNC_DATA_MISSING = 299, XRV_VERSION_TOO_LOW = 300, XRV_VERSION_PROBLEM = 301
}
 Xsens return values. More...
 

Functions

const char * xsensResultText (const XsensResultValue result)
 

Macro Definition Documentation

◆ XSENS_LABEL_SIZE

#define XSENS_LABEL_SIZE   64

The maximum length of a label.

Definition at line 145 of file xsens_std.h.

◆ XSENS_LONG_STRING_SIZE

#define XSENS_LONG_STRING_SIZE   16384

The maximum length of a long string.

Definition at line 147 of file xsens_std.h.

◆ XSENS_SHORT_STRING_SIZE

#define XSENS_SHORT_STRING_SIZE   256

The maximum length of a short string.

Definition at line 146 of file xsens_std.h.

Enumeration Type Documentation

◆ XsensResultValue

Xsens return values.

Enumerator
XRV_OK 

Operation was performed successfully.

XRV_NOBUS 

No bus communication possible.

XRV_BUSNOTREADY 

InitBus and/or SetBID are not issued.

XRV_INVALIDPERIOD 

Period sent is invalid.

XRV_INVALIDMSG 

The message is invalid or not implemented.

XRV_INITBUSFAIL1 

A slave did not respond to WaitForSetBID.

XRV_INITBUSFAIL2 

An incorrect answer received after WaitForSetBID.

XRV_INITBUSFAIL3 

After four bus-scans still undetected Motion Trackers.

XRV_SETBIDFAIL1 

No reply to SetBID message during SetBID procedure.

XRV_SETBIDFAIL2 

Other than SetBIDAck received.

XRV_MEASUREMENTFAIL1 

Timer overflow - period too short to collect all data from Motion Trackers.

XRV_MEASUREMENTFAIL2 

Motion Tracker responds with other than SlaveData message.

XRV_MEASUREMENTFAIL3 

Total bytes of data of Motion Trackers including sample counter exceeds 255 bytes.

XRV_MEASUREMENTFAIL4 

Timer overflows during measurement.

XRV_MEASUREMENTFAIL5 

Timer overflows during measurement.

XRV_MEASUREMENTFAIL6 

No correct response from Motion Tracker during measurement.

XRV_TIMEROVERFLOW 

Timer overflows during measurement.

XRV_BAUDRATEINVALID 

Baud rate does not comply with valid range.

XRV_PARAMINVALID 

An invalid parameter is supplied.

XRV_INVALIDPARAM 

An invalid parameter is supplied.

XRV_MEASUREMENTFAIL7 

TX PC Buffer is full.

XRV_MEASUREMENTFAIL8 

TX PC Buffer overflow, cannot fit full message.

XRV_ERROR 

A generic error occurred.

XRV_NOTIMPLEMENTED 

Operation not implemented in this version (yet)

XRV_TIMEOUT 

A timeout occurred.

XRV_TIMEOUTNODATA 

Operation aborted because of no data read.

XRV_CHECKSUMFAULT 

Checksum fault occured.

XRV_OUTOFMEMORY 

No internal memory available.

XRV_NOTFOUND 

The requested item was not found.

XRV_UNEXPECTEDMSG 

Unexpected message received (e.g. no acknowledge message received)

XRV_INVALIDID 

Invalid id supplied.

XRV_INVALIDOPERATION 

Operation is invalid at this point.

XRV_INSUFFICIENTSPACE 

Insufficient buffer space available.

XRV_INPUTCANNOTBEOPENED 

The specified i/o device can not be opened.

XRV_OUTPUTCANNOTBEOPENED 

The specified i/o device can not be opened.

XRV_ALREADYOPEN 

An I/O device is already opened with this object.

XRV_ENDOFFILE 

End of file is reached.

XRV_COULDNOTREADSETTINGS 

A required settings file could not be opened or is missing some data.

XRV_NODATA 

No data is available.

XRV_READONLY 

Tried to change a read-only value.

XRV_NULLPTR 

Tried to supply a NULL value where it is not allowed.

XRV_INSUFFICIENTDATA 

Insufficient data was supplied to a function.

XRV_BUSY 

Busy processing, try again later.

XRV_INVALIDINSTANCE 

Invalid instance called.

XRV_DATACORRUPT 

A trusted data stream proves to contain corrupted data.

XRV_READINITFAILED 

Failure during read of settings.

XRV_NOXMFOUND 

Could not find any Moven-compatible hardware.

XRV_ONLYONEXMFOUND 

Found only one responding Xbus Master.

XRV_MTCOUNTZERO 

No sensors found.

XRV_MTLOCATIONINVALID 

One or more sensors are not where they were expected.

XRV_INSUFFICIENTMTS 

Not enough sensors were found.

XRV_INITFUSIONFAILED 

Failure during initialization of Fusion Engine.

XRV_OTHER 

Something else was received than was requested.

XRV_NOFILEOPEN 

No file opened for reading/writing.

XRV_NOPORTOPEN 

No serial port opened for reading/writing.

XRV_NOFILEORPORTOPEN 

No file or serial port opened for reading/writing.

XRV_PORTNOTFOUND 

A required port could not be found.

XRV_INITPORTFAILED 

The low-level port handler failed to initialize.

XRV_CALIBRATIONFAILED 

A calibration routine failed.

XRV_CONFIGCHECKFAIL 

The in-config check of the device failed.

XRV_ALREADYDONE 

The operation is once only and has already been performed.

XRV_SYNC_SINGLE_SLAVE 

The single connected device is configured as a slave.

XRV_SYNC_SECOND_MASTER 

More than one master was detected.

XRV_SYNC_NO_SYNC 

A device was detected that was neither master nor slave.

XRV_SYNC_NO_MASTER 

No master detected.

XRV_SYNC_DATA_MISSING 

A device is not sending enough data.

XRV_VERSION_TOO_LOW 

The version of the object is too low for the requested operation.

XRV_VERSION_PROBLEM 

The object has an unrecognized version, so it's not safe to perform the operation.

Definition at line 30 of file xsens_std.h.

Function Documentation

◆ xsensResultText()

const char* xsensResultText ( const XsensResultValue  result)



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019