12#ifndef _AXIS_SDK_API_H
13#define _AXIS_SDK_API_H
21 #define AXIS_API extern "C" __declspec( dllexport )
23 #define AXIS_API extern "C" __declspec( dllimport )
25#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__)
28 #define AXIS_API extern "C" __attribute__((visibility("default")))
30 #define AXIS_API extern "C"
33 #error What platform is this?
36#define AXIS_MAX_NODE_COUNT 17
38namespace Refract {
namespace AXIS
40 #define AXIS_RUNTIME_ERRORS_ENUM(DO) \
42 DO(PacketCallbackNotSet) \
43 DO(InvalidDongleCommand) \
45 DO(InvalidIPAddress) \
46 DO(InvalidParameter) \
52 DO(PreviousOpInProgress) \
53 DO(DongleNotConnected) \
58 DO(RUNTIME_ERROR_COUNT)
60 #define AXIS_PACKET_TYPES_ENUM(DO) \
72 DO(NodeConfigResponse) \
74 DO(PACKET_TYPES_COUNT)
76 #define AXIS_DONGLE_COMMAND_TYPES_ENUM(DO) \
86 DO(NodeAssignSingle) \
89 DO(NodeOperationMode) \
95 DO(DONGLE_COMMAND_TYPES_COUNT)
97 #define AXIS_NODE_POSITIONS_ENUM(DO) \
118 #define AXIS_NODE_OPERATION_MODES_ENUM(DO) \
122 DO(OPERATION_MODE_COUNT)
124 #define AXIS_HUB_LOCATIONS_ENUM(DO) \
125 DO(HubLocationBack) \
126 DO(HubLocationFront) \
127 DO(AXIS_HUB_LOCATION_COUNT)
129 #define AXIS_HIP_PROVIDER_MODES_ENUM(DO) \
130 DO(HipProviderNone) \
131 DO(HipProviderNode) \
133 DO(AXIS_HIP_PROVIDER_MODES_COUNT)
135 #define AXIS_NODE_CONFIG_CATEGORIES_ENUM(DO) \
138 DO(AXIS_NODE_CONFIG_CATEGORIES_COUNT)
140 #define AXIS_NODE_CONFIG_DEV_PARAMS_ENUM(DO) \
141 DO(DevPacketBitflags) \
142 DO(AXIS_NODE_CONFIG_DEV_PARAMETERS_COUNT)
144 #define AXIS_NODE_CONFIG_POWER_PARAMS_ENUM(DO) \
145 DO(TransmissionPower) \
146 DO(TransmissionFrequency) \
147 DO(AXIS_NODE_CONFIG_POWER_PARAMETERS_COUNT)
149 #define AXIS_VMC_BONE_CONFIG_BONES_ENUM(DO) \
151 DO(VMCLeftUpperLeg) \
152 DO(VMCRightUpperLeg) \
153 DO(VMCLeftLowerLeg) \
154 DO(VMCRightLowerLeg) \
162 DO(VMCLeftShoulder) \
163 DO(VMCRightShoulder) \
164 DO(VMCLeftUpperArm) \
165 DO(VMCRightUpperArm) \
166 DO(VMCLeftLowerArm) \
167 DO(VMCRightLowerArm) \
172 #define AXIS_SKELETON_JOINTS_ENUM(DO) \
189 DO(SKRightShoulder) \
200 #define MAKE_ENUM(VAR) VAR,
205 AXIS_RUNTIME_ERRORS_ENUM(MAKE_ENUM)
211 AXIS_PACKET_TYPES_ENUM(MAKE_ENUM)
217 AXIS_NODE_POSITIONS_ENUM(MAKE_ENUM)
223 AXIS_NODE_OPERATION_MODES_ENUM(MAKE_ENUM)
229 AXIS_DONGLE_COMMAND_TYPES_ENUM(MAKE_ENUM)
235 AXIS_HIP_PROVIDER_MODES_ENUM(MAKE_ENUM)
241 AXIS_HUB_LOCATIONS_ENUM(MAKE_ENUM)
247 AXIS_NODE_CONFIG_CATEGORIES_ENUM(MAKE_ENUM)
253 AXIS_NODE_CONFIG_DEV_PARAMS_ENUM(MAKE_ENUM)
259 AXIS_NODE_CONFIG_POWER_PARAMS_ENUM(MAKE_ENUM)
265 AXIS_VMC_BONE_CONFIG_BONES_ENUM(MAKE_ENUM)
492 struct SteamVRLimbLengths_t
534 DEV_PACKET_COMPONENT_COUNT,
536 bool flags[DEV_PACKET_COMPONENT_COUNT];
563 bool devPacketBitflags[DevPacket_t::DEV_PACKET_COMPONENT_COUNT];
1151 AXIS_API
AxisRuntimeErrors SetSteamVRLimbLengths(
const SteamVRLimbLengths_t* lengths);
1152 AXIS_API
void SetSteamVRManualOrientationOffset(
float offset);
1162 AXIS_API
AxisRuntimeErrors SendSetDevpacketBitflags(
bool accel,
bool gyro,
bool mag,
bool fusion,
bool linAccel);
AxisRuntimeErrors EnableVMCOSCOutput(const char *ipAddress, int port=39539)
Enables output to VMC output via OSC.
#define AXIS_SKELETON_JOINTS_ENUM(DO)
Definition axis_sdk.h:172
void(* AxisRuntimeErrorCallback)(AxisRuntimeErrors runtimeError, int errorCode, const char *errorString)
Callback for runtime errors.
Definition axis_sdk.h:919
void(* AxisHubStatusCallback)(const AxisHubStatus_t *hubStatus)
Callback for getting Axis Hub status.
Definition axis_sdk.h:932
void(* AxisDongleConnectionCallback)(bool connected)
Callback for when dongle is connected or disconnected.
Definition axis_sdk.h:936
void(* AxisPacketCallback)(AxisPacketTypes packetType, const AxisPacket_t *incomingPacket)
Callback for getting packets from the dongle.
Definition axis_sdk.h:924
void(* AxisHubInfoCallback)(const AxisHubsInfo_t *hubInfo)
Callback for getting Axis Hub info.
Definition axis_sdk.h:928
AxisRuntimeErrors
Runtime error codes.
Definition axis_sdk.h:204
AxisNodeOperationModes
Operating modes used by AXIS nodes.
Definition axis_sdk.h:222
AxisHubLocations
Axis Hub locations.
Definition axis_sdk.h:240
AxisSkeletonJoints
Joints used for Refract::AXIS::SkeletonData_t.
Definition axis_sdk.h:270
AxisNodePositions
NodeIndex and what position on the body they represent.
Definition axis_sdk.h:216
AxisPacketTypes
Packet types.
Definition axis_sdk.h:210
AxisVmcConfigBones
Bones used for VMC.
Definition axis_sdk.h:264
AxisDongleCommandTypes
Command types.
Definition axis_sdk.h:228
AxisNodeConfigPowerParams
Parameters for node configuration in Refract::AXIS::AxisNodeConfigCategories::Power category.
Definition axis_sdk.h:258
AxisNodeConfigCategories
Categories for node configuration. See Refract::AXIS::NodeConfig_t.
Definition axis_sdk.h:246
AxisNodeConfigDevParams
Parameters for node configuration in Refract::AXIS::AxisNodeConfigCategories::DEV category.
Definition axis_sdk.h:252
AxisHipProviderModes
Hip Provider modes.
Definition axis_sdk.h:234
@ HubLocationBack
Definition axis_sdk.h:241
@ SK_JOINT_COUNT
Definition axis_sdk.h:271
@ VMC_CONFIG_COUNT
Definition axis_sdk.h:265
@ HipProviderNone
Definition axis_sdk.h:235
AxisRuntimeErrors PairWithHub(const char *ipAddress, int port, AxisRuntimeErrorCallback callback)
Pair with Hub.
AxisRuntimeErrors SendDongleCommand(const AxisDongleCommand_t *command)
Sends a command to the dongle.
AxisRuntimeErrors SetHubIP(const char *ipAddress, int port)
Set the IP of the Axis Hub.
AxisRuntimeErrors ResetHubStream(AxisRuntimeErrorCallback callback)
Tells connected Axis Hub to reset position tracking.
AxisRuntimeErrors StopHubStream(AxisRuntimeErrorCallback callback)
Tells connected Axis Hub to stop streaming.
AxisRuntimeErrors StartHubStream(AxisRuntimeErrorCallback callback)
Tells connected Axis Hub to start streaming.
bool IsDongleConnected()
Check whether the dongle is connected or not.
AxisRuntimeErrors SetSteamVRTrackerProfile(const SteamVRTrackerProfile_t *trackers)
Set which trackers for SteamVR are enabled/disabled.
AxisRuntimeErrors SetHipProviderMode(AxisHipProviderModes mode)
Set where the sdk should get the hip information from.
AxisRuntimeErrors SearchForAxisHub(AxisHubInfoCallback callback)
Search for Axis Hubs.
AxisRuntimeErrors SetSteamVRUserHeight(float height)
Set height for user which is used to guesstimate limb lengths.
AxisRuntimeErrors GetHubInfoPageNumber(uint8_t pageNumber, AxisHubInfoCallback callback)
Returns specific page of Refract::AXIS::AxisHubsInfo_t.
AxisRuntimeErrors Start()
Start the SDK. Call SetConfig first.
AxisRuntimeErrors IsAxisHubConnected(AxisRuntimeErrorCallback callback)
Check whether the hub is connected or not.
AxisRuntimeErrors EnableSteamVR(const AxisSteamVRConfig_t *config)
Enables SteamVR integration.
AxisRuntimeErrors DisableSteamVR()
Disables SteamVR integration.
AxisRuntimeErrors GetHubStatus(AxisHubStatusCallback callback)
Get Hub Status.
void DisableOSC()
Disables OSC output.
void SetVMCBoneConfig(AxisVMCBoneConfig_t *config)
Sets which bones to output to OSC. Default is all on.
AxisRuntimeErrors SetConfig(const AxisSDKConfig_t *config)
SetConfig before calling Start.
AxisRuntimeErrors SetHubLocation(AxisHubLocations location)
Set the location of the Axis Hub (whether mounted on user's back or front)
AxisRuntimeErrors EnableVRChatOSCOutput()
Enables output to VR Chat via OSC.
Dongle command.
Definition axis_sdk.h:848
AxisDongleCommandTypes type
The type of command.
Definition axis_sdk.h:850
DongleCommandPayload_t payload
Payload of the command. The following commands do NOT have payloads:
Definition axis_sdk.h:857
Infomation for a device with Axis Hub.
Definition axis_sdk.h:863
const char * deviceMac
MAC address of the device with Axis Hub.
Definition axis_sdk.h:871
const char * deviceIp
IP address of the device with Axis Hub.
Definition axis_sdk.h:867
int devicePort
Port of the device with Axis Hub.
Definition axis_sdk.h:869
const char * deviceName
Name of the device with Axis Hub.
Definition axis_sdk.h:865
Information regarding Axis Hub status.
Definition axis_sdk.h:897
AxisRuntimeErrors error
Status of the GetHubStatus request.
Definition axis_sdk.h:903
const char * deviceName
Hub device name.
Definition axis_sdk.h:911
const char * errorString
String describing the error if any.
Definition axis_sdk.h:907
float battery
Battery level.
Definition axis_sdk.h:909
const char * deviceMac
Hub MAC address.
Definition axis_sdk.h:913
int errorCode
Error code of the error if any.
Definition axis_sdk.h:905
Array with hub information.
Definition axis_sdk.h:877
const char * errorString
String describing the error if any.
Definition axis_sdk.h:883
AxisRuntimeErrors error
Status of the SearchForAxisHub request.
Definition axis_sdk.h:881
AxisHubInfo_t hubsInfo[10]
Array of information for devices with Axis Hub.
Definition axis_sdk.h:891
uint8_t pageNumber
Current page number. Starts from 0.
Definition axis_sdk.h:888
uint8_t hubsDetected
Total number of hubs in the hubsInfo array.
Definition axis_sdk.h:885
Configuration struct for Axis SDK.
Definition axis_sdk.h:949
AxisDongleConnectionCallback dongleConnectionCallback
Set this to get a callback when the dongle is connected / disconnected.
Definition axis_sdk.h:952
AxisHubLocations hubLocation
Where the Axis hub is located on the user's body.
Definition axis_sdk.h:956
AxisRuntimeErrorCallback runtimeErrorCallback
Will be called when a runtime error occurs outside of api functions.
Definition axis_sdk.h:950
bool steamVR
Enable/disable steamVR driver integration. Default off.
Definition axis_sdk.h:953
AxisPacketCallback packetCallback
Set this to get packets from the dongle. Must be set or SetConfig will return AxisRuntimeErrors::Pack...
Definition axis_sdk.h:951
AxisSteamVRConfig_t steamVRConfig
Configuration for SteamVR.
Definition axis_sdk.h:954
AxisHipProviderModes hipProvider
Where hip information is being derived from.
Definition axis_sdk.h:955
Configuration struct for SteamVR integration.
Definition axis_sdk.h:941
float userHeight
Height of user in cm. Used to guesstimate limb lengths.
Definition axis_sdk.h:942
SteamVRTrackerProfile_t steamVRTrackers
Which trackers for SteamVR are enabled/disabled.
Definition axis_sdk.h:943
Configuration for which bones to output to VMC.
Definition axis_sdk.h:962
bool config[AxisVmcConfigBones::VMC_CONFIG_COUNT]
Array of booleans. Use Refract::AXIS::AxisVmcConfigBones.
Definition axis_sdk.h:964
Battery info.
Definition axis_sdk.h:364
uint8_t nodeCount
Number of nodes with data in the nodeBattInfo array.
Definition axis_sdk.h:365
NodeBattInfo_t nodeBattInfo[AXIS_MAX_NODE_COUNT]
Array of NodeInfo. Be sure to check nodeCount.
Definition axis_sdk.h:366
Payload for Refract::AXIS::AxisDongleCommandTypes::Buzz.
Definition axis_sdk.h:754
uint8_t intensity
Vibration intensity (1-255)
Definition axis_sdk.h:758
uint8_t duration
Vibration duration (value * 100 ms)
Definition axis_sdk.h:760
AxisNodePositions nodeIndex
Position of the node.
Definition axis_sdk.h:756
Payload for Refract::AXIS::AxisDongleCommandTypes::BuzzMAC.
Definition axis_sdk.h:786
uint8_t intensity
Vibration intensity (1-255)
Definition axis_sdk.h:790
uint8_t duration
Vibration duration (value * 100 ms)
Definition axis_sdk.h:792
uint8_t mac[6]
MAC address of the node to vibrate.
Definition axis_sdk.h:788
A packet with raw sensor data and sensor fusion state useful for development. Only available from fir...
Definition axis_sdk.h:525
uint32_t timeStamp
Ticks since the node started.
Definition axis_sdk.h:551
DevPacketComponents
Components in DevPacket.
Definition axis_sdk.h:528
@ Gyroscope
Gyroscope.
Definition axis_sdk.h:530
@ Magnetometer
Magnetometer.
Definition axis_sdk.h:531
@ LinearAccelerometer
Accelerometer with gravity removed.
Definition axis_sdk.h:533
@ Accelerometer
Accelerometer.
Definition axis_sdk.h:529
@ FusionStates
State of fusion algorithm.
Definition axis_sdk.h:532
bool flags[DEV_PACKET_COMPONENT_COUNT]
Whether or not the payload has data Check flags[DevPacket_t::DevPacketComponents::Accelerometer] to s...
Definition axis_sdk.h:536
DevPacketFusionState_t fusionState
Check flags[DevPacket_t::DevPacketComponents::FusionStates] to see if this has data.
Definition axis_sdk.h:547
DevPacketSensorData_t linearAccelerometer
Check flags[DevPacket_t::DevPacketComponents::LinearAccelerometer] to see if this has data.
Definition axis_sdk.h:554
DevPacketSensorData_t gyroscope
Check flags[DevPacket_t::DevPacketComponents::Gyroscope] to see if this has data.
Definition axis_sdk.h:542
AxisNodePositions nodeIndex
Position of the node.
Definition axis_sdk.h:549
DevPacketSensorData_t magnetometer
Check flags[DevPacket_t::DevPacketComponents::Magnetometer] to see if this has data.
Definition axis_sdk.h:545
State of the sensor fusion algorithm.
Definition axis_sdk.h:459
bool accelRecov
Whether accelerometer is in recovery.
Definition axis_sdk.h:468
float magRecovTrigger
Recovery trigger for magnetometer.
Definition axis_sdk.h:463
bool accelIgnored
Whether accelerometer is being ignored.
Definition axis_sdk.h:464
bool magRecov
Whether magnetometer is in recovery.
Definition axis_sdk.h:469
bool initializing
Whether fusion algorithm is in initializing state.
Definition axis_sdk.h:466
float accelError
Accelerometer error value in degress.
Definition axis_sdk.h:460
float magError
Magnetometer error value in degrees.
Definition axis_sdk.h:462
float accelRecovTrigger
Recovery trigger for accelerometer.
Definition axis_sdk.h:461
bool angularRateRecov
Whether gyroscope is in recovery state.
Definition axis_sdk.h:467
bool magIgnored
Whether magnetometer is being ignored.
Definition axis_sdk.h:465
Sensor Data for DevPacket.
Definition axis_sdk.h:445
uint8_t acc
Sensor accuracy.
Definition axis_sdk.h:453
Vector3_t data
Sensor data.
Definition axis_sdk.h:447
Version info for the dongle.
Definition axis_sdk.h:381
Version_t hardware
Hardware version.
Definition axis_sdk.h:382
Version_t firmware
Software version.
Definition axis_sdk.h:383
IMUData.
Definition axis_sdk.h:339
PosQuat_t hubData
Orientation and position data from Axis Hub. Will be default value if Axis Hub is not on.
Definition axis_sdk.h:341
NodeIMUData_t nodeImuData[AXIS_MAX_NODE_COUNT]
Array of individual node data. Refer to Refract::AXIS::AxisNodePositions for body positions.
Definition axis_sdk.h:340
Payload for Refract::AXIS::AxisDongleCommandTypes::LED.
Definition axis_sdk.h:766
uint8_t green
Green value (0-255)
Definition axis_sdk.h:774
uint8_t blue
Blue value (0-255)
Definition axis_sdk.h:777
AxisNodePositions nodeIndex
Position of the node.
Definition axis_sdk.h:768
uint8_t brightness
Brightness value (0-255)
Definition axis_sdk.h:780
uint8_t red
Red value (0-255)
Definition axis_sdk.h:771
Payload for Refract::AXIS::AxisDongleCommandTypes::LEDMAC.
Definition axis_sdk.h:798
uint8_t green
Green value (0-255)
Definition axis_sdk.h:806
uint8_t mac[6]
MAC address of the node whose LED color is to be changed.
Definition axis_sdk.h:800
uint8_t red
Red value (0-255)
Definition axis_sdk.h:803
uint8_t brightness
Brightness value (0-255)
Definition axis_sdk.h:812
uint8_t blue
Blue value (0-255)
Definition axis_sdk.h:809
Node battery info.
Definition axis_sdk.h:355
float voltageLevel
Voltage of the battery. 0 is node is off.
Definition axis_sdk.h:358
AxisNodePositions nodeIndex
Position of the node.
Definition axis_sdk.h:356
uint8_t batteryLevel
Battery level as a percentage. 0 is node is off.
Definition axis_sdk.h:357
Payload for Refract::AXIS::AxisDongleCommandTypes::Calibration.
Definition axis_sdk.h:707
CalibrationCommandTypes type
Calibration type.
Definition axis_sdk.h:737
CalibrationCommandTypes
Types of calibration.
Definition axis_sdk.h:710
@ Zero
Only zero.
Definition axis_sdk.h:716
@ All
Do both calibrate frame and zero.
Definition axis_sdk.h:712
@ CalibrateFrame
Only calibrate the reference frame.
Definition axis_sdk.h:714
CalibrationCommandPoses
Pose for calibration.
Definition axis_sdk.h:720
@ Body
A one step calibration type.
Definition axis_sdk.h:734
@ TableFloor
A more accurate type of calibration that requires 2 steps.
Definition axis_sdk.h:726
CalibrationCommandPoses pose
Calibration pose.
Definition axis_sdk.h:739
Node configuration packet. Only available from firmware version 2.4.x onwards.
Definition axis_sdk.h:575
uint8_t parameter
Parameter depending on the category.
Definition axis_sdk.h:582
NodeConfigPayload_t payload
Payload according to category and parameter.
Definition axis_sdk.h:583
AxisNodeConfigCategories category
Category of the configuration.
Definition axis_sdk.h:578
Node configuration float payload.
Definition axis_sdk.h:431
float value
float value
Definition axis_sdk.h:432
Node configuration uint32_t payload.
Definition axis_sdk.h:438
uint32_t value
uint32_t payload
Definition axis_sdk.h:439
Node configuration response packet. Only from firmware version 2.4.x onwards.
Definition axis_sdk.h:607
NodeConfigResponsePayload_t payload
Payload according to category.
Definition axis_sdk.h:611
AxisNodeConfigCategories category
Category of the configuration response.
Definition axis_sdk.h:610
Payload for NodeConfigResponse_t for Refract::AXIS::AxisNodeConfigCategories::Power.
Definition axis_sdk.h:589
uint8_t power
Transmission power in dBm.
Definition axis_sdk.h:591
uint8_t frequency
Transmission frequency in Hz.
Definition axis_sdk.h:593
IMUData.
Definition axis_sdk.h:306
Vector3_t linAccel
Linear acceleration (relative to node) in m/s2.
Definition axis_sdk.h:309
Quat_t quat
Orientation data.
Definition axis_sdk.h:308
bool on
Whether the node is on or not.
Definition axis_sdk.h:307
Node Info.
Definition axis_sdk.h:315
AxisNodePositions nodeIndex
Position of the node.
Definition axis_sdk.h:316
uint8_t mac[6]
MAC address of the node.
Definition axis_sdk.h:318
bool on
Whether the node is on or not. Only used for Refract::AXIS::AxisPacketTypes::PairedNodes.
Definition axis_sdk.h:317
Payload for Refract::AXIS::AxisDongleCommandTypes::NodeInfo.
Definition axis_sdk.h:691
NodeInfoCommandModes
Modes for NodeInfoCommandPayload_t.
Definition axis_sdk.h:694
@ Paired
Get info for paired nodes.
Definition axis_sdk.h:698
@ Visible
Get info for visible nodes (non-paired)
Definition axis_sdk.h:696
NodeInfoCommandModes mode
Node info mode.
Definition axis_sdk.h:701
Payload for Refract::AXIS::AxisDongleCommandTypes::NodeOperationMode.
Definition axis_sdk.h:745
AxisNodeOperationModes mode
Operation mode for the nodes.
Definition axis_sdk.h:749
Suit info for nodes.
Definition axis_sdk.h:407
uint8_t mac[6]
MAC address of the node.
Definition axis_sdk.h:409
Version_t firmware
Firmware version of the node.
Definition axis_sdk.h:410
AxisNodeOperationModes operationMode
Operation mode of the node.
Definition axis_sdk.h:411
bool on
Whether the node is on or not.
Definition axis_sdk.h:413
uint8_t batteryPercent
Battery level of the node in percent.
Definition axis_sdk.h:412
AxisNodePositions nodeIndex
Position of the node.
Definition axis_sdk.h:408
Version info for nodes.
Definition axis_sdk.h:389
Version_t hardware
Hardware version.
Definition axis_sdk.h:391
Version_t firmware
Software version.
Definition axis_sdk.h:392
AxisNodePositions nodeIndex
Position of the node.
Definition axis_sdk.h:390
Node info.
Definition axis_sdk.h:347
NodeInfo_t nodeInfo[AXIS_MAX_NODE_COUNT]
Array of NodeInfo. Be sure to check nodeCount.
Definition axis_sdk.h:349
uint8_t nodeCount
Number of nodes with data in the nodeInfo array.
Definition axis_sdk.h:348
Position and Orientation data.
Definition axis_sdk.h:298
Vector3_t pos
Position.
Definition axis_sdk.h:300
Quat_t quat
Orientation.
Definition axis_sdk.h:299
Quaternion.
Definition axis_sdk.h:279
float w
w / r
Definition axis_sdk.h:283
float y
y / j
Definition axis_sdk.h:281
float z
z / k
Definition axis_sdk.h:282
float x
x / i
Definition axis_sdk.h:280
Payload for Refract::AXIS::AxisDongleCommandTypes::Reboot.
Definition axis_sdk.h:654
RebootCommandModes
Modes for RebootCommandPayload_t.
Definition axis_sdk.h:657
@ Legs
Reboot only paired nodes on legs.
Definition axis_sdk.h:665
@ UpperBody
Reboot only paired nodes on upper body.
Definition axis_sdk.h:672
@ AllPaired
Reboot all paired nodes.
Definition axis_sdk.h:659
RebootCommandModes mode
Reboot mode.
Definition axis_sdk.h:675
SetWifi Response.
Definition axis_sdk.h:331
bool success
Whether SetWifi was successful or not.
Definition axis_sdk.h:333
uint8_t nodeCount
Number of nodes currently paired.
Definition axis_sdk.h:332
Orientation and position of joints. X is right, Y is up, -Z is forward.
Definition axis_sdk.h:617
PosQuat_t joints[AxisSkeletonJoints::SK_JOINT_COUNT]
Array of joint orientation and position. Use Refract::AXIS::AxisSkeletonJoints.
Definition axis_sdk.h:619
Tracker profile for SteamVR.
Definition axis_sdk.h:475
bool leftForearm
Whether left forearm tracker is on or off.
Definition axis_sdk.h:481
bool chest
Whether chest tracker is on or off.
Definition axis_sdk.h:482
bool leftCalf
Whether left calf tracker is on or off.
Definition axis_sdk.h:477
bool rightForearm
Whether right forearm tracker is on or off.
Definition axis_sdk.h:479
bool rightWrist
Whether right wrist tracker is on or off.
Definition axis_sdk.h:485
bool rightFoot
Whether right foot tracker is on or off.
Definition axis_sdk.h:483
bool rightUpperArm
Whether right upper arm tracker is on or off.
Definition axis_sdk.h:478
bool rightShoulder
Whether right shoulder tracker is on or off.
Definition axis_sdk.h:487
bool leftUpperArm
Whether left upper arm tracker is on or off.
Definition axis_sdk.h:480
bool hip
Whether hip tracker is on or off.
Definition axis_sdk.h:489
bool leftShoulder
Whether left shoulder tracker is on or off.
Definition axis_sdk.h:488
bool leftFoot
Whether left foot tracker is on or off.
Definition axis_sdk.h:484
bool leftWrist
Whether left wrist tracker is on or off.
Definition axis_sdk.h:486
bool rightCalf
Whether right calf tracker is on or off.
Definition axis_sdk.h:476
Suit info for nodes and receiver.
Definition axis_sdk.h:419
uint8_t nodeCount
Number of nodes with data in the nodesSuitInfo array.
Definition axis_sdk.h:420
NodeSuitInfo_t nodesSuitInfo[AXIS_MAX_NODE_COUNT]
Array of NodeSuitInfo_t. Be sure to check nodeCount.
Definition axis_sdk.h:421
uint8_t homeWifiChannel
Wifi channel the dongle should switch to after exiting pairing mode.
Definition axis_sdk.h:424
uint8_t currentWifiChannel
Wifi channel the dongle is currently on.
Definition axis_sdk.h:425
uint8_t dongleMAC[6]
MAC of the dongle.
Definition axis_sdk.h:422
DongleVersion_t dongleVersion
Version of the dongle.
Definition axis_sdk.h:423
Vector of 3 floats.
Definition axis_sdk.h:289
float z
z
Definition axis_sdk.h:292
float x
x
Definition axis_sdk.h:290
float y
y
Definition axis_sdk.h:291
Version info.
Definition axis_sdk.h:372
uint8_t patch
Patch revision number.
Definition axis_sdk.h:375
uint8_t major
Major revision number.
Definition axis_sdk.h:373
uint8_t minor
Minor revision number.
Definition axis_sdk.h:374
Version information in response to a GetVersions command.
Definition axis_sdk.h:398
DongleVersion_t dongleVersion
Version of the dongle.
Definition axis_sdk.h:399
NodeVersion_t nodeVersions[AXIS_MAX_NODE_COUNT]
Array of NodeVersion_t. Be sure to check nodeCount.
Definition axis_sdk.h:401
uint8_t nodeCount
Number of nodes with data in the nodeVersions array.
Definition axis_sdk.h:400
Payload for Refract::AXIS::AxisDongleCommandTypes::SetWifi.
Definition axis_sdk.h:681
uint8_t channel
Channel to change to.
Definition axis_sdk.h:685
GetWifi Response.
Definition axis_sdk.h:324
uint8_t wifiChannel
Wifi channel currently used.
Definition axis_sdk.h:325
AxisPacket. Check the packetType and access the respective member.
Definition axis_sdk.h:625
IMUData_t imuData
Definition axis_sdk.h:627
WifiRes_t wifiRes
Definition axis_sdk.h:636
SkeletonData_t skeletonData
Definition axis_sdk.h:648
NodeConfigResponse_t nodeConfigRes
Definition axis_sdk.h:646
DevPacket_t devPacket
Definition axis_sdk.h:644
SetWifiRes_t setWifiRes
Definition axis_sdk.h:634
SuitInfo_t suitInfo
Definition axis_sdk.h:642
BattInfo_t battInfo
Definition axis_sdk.h:638
NodesInfo_t nodesInfo
Definition axis_sdk.h:632
VersionsInfo_t versions
Definition axis_sdk.h:640
Payload of dongle command.
Definition axis_sdk.h:818
WifiCommandPayload_t wifi
Payload for Refract::AXIS::AxisDongleCommandTypes::SetWifi.
Definition axis_sdk.h:822
RebootCommandPayload_t reboot
Payload for Refract::AXIS::AxisDongleCommandTypes::Reboot.
Definition axis_sdk.h:820
BuzzCommandPayload_t buzz
Payload for Refract::AXIS::AxisDongleCommandTypes::Buzz.
Definition axis_sdk.h:836
LEDCommandPayload_t LED
Payload for Refract::AXIS::AxisDongleCommandTypes::LED.
Definition axis_sdk.h:838
NodeInfoCommandPayload_t nodeInfo
Payload for Refract::AXIS::AxisDongleCommandTypes::NodeInfo.
Definition axis_sdk.h:826
LEDMACCommandPayload_t LEDMAC
Payload for Refract::AXIS::AxisDongleCommandTypes::LEDMAC.
Definition axis_sdk.h:842
NodeInfo_t nodeAssignSingle
Payload for Refract::AXIS::AxisDongleCommandTypes::NodeAssignSingle.
Definition axis_sdk.h:828
NodesInfo_t nodeAssign
Payload for Refract::AXIS::AxisDongleCommandTypes::NodeAssign.
Definition axis_sdk.h:824
NodeOperationModeCommandPayload_t nodeOperationMode
Payload for Refract::AXIS::AxisDongleCommandTypes::NodeOperationMode.
Definition axis_sdk.h:834
NodeCalibrationCommandPayload_t calibration
Payload for Refract::AXIS::AxisDongleCommandTypes::Calibration.
Definition axis_sdk.h:832
NodeConfig_t nodeConfig
Payload for Refract::AXIS::AxisDongleCommandTypes::NodeConfigSet & Refract::AXIS::AxisDongleCommandTy...
Definition axis_sdk.h:830
BuzzMACCommandPayload_t buzzMAC
Payload for Refract::AXIS::AxisDongleCommandTypes::BuzzMAC.
Definition axis_sdk.h:840
Payload for Node configuration packet.
Definition axis_sdk.h:560
uint32_t value
Generic unsigned integer value.
Definition axis_sdk.h:568
Payload for Node configuration response packet.
Definition axis_sdk.h:599
NodeConfigResponsePowerPayload_t power
Payload Refract::AXIS::AxisNodeConfigCategories::Power.
Definition axis_sdk.h:601