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

RobotFlow::SNCRZ30RS232 Class Reference

Inheritance diagram for RobotFlow::SNCRZ30RS232:

Inheritance graph
[legend]
Collaboration diagram for RobotFlow::SNCRZ30RS232:

Collaboration graph
[legend]

Public Member Functions

 SNCRZ30RS232 (string nodeName, ParameterSet params)
void Analyse_received_message (void)
void Add_message_to_send (string msg_to_send, bool front=false)
void cleanup (void)
void init_wb (void)
void init_pan_tilt (void)
void init_clear_if (void)
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 data)
void inquiry_pan_tilt ()
void inquiry_zoom ()
void calculate (int output_id, int count, Buffer &out)
 ~SNCRZ30RS232 ()
void auto_pan_tilt_speed_off ()
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 zoomAbsolutePosition
int zoomRelativePosition
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
bool m_isInit
pthread_t Sending_thread
pthread_t Receiving_thread
pthread_mutex_t m_list_lock
pthread_mutex_t m_list_rec_lock
pthread_mutex_t m_ack_lock
pseudosem_t m_semaphore
pseudosem_t m_buffer_empty
list< string > m_sending
list< string > m_received
int inquiry_pan_tilt_rate
int inquiry_zoom_rate
int Pan_output
int Tilt_output
int Zoom_output
string m_serial_port
int destructor_loop_counter

Friends

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

Constructor & Destructor Documentation

RobotFlow::SNCRZ30RS232::SNCRZ30RS232 string  nodeName,
ParameterSet  params
[inline]
 

RobotFlow::SNCRZ30RS232::~SNCRZ30RS232  )  [inline]
 


Member Function Documentation

void RobotFlow::SNCRZ30RS232::Absolute_movement int  pan_speed,
int  tilt_speed,
int  pan_position,
int  tilt_position
[inline]
 

void RobotFlow::SNCRZ30RS232::Add_message_to_send string  msg_to_send,
bool  front = false
[inline]
 

void RobotFlow::SNCRZ30RS232::Analyse_received_message void   )  [inline]
 

void RobotFlow::SNCRZ30RS232::auto_pan_tilt_speed_off  )  [inline]
 

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

Implements FD::BufferedNode.

void RobotFlow::SNCRZ30RS232::cleanup void   )  [inline]
 

void RobotFlow::SNCRZ30RS232::init_clear_if void   )  [inline]
 

void RobotFlow::SNCRZ30RS232::init_pan_tilt void   )  [inline]
 

void RobotFlow::SNCRZ30RS232::init_wb void   )  [inline]
 

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

void RobotFlow::SNCRZ30RS232::inquiry_pan_tilt  )  [inline]
 

void RobotFlow::SNCRZ30RS232::inquiry_zoom  )  [inline]
 

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

void RobotFlow::SNCRZ30RS232::Relative_movement int  pan_speed,
int  tilt_speed,
int  pan_position,
int  tilt_position
[inline]
 

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

void RobotFlow::SNCRZ30RS232::Zoom int  data  )  [inline]
 


Friends And Related Function Documentation

void* sncrz30_receive_thread void *  myPtz  )  [friend]
 

void* sncrz30_send_thread void *  myPtz  )  [friend]
 


Field Documentation

int RobotFlow::SNCRZ30RS232::destructor_loop_counter [private]
 

int RobotFlow::SNCRZ30RS232::fd [private]
 

int RobotFlow::SNCRZ30RS232::inquiry_pan_tilt_rate [private]
 

int RobotFlow::SNCRZ30RS232::inquiry_zoom_rate [private]
 

pthread_mutex_t RobotFlow::SNCRZ30RS232::m_ack_lock [private]
 

pseudosem_t RobotFlow::SNCRZ30RS232::m_buffer_empty [private]
 

bool RobotFlow::SNCRZ30RS232::m_isInit [private]
 

int RobotFlow::SNCRZ30RS232::m_killed [private]
 

pthread_mutex_t RobotFlow::SNCRZ30RS232::m_list_lock [private]
 

pthread_mutex_t RobotFlow::SNCRZ30RS232::m_list_rec_lock [private]
 

int RobotFlow::SNCRZ30RS232::m_pan_position [private]
 

int RobotFlow::SNCRZ30RS232::m_panSpeed [private]
 

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

pseudosem_t RobotFlow::SNCRZ30RS232::m_semaphore [private]
 

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

string RobotFlow::SNCRZ30RS232::m_serial_port [private]
 

int RobotFlow::SNCRZ30RS232::m_tilt_position [private]
 

int RobotFlow::SNCRZ30RS232::m_tiltSpeed [private]
 

int RobotFlow::SNCRZ30RS232::m_zoom_position [private]
 

int RobotFlow::SNCRZ30RS232::Pan_output [private]
 

int RobotFlow::SNCRZ30RS232::panAbsolutePosition [private]
 

int RobotFlow::SNCRZ30RS232::panRelativePosition [private]
 

pthread_t RobotFlow::SNCRZ30RS232::Receiving_thread [private]
 

pthread_t RobotFlow::SNCRZ30RS232::Sending_thread [private]
 

int RobotFlow::SNCRZ30RS232::Tilt_output [private]
 

int RobotFlow::SNCRZ30RS232::tiltAbsolutePosition [private]
 

int RobotFlow::SNCRZ30RS232::tiltRelativePosition [private]
 

int RobotFlow::SNCRZ30RS232::Zoom_output [private]
 

int RobotFlow::SNCRZ30RS232::zoomAbsolutePosition [private]
 

int RobotFlow::SNCRZ30RS232::zoomRelativePosition [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