Platform.h File Reference

#include <unistd.h>

Go to the source code of this file.

Defines

#define opensdk_yield()
#define ROBOTDESIGN   "ERS-7"
#define AUDIO_SERVER_SOCKET   "audioSocket.tmp"
#define ACTUATORS_SERVER_SOCKET   "actuatorsSocket.tmp"
#define SENSORS_SERVER_SOCKET   "sensorsSocket.tmp"
#define IMAGE_SERVER_SOCKET   "imagesSocket.tmp"

Variables

const int TIME_DIFF_SYSTEM = 946684800
const int MAX_SHUTDOWN_TIME = 10
const unsigned long USECONDS_TICK = 8000
const unsigned int NUM_TICKS_TO_SEND_DATA = 4
const unsigned int IMG_WIDTH = 208
const unsigned int IMG_HEIGHT = 160
const unsigned int IMG_SIZE = (IMG_WIDTH * IMG_HEIGHT * 3)
const unsigned int IMG_LAYERS = 4


Define Documentation

#define ACTUATORS_SERVER_SOCKET   "actuatorsSocket.tmp"
 

Definition at line 77 of file Platform.h.

Referenced by connect_to_actuators_server(), connect_to_opensdk_actuator(), and main().

#define AUDIO_SERVER_SOCKET   "audioSocket.tmp"
 

Definition at line 76 of file Platform.h.

#define IMAGE_SERVER_SOCKET   "imagesSocket.tmp"
 

Definition at line 79 of file Platform.h.

Referenced by read_usarsim_images().

 
#define opensdk_yield  ) 
 

Definition at line 48 of file Platform.h.

Referenced by OpenSdkThread::cleanThreadPool(), cleanup(), connect_to_opensdk_sensor(), main(), VirtualRobotComm(), VirtualRobotComm_image(), and VirtualRobotComm_sensor().

#define ROBOTDESIGN   "ERS-7"
 

Definition at line 59 of file Platform.h.

Referenced by getNonEmptyLine(), and main().

#define SENSORS_SERVER_SOCKET   "sensorsSocket.tmp"
 

Definition at line 78 of file Platform.h.

Referenced by main().


Variable Documentation

const unsigned int IMG_HEIGHT = 160
 

Definition at line 68 of file Platform.h.

Referenced by read_usarsim_images().

const unsigned int IMG_LAYERS = 4
 

Definition at line 72 of file Platform.h.

Referenced by process_images().

const unsigned int IMG_SIZE = (IMG_WIDTH * IMG_HEIGHT * 3)
 

Definition at line 71 of file Platform.h.

Referenced by process_images(), and read_usarsim_images().

const unsigned int IMG_WIDTH = 208
 

Definition at line 67 of file Platform.h.

Referenced by read_usarsim_images().

const int MAX_SHUTDOWN_TIME = 10
 

time to wait for shutdown (in seconds)

Definition at line 30 of file Platform.h.

const unsigned int NUM_TICKS_TO_SEND_DATA = 4
 

number of ticks between messages to sensor data observers

Definition at line 36 of file Platform.h.

const int TIME_DIFF_SYSTEM = 946684800
 

the time returned by the time() system call is the number of seconds since 1 Jan 1970 while the AIBO counts the time since 1 Jan 2000. This is the diffence in seconds between them

Definition at line 27 of file Platform.h.

Referenced by getSystemTime().

const unsigned long USECONDS_TICK = 8000
 

time (in microseconds) between each tick (used to update of OVirtualRobotComm data

Definition at line 33 of file Platform.h.

Referenced by VirtualRobotComm(), and VirtualRobotComm_sensor().


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