opensdkAPI.h File Reference

#include <map>
#include <vector>
#include <string>
#include <pthread.h>
#include <OPENR/OPENR.h>
#include <OPENR/ODataFormats.h>
#include <SystemTime.h>
#include <OPENR/OTime.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_key_t perThreadKey
bool __in_shutdown
bool __DoInitCompleted
bool __DoStopCompleted


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 PIDControl7::AdjustDiffJointValue(), PIDControl::AdjustDiffJointValue(), NeutralAgent7::AdjustDiffJointValue(), NeutralAgent::AdjustDiffJointValue(), MovingLegs7::AdjustDiffJointValue(), MovingLegs::AdjustDiffJointValue(), MovingHead7::AdjustDiffJointValue(), MovingHead::AdjustDiffJointValue(), LMasterRSlave7::AdjustDiffJointValue(), LMasterRSlave::AdjustDiffJointValue(), PIDControl7::MoveToBroadBase(), PIDControl::MoveToBroadBase(), NeutralAgent7::MoveToBroadBase(), NeutralAgent::MoveToBroadBase(), MovingLegs7::MoveToBroadBase(), MovingLegs::MoveToBroadBase(), LMasterRSlave7::MoveToBroadBase(), LMasterRSlave::MoveToBroadBase(), MovingHead7::MoveToZeroPos(), and MovingHead::MoveToZeroPos().

OStatus GetSensorValue OPrimitiveID  id,
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 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 SetTime const OTime &  time  ) 
 

Definition at line 142 of file opensdkAPI.cc.

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

Referenced by NTP::ReceiveCont().

OStatus SetTimeDifference sbyte  timeDifference  ) 
 

Definition at line 131 of file opensdkAPI.cc.

References myTimeDif.

Referenced by SetTime().


Variable Documentation

bool __DoInitCompleted
 

true if all objects have already run its DoInit() method

Definition at line 85 of file loader/main.cc.

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

bool __DoStopCompleted
 

true if all objects have already run its DoStop() method

Definition at line 88 of file loader/main.cc.

Referenced by cleanup().

bool __in_shutdown
 

whether we in are in shutdown proccess. if true, modules start the shutdown procedures automatically

Definition at line 82 of file loader/main.cc.

Referenced by cleanup().

pthread_key_t perThreadKey
 

thread specific data

Definition at line 79 of file loader/main.cc.

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


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