Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

RobotFlow::CANON_VCC4 Class Reference

Inheritance diagram for RobotFlow::CANON_VCC4:

Inheritance graph
Collaboration diagram for RobotFlow::CANON_VCC4:

Collaboration graph

Public Member Functions

 CANON_VCC4 (string nodeName, ParameterSet params)
char hexToASCII (const char value)
void Absolute_movement (int pan_speed, int tilt_speed, int pan_position, int tilt_position)
void Relative_movement (int pan_speed, int tilt_speed, int pan_position, int tilt_position)
void Zoom (int zoom_position)
void inquiry (int &pan_position, int &tilt_position, int &zoom_position)
void calculate (int output_id, int count, Buffer &out)
void initialize_camera ()
virtual ObjectRef getOutput (int output_id, int count)
virtual void request (int outputID, const ParameterSet &req)
virtual void initialize ()
virtual void reset ()
virtual int addOutput (const std::string &outputName)
virtual int addInput (const std::string &inputName)
virtual void initializeBuffers ()
virtual void performRequests ()
virtual ObjectRef getOutputNamed (const std::string &outputName, int count)
virtual void connectToNode (std::string in, Node *inputNode, std::string out)
virtual bool hasOutput (int output_id) const
ObjectRef getInput (int inputID, int count)
virtual void stop ()
virtual void cleanupNotify ()
std::string getName ()
virtual void verifyConnect ()
void printOn (std::ostream &out=std::cout) const
void setUINode (UINode *_uinode)
void ref ()
void unref ()
int unique ()
virtual void destroy ()
virtual void serialize (std::ostream &out) const
virtual void unserialize (std::istream &in)
virtual void doesNotUnderstand (std::string method)
virtual bool isNil () const
virtual void prettyPrint (std::ostream &out=std::cout) const
virtual void readFrom (std::istream &in=std::cin)
virtual ObjectRef clone ()
virtual std::string className () const

Static Public Member Functions

static int addFactory (const std::string &factoryName, _NodeFactory *const factory)
static int addXPM (const std::string &nodeName, char **XPMData)
static char ** getXPM (const std::string &nodeName)
static _NodeFactory * getFactoryNamed (const std::string &name)
static std::map< std::string,
_NodeFactory * > & 
factoryDictionary ()
static std::vector< std::string > & nodeInfo ()
static std::map< std::string,
char ** > & 
XPMDictionary ()
static int addNodeInfo (const std::string &info)
static ObjectRef newObject (const std::string &objType)
static int addObjectType (const std::string &objType, _ObjectFactory *factory)
static std::map< std::string,
_ObjectFactory * > & 
ObjectFactoryDictionary ()
static TypeMap< _ObjectFactory * > & TypeidDictionary ()

Protected Member Functions

virtual void connectToNode (unsigned int in, Node *inputNode, unsigned int out)
virtual std::vector< NodeInput > & getInputs ()
virtual int translateInput (std::string inputName)
virtual int translateOutput (std::string inputName)
virtual void rt_assert (bool cond, std::string message="", char *_file="unknown", int _line=0)
virtual void construct_assert (bool cond, std::string message="", char *_file="unknown", int _line=0)
virtual void throw_error (bool send_ptr, std::string message, char *_file, int _line)

Protected Attributes

int processCount
std::vector< OutputCacheInfo > outputs
std::vector< InputCacheInfo > inputsCache
bool inOrder
std::string name
std::vector< NodeInput > inputs
std::vector< std::string > outputNames
ParameterSet parameters
UINode * uinode
AtomicCounter ref_count

Private Member Functions

void Send ()
void Receive ()

Private Attributes

int panAbsolutePosition
int tiltAbsolutePosition
int zoomPosition
int panRelativePosition
int tiltRelativePosition
int m_panSpeed
int m_tiltSpeed
int fd
int m_killed
int m_pan_position
int m_tilt_position
int m_zoom_position
char m_devNum
pthread_t Sending_thread
pthread_t Receiving_thread
pthread_mutex_t m_list_lock
pseudosem_t m_semaphore
list< string > m_sending
list< string > m_received
int Pan_output
int Tilt_output
int Zoom_output
string m_serial_port


void * vcc4_receive_thread (void *myPtz)
void * vcc4_send_thread (void *myPtz)
friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::CANON_VCC4::CANON_VCC4 string  nodeName,
ParameterSet  params

RobotFlow::CANON_VCC4::~CANON_VCC4  )  [inline]

Member Function Documentation

void RobotFlow::CANON_VCC4::Absolute_movement int  pan_speed,
int  tilt_speed,
int  pan_position,
int  tilt_position

void RobotFlow::CANON_VCC4::calculate int  output_id,
int  count,
Buffer out
[inline, virtual]

Implements FD::BufferedNode.

char RobotFlow::CANON_VCC4::hexToASCII const char  value  )  [inline]

void RobotFlow::CANON_VCC4::initialize_camera  )  [inline]

void RobotFlow::CANON_VCC4::inquiry int &  pan_position,
int &  tilt_position,
int &  zoom_position

void RobotFlow::CANON_VCC4::Receive  )  [inline, private]

void RobotFlow::CANON_VCC4::Relative_movement int  pan_speed,
int  tilt_speed,
int  pan_position,
int  tilt_position

void RobotFlow::CANON_VCC4::Send  )  [inline, private]

void RobotFlow::CANON_VCC4::Zoom int  zoom_position  )  [inline]

Friends And Related Function Documentation

void* vcc4_receive_thread void *  myPtz  )  [friend]

void* vcc4_send_thread void *  myPtz  )  [friend]

Field Documentation

int RobotFlow::CANON_VCC4::fd [private]

char RobotFlow::CANON_VCC4::m_devNum [private]

int RobotFlow::CANON_VCC4::m_killed [private]

pthread_mutex_t RobotFlow::CANON_VCC4::m_list_lock [private]

int RobotFlow::CANON_VCC4::m_pan_position [private]

int RobotFlow::CANON_VCC4::m_panSpeed [private]

list<string> RobotFlow::CANON_VCC4::m_received [private]

pseudosem_t RobotFlow::CANON_VCC4::m_semaphore [private]

list<string> RobotFlow::CANON_VCC4::m_sending [private]

string RobotFlow::CANON_VCC4::m_serial_port [private]

int RobotFlow::CANON_VCC4::m_tilt_position [private]

int RobotFlow::CANON_VCC4::m_tiltSpeed [private]

int RobotFlow::CANON_VCC4::m_zoom_position [private]

int RobotFlow::CANON_VCC4::Pan_output [private]

int RobotFlow::CANON_VCC4::panAbsolutePosition [private]

int RobotFlow::CANON_VCC4::panRelativePosition [private]

pthread_t RobotFlow::CANON_VCC4::Receiving_thread [private]

pthread_t RobotFlow::CANON_VCC4::Sending_thread [private]

int RobotFlow::CANON_VCC4::Tilt_output [private]

int RobotFlow::CANON_VCC4::tiltAbsolutePosition [private]

int RobotFlow::CANON_VCC4::tiltRelativePosition [private]

int RobotFlow::CANON_VCC4::Zoom_output [private]

int RobotFlow::CANON_VCC4::zoomPosition [private]

The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:36:28 2005 for RobotFlow by  doxygen 1.4.4