00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __opensdkAPI_h__
00023 #define __opensdkAPI_h__
00024
00025 #include <map>
00026 #include <vector>
00027 #include <string>
00028 #include <pthread.h>
00029 #include <OPENR/OPENR.h>
00030 #include <OPENR/ODataFormats.h>
00031 #include <SystemTime.h>
00032 #include <OPENR/OTime.h>
00033
00034 extern pthread_key_t perThreadKey;
00035 extern bool __in_shutdown;
00036 extern bool __DoInitCompleted;
00037 extern bool __DoStopCompleted;
00038
00039
00040 OStatus RegisterServiceEntry(const OServiceEntry& entry, const char *name);
00041 OStatus _sendMessage(OServiceEntry entry, void *msg);
00042 OStatus GetJointValue(OPrimitiveID id, OJointValue* value);
00043 OStatus GetSensorValue(OPrimitiveID id, OSensorValue* value);
00044 char* resolve_case_insensitive_path(const char *path);
00045 sbyte GetTimeDifference(void);
00046 OStatus SetTimeDifference(sbyte timeDifference);
00047 OStatus SetTime(const OTime& time);
00048 SystemTime getSystemTime(void);
00049
00050 #endif