opensdkAPI.cc File Reference

#include <opensdkAPI.h>
#include <OVirtualRobotComm.h>
#include <main.h>
#include <Platform.h>
#include <pthread.h>
#include <ctype.h>
#include <glob.h>
#include <sys/time.h>

Go to the source code of this file.

Functions

OStatus RegisterServiceEntry (const OServiceEntry &entry, const char *name)
OStatus _sendMessage (OServiceEntry entry, void *msg)
OStatus GetJointValue (OPrimitiveID id, OJointValue *value)
OStatus GetSensorValue (OPrimitiveID id, OSensorValue *value)
char * resolve_case_insensitive_path (const char *path)
sbyte GetTimeDifference (void)
OStatus SetTimeDifference (sbyte timeDifference)
OStatus SetTime (const OTime &time)
SystemTime getSystemTime (void)

Variables

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
time_t diffToSystem = 0
sbyte myTimeDif = 0


Function Documentation

OStatus _sendMessage OServiceEntry  entry,
void *  msg
 

send a message to a service entry

Definition at line 51 of file opensdkAPI.cc.

References perThreadStruct::queue, perThreadStruct::queue_mutex, perThreadStruct::sem, and ThreadsList.

Referenced by dnsGetHostByNameThreadFunc(), sendConnectMessages(), tcpCloseThreadFunc(), tcpConnectThreadFunc(), tcpListenThreadFunc(), tcpReceiveThreadFunc(), tcpSendThreadFunc(), udpCloseThreadFunc(), udpReceiveThreadFunc(), and udpSendThreadFunc().

OStatus GetJointValue OPrimitiveID  id,
OJointValue *  value
 

Definition at line 67 of file opensdkAPI.cc.

References VirtualRobotComm_get_sensor_reading().

Referenced by LMasterRSlave::AdjustDiffJointValue(), LMasterRSlave7::AdjustDiffJointValue(), MovingHead::AdjustDiffJointValue(), MovingHead7::AdjustDiffJointValue(), MovingLegs::AdjustDiffJointValue(), MovingLegs7::AdjustDiffJointValue(), NeutralAgent::AdjustDiffJointValue(), NeutralAgent7::AdjustDiffJointValue(), PIDControl::AdjustDiffJointValue(), PIDControl7::AdjustDiffJointValue(), LMasterRSlave::MoveToBroadBase(), LMasterRSlave7::MoveToBroadBase(), MovingLegs::MoveToBroadBase(), MovingLegs7::MoveToBroadBase(), NeutralAgent::MoveToBroadBase(), NeutralAgent7::MoveToBroadBase(), PIDControl::MoveToBroadBase(), PIDControl7::MoveToBroadBase(), MovingHead::MoveToZeroPos(), and MovingHead7::MoveToZeroPos().

OStatus OPENR::GetSensorValue OPrimitiveID  primitiveID,
OSensorValue *  value
 

Definition at line 75 of file opensdkAPI.cc.

References VirtualRobotComm_get_sensor_reading().

Referenced by ImageObserver::Notify().

SystemTime getSystemTime void   ) 
 

Definition at line 154 of file opensdkAPI.cc.

References diffToSystem, and TIME_DIFF_SYSTEM.

Referenced by ConvertToRelativeTime(), ConvertToSystemTime(), and SetTime().

sbyte GetTimeDifference void   ) 
 

Definition at line 125 of file opensdkAPI.cc.

References sbyte.

Referenced by NTP::ReceiveCont().

OStatus OObject::RegisterServiceEntry const OServiceEntry &  entry,
const char *  name
 

register a service (associate a name with an entry)

Definition at line 34 of file opensdkAPI.cc.

References _objectsEntryList, MOD_DATA, and mutex.

Referenced by VirtualRobotComm(), VirtualRobotComm_image(), and VirtualRobotComm_sensor().

char* resolve_case_insensitive_path const char *  path  ) 
 

resolve a case insensitive path. returns a dinamically allocated string, which you are responsible to free()

Definition at line 84 of file opensdkAPI.cc.

Referenced by __wrap_fopen(), __wrap_open(), load_module(), parse_connect_cfg(), and parse_object_cfg().

OStatus OPENR::SetTime const OTime &  time  ) 
 

Definition at line 142 of file opensdkAPI.cc.

References diffToSystem, getSystemTime(), and SetTimeDifference().

Referenced by NTP::ReceiveCont().

OStatus OPENR::SetTimeDifference sbyte  timeDifference  ) 
 

Definition at line 131 of file opensdkAPI.cc.

References myTimeDif.

Referenced by SetTime().


Variable Documentation

time_t diffToSystem = 0 [static]
 

Definition at line 121 of file opensdkAPI.cc.

Referenced by getSystemTime(), and SetTime().

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER [static]
 

Definition at line 31 of file opensdkAPI.cc.

Referenced by RegisterServiceEntry().

sbyte myTimeDif = 0 [static]
 

Definition at line 122 of file opensdkAPI.cc.

Referenced by SetTimeDifference().


Generated on Sun Dec 2 23:04:32 2007 for openSDK by  doxygen 1.3.9.1