1 #ifndef H_CORESDKWRAPPER
2 #define H_CORESDKWRAPPER
14 #include "CoreSdkWrapperTypes.h"
21 #ifdef CORESDKWRAPPER_EXPORTS
22 #define CORESDK_API __declspec(dllexport)
24 #define CORESDK_API __declspec(dllimport)
26 #elif defined(__linux__)
29 #error Unrecognised platform.
82 CORESDK_API
WrapperReturnCode_t CoreSdk_RegisterCallbackForOnConnect(ConnectedToCoreCallback_t a_ConnectedCallback);
83 CORESDK_API
WrapperReturnCode_t CoreSdk_RegisterCallbackForOnDisconnect(DisconnectedFromCoreCallback_t a_DisconnectedCallback);
209 #endif // #ifndef H_CORESDKWRAPPER
uint32_t WrapperReturnCode_t
The type used for the return values of SDK wrapper functions.
Definition: CoreSdkWrapperTypes.h:148
CORESDK_API WrapperReturnCode_t CoreSdk_GetNumberOfHapticsDongles(uint32_t &a_NumberOfHapticsDongles)
Get the number of available haptics dongles.
CORESDK_API WrapperReturnCode_t CoreSdk_GetAvailableHostsFound(ManusHost *a_AvailableHostsFound, const uint32_t a_NumberOfHostsThatFitInArray)
Fill the given array with information on the hosts that were found.
CORESDK_API WrapperReturnCode_t CoreSdk_GetHandTypeOfGlove(uint32_t a_GloveId, HandType &a_HandType)
Get the hand type of the glove with the given glove ID.
CORESDK_API WrapperReturnCode_t CoreSdk_StartLookingForHosts(void)
Start a background task that looks for hosts running Manus Core.
CORESDK_API WrapperReturnCode_t CoreSdk_GetDataForPolygonSkeleton(uint32_t a_PolygonSkeletonId, PolygonSkeletonData &a_PolygonSkeletonData)
Get data for the given Polygon skeleton ID.
Stores a single version string.
Definition: CoreSdkWrapperTypes.h:311
CORESDK_API WrapperReturnCode_t CoreSdk_GetDataForGlove_UsingGloveId(uint32_t a_GloveId, GloveData &a_GloveData)
Get data for the glove with the given glove ID.
CORESDK_API WrapperReturnCode_t CoreSdk_SendDataForTrackers(const TrackerData *a_TrackerData, uint32_t a_NumberOfTrackers)
Send data to Core for a tracker.
CORESDK_API WrapperReturnCode_t CoreSdk_GetNumberOfAvailablePolygonUsers(uint32_t &a_NumberOfAvailableUsers)
Get the number of available Polygon users.
CORESDK_API WrapperReturnCode_t CoreSdk_RemovePolygonSkeleton(const RemoveSkeletonArgs &a_RemoveSkeletonArgs)
Remove the skeleton described by the arguments.
All data for a single glove.
Definition: CoreSdkWrapperTypes.h:409
CORESDK_API WrapperReturnCode_t CoreSdk_ShutDown(void)
Shut down the wrapper. This needs to be called last.
CORESDK_API WrapperReturnCode_t CoreSdk_GetNumberOfUsers(uint32_t &a_NumberOfUsers)
Get number of users. (that were created in the dashboard)
CORESDK_API WrapperReturnCode_t CoreSdk_GetIdOfFirstAvailablePolygonSkeleton(uint32_t &a_PolygonSkeletonId)
Get the ID of the first Polygon skeleton available.
CORESDK_API WrapperReturnCode_t CoreSdk_GetIdsOfAvailablePolygonUsers(int32_t *a_IdsOfAvailablePolygonUsers, uint32_t a_NumberOfIdsThatFitInArray)
Fill the given array with the IDs of all available Polygon users.
CORESDK_API WrapperReturnCode_t CoreSdk_IsPolygonSkeletonIdValid(uint32_t a_PolygonSkeletonId, bool &a_IsValid)
Check if the given Polygon skeleton ID is valid.
HandType
Used to tell what hand is being referred to.
Definition: CoreSdkWrapperTypes.h:152
CORESDK_API WrapperReturnCode_t CoreSdk_WasDllBuiltInDebugConfiguration(bool &a_WasBuiltInDebugConfiguration)
Check if the wrapper DLL was built in the debug configuration.
CORESDK_API WrapperReturnCode_t CoreSdk_ConnectToHost(ManusHost a_Host)
Connect to a host using the given host information.
CORESDK_API WrapperReturnCode_t CoreSdk_GetIdsOfAvailablePolygonSkeletons(uint32_t *a_IdsOfAvailablePolygonSkeletons, uint32_t a_NumberOfIdsThatFitInArray)
Fill the given array with the IDs of available Polygon skeletons.
ClientType
Used to tell what client is using the wrapper.
Definition: CoreSdkWrapperTypes.h:169
CORESDK_API WrapperReturnCode_t CoreSdk_GetDataForGlove_UsingHandType(HandType a_HandType, GloveData &a_GloveData)
Get data for the first available glove with the given hand type.
All the tracker data that can be sent or received.
Definition: CoreSdkWrapperTypes.h:588
Contains information for connecting to a host running Manus Core.
Definition: CoreSdkWrapperTypes.h:615
CORESDK_API WrapperReturnCode_t CoreSdk_GetDataForTracker_UsingTrackerId(TrackerId a_TrackerId, TrackerData &a_TrackerData)
Get data for the tracker with the given tracker ID.
CORESDK_API WrapperReturnCode_t CoreSdk_GetDataForTracker_UsingIndexAndType(uint32_t a_UserIndex, uint32_t a_TrackerType, TrackerData &a_TrackerData)
Get data for the tracker with the given Polygon user index and type.
Contains everything needed to set a Polygon target.
Definition: CoreSdkWrapperTypes.h:532
CORESDK_API WrapperReturnCode_t CoreSdk_GetNumberOfAvailablePolygonSkeletons(uint32_t &a_NumberOfAvailablePolygonSkeletons)
Get the number of available Polygon skeletons.
CORESDK_API WrapperReturnCode_t CoreSdk_GetNumberOfAvailableTrackersForUserIndex(uint32_t &a_NumberOfAvailableTrackers, uint32_t a_UserIndex)
Get the number of available trackers in a user.
Data required for the removal of a skeleton.
Definition: CoreSdkWrapperTypes.h:572
CORESDK_API WrapperReturnCode_t CoreSdk_GetIdsOfAvailableTrackersForUserIndex(TrackerId *a_IdsOfAvailableTrackers, uint32_t a_UserIndex, uint32_t a_NumberOfIdsThatFitInArray)
Fill the given array with the IDs of available trackers in a user.
CORESDK_API WrapperReturnCode_t CoreSdk_GetGloveIdOfUser_UsingUserIndex(uint32_t a_UserIndex, HandType a_HandType, uint32_t &a_GloveId)
Get a glove ID for the given hand of the given Polygon user.
CORESDK_API WrapperReturnCode_t CoreSdk_AddOrUpdatePolygonSkeleton(const PolygonSkeletonData &a_PolygonSkeletonData)
Send skeleton data to Core. If new, the skeleton will be added.
CORESDK_API WrapperReturnCode_t CoreSdk_Initialise(ClientType a_TypeOfClient)
Initialise the wrapper. Call this before using the wrapper.
CORESDK_API WrapperReturnCode_t CoreSdk_GetNumberOfAvailableTrackers(uint32_t &a_NumberOfAvailableTrackers)
Get the number of available trackers.
CORESDK_API WrapperReturnCode_t CoreSdk_StopLookingForHosts(void)
Stop the background task that looks for hosts running Manus Core.
Stores the name of a tracker.
Definition: CoreSdkWrapperTypes.h:582
CORESDK_API WrapperReturnCode_t CoreSdk_GetIdOfFirstAvailableGloveOfType(HandType a_HandType, uint32_t &a_GloveId)
Get the glove ID of the first available glove of the given type.
CORESDK_API WrapperReturnCode_t CoreSdk_SetPolygonSkeletonRetargetingSettings(const RetargetingSettingsArgs &a_RetargetingSettingsArgs)
Set the retargeting settings for the given Polygon skeleton.
CORESDK_API WrapperReturnCode_t CoreSdk_GetHapticsDongleIds(uint32_t *a_HapticsDongleIds, uint32_t a_NumberOfIdsThatFitInArray)
Fill the given array with the IDs of all available haptics dongles.
CORESDK_API WrapperReturnCode_t CoreSdk_SetPolygonSkeletonTarget(const PolygonTargetArgs &a_SetSkeletonTargetArgs)
Set the target for the given Polygon skeleton.
CORESDK_API WrapperReturnCode_t CoreSdk_VibrateFingers(uint32_t a_DongleId, HandType a_HandType, const float *a_Powers)
Vibrate the motor on the given finger of a haptic glove.
CORESDK_API WrapperReturnCode_t CoreSdk_WasConnectionLostDueToTimeout(bool &a_WasConnectionLost)
Check if the connection to Manus Core was lost due to a timeout.
CORESDK_API WrapperReturnCode_t CoreSdk_GetIdsOfAvailableTrackers(TrackerId *a_IdsOfAvailableTrackers, uint32_t a_NumberOfIdsThatFitInArray)
Fill the given array with the IDs of available trackers.
A wrapper for Polygon retargeting settings.
Definition: CoreSdkWrapperTypes.h:477
CORESDK_API WrapperReturnCode_t CoreSdk_ConnectLocally(void)
Connect to Manus Core on the same device the wrapper is running on.
CORESDK_API WrapperReturnCode_t CoreSdk_GetIdsOfAvailableGloves(uint32_t *a_IdsOfAvailableGloves, uint32_t a_NumberOfIdsThatFitInArray)
Fill the given array with the IDs of all available gloves.
CORESDK_API WrapperReturnCode_t CoreSdk_GetNumberOfAvailableGloves(uint32_t &a_NumberOfAvailableGloves)
Get the number of gloves that are available.
All the skeleton data that can be sent to or received from Polygon.
Definition: CoreSdkWrapperTypes.h:539
CORESDK_API WrapperReturnCode_t CoreSdk_VibrateWristOfGlove(uint32_t a_GloveId, float a_UnitStrength, uint16_t a_DurationInMilliseconds)
Vibrate the motor on the back of the glove.
CORESDK_API WrapperReturnCode_t CoreSdk_GetNumberOfAvailableHostsFound(uint32_t &a_NumberOfAvailableHostsFound)
Get the number of hosts running Manus Core that were found.