Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

acts.cc File Reference

#include <assert.h>
#include <stdio.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <signal.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <socket_util.h>
#include "drivertable.h"
#include "driver.h"
#include "error.h"
#include "player.h"

Defines

#define ACTS_NUM_CHANNELS   32
#define ACTS_HEADER_SIZE_1_0   2*ACTS_NUM_CHANNELS
#define ACTS_HEADER_SIZE_1_2   4*ACTS_NUM_CHANNELS
#define ACTS_BLOB_SIZE_1_0   10
#define ACTS_BLOB_SIZE_1_2   16
#define ACTS_MAX_BLOBS_PER_CHANNEL   10
#define ACTS_VERSION_1_0_STRING   "1.0"
#define ACTS_VERSION_1_2_STRING   "1.2"
#define ACTS_VERSION_2_0_STRING   "2.0"
#define DEFAULT_ACTS_PORT   5001
#define DEFAULT_ACTS_VERSION   ACTS_VERSION_1_0
#define DEFAULT_ACTS_CONFIGFILE   "/usr/local/acts/actsconfig"
#define DEFAULT_ACTS_PATH   ""
#define DEFAULT_ACTS_WIDTH   160
#define DEFAULT_ACTS_HEIGHT   120
#define ACTS_MAX_CHANNELS   32
#define ACTS_MAX_BLOBS_PER_CHANNEL   10
#define ACTS_MAX_BLOBS   ACTS_MAX_CHANNELS * ACTS_MAX_BLOBS_PER_CHANNEL
#define ACTS_REQUEST_QUIT   '1'
#define ACTS_REQUEST_PACKET   '0'
#define ACTS_STARTUP_USEC   1000000 /* wait before first connection attempt */
#define ACTS_STARTUP_INTERVAL_USEC   100000 /* wait between connection attempts */
#define ACTS_STARTUP_CONN_LIMIT   60 /* number of attempts to make */

Typedefs

typedef acts_header_elt acts_header_elt_t
typedef acts_blob_elt acts_blob_elt_t
typedef acts_data acts_data_t

Enumerations

enum  acts_version_t { ACTS_VERSION_UNKNOWN = 0, ACTS_VERSION_1_0 = 1, ACTS_VERSION_1_2 = 2, ACTS_VERSION_2_0 = 3 }

Functions

DriverActs_Init (ConfigFile *cf, int section)
void Acts_Register (DriverTable *table)
void QuitACTS (void *visiondevice)


Define Documentation

#define ACTS_NUM_CHANNELS   32
 

#define ACTS_HEADER_SIZE_1_0   2*ACTS_NUM_CHANNELS
 

#define ACTS_HEADER_SIZE_1_2   4*ACTS_NUM_CHANNELS
 

#define ACTS_BLOB_SIZE_1_0   10
 

#define ACTS_BLOB_SIZE_1_2   16
 

#define ACTS_MAX_BLOBS_PER_CHANNEL   10
 

The maximum number of blobs for each color class.

#define ACTS_VERSION_1_0_STRING   "1.0"
 

#define ACTS_VERSION_1_2_STRING   "1.2"
 

#define ACTS_VERSION_2_0_STRING   "2.0"
 

#define DEFAULT_ACTS_PORT   5001
 

#define DEFAULT_ACTS_VERSION   ACTS_VERSION_1_0
 

#define DEFAULT_ACTS_CONFIGFILE   "/usr/local/acts/actsconfig"
 

#define DEFAULT_ACTS_PATH   ""
 

#define DEFAULT_ACTS_WIDTH   160
 

#define DEFAULT_ACTS_HEIGHT   120
 

#define ACTS_MAX_CHANNELS   32
 

The maximum number of unique color classes.

#define ACTS_MAX_BLOBS_PER_CHANNEL   10
 

The maximum number of blobs for each color class.

#define ACTS_MAX_BLOBS   ACTS_MAX_CHANNELS * ACTS_MAX_BLOBS_PER_CHANNEL
 

The maximum number of blobs in total.

#define ACTS_REQUEST_QUIT   '1'
 

#define ACTS_REQUEST_PACKET   '0'
 

#define ACTS_STARTUP_USEC   1000000 /* wait before first connection attempt */
 

#define ACTS_STARTUP_INTERVAL_USEC   100000 /* wait between connection attempts */
 

#define ACTS_STARTUP_CONN_LIMIT   60 /* number of attempts to make */
 


Typedef Documentation

typedef struct acts_header_elt acts_header_elt_t
 

Blob index entry.

typedef struct acts_blob_elt acts_blob_elt_t
 

Structure describing a single blob.

typedef struct acts_data acts_data_t
 

The list of detected blobs.


Enumeration Type Documentation

enum acts_version_t
 

Enumeration values:
ACTS_VERSION_UNKNOWN 
ACTS_VERSION_1_0 
ACTS_VERSION_1_2 
ACTS_VERSION_2_0 


Function Documentation

Driver* Acts_Init ConfigFile cf,
int  section
 

void Acts_Register DriverTable table  ) 
 

void QuitACTS void *  visiondevice  ) 
 


Generated on Tue May 3 14:15:37 2005 for Player by doxygen 1.3.6