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

RobotFlow::SNCRZ30 Class Reference

#include <SNCRZ30.h>

Inheritance diagram for RobotFlow::SNCRZ30:

Inheritance graph
Collaboration diagram for RobotFlow::SNCRZ30:

Collaboration graph

Public Member Functions

 SNCRZ30 (std::string nodeName, FD::ParameterSet params)
 ~SNCRZ30 ()
 SNCRZ30 (const std::string &host, int port=80)
virtual void calculate (int output_id, int count, FD::Buffer &out)
int connect (const std::string &host)
void send_pan_tilt_absolute_position (unsigned int pan_speed, int pan_position, unsigned int tilt_speed, int tilt_position)
void send_pan_tilt_relative_position (unsigned int pan_speed, int pan_position, unsigned int tilt_speed, int tilt_position)
void send_zoom_position (unsigned int zoom_position)
void send_focus_position (unsigned int focus_position)
void send_auto_pan_tilt_speed_off ()
void reset ()
void home ()
virtual void initialize ()
void inquiry_pan_tilt (int &pan_position, int &tilt_position)
void inquiry_zoom (int &zoom_position)
virtual ObjectRef getOutput (int output_id, int count)
virtual void request (int outputID, const ParameterSet &req)
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

int process_image_data (char *data, int data_size)
int single_grab ()
int update_data ()

Private Attributes

FD::network_socket m_imageSocket
FD::network_socket m_dataSocket
int m_panAbsInID
int m_tiltAbsInID
int m_panRelInID
int m_tiltRelInID
int m_zoomAbsInID
int m_zoomRelInID
int m_panAbsOutID
int m_tiltAbsOutID
int m_zoomOutID
int m_imageOutID
std::string m_host
int m_port
int m_panSpeed
int m_tiltSpeed
int m_transmitSpeed
bool m_continuous
bool m_wait_reply
Image m_image
int m_currentPan
int m_currentTilt
int m_currentZoom
bool m_inquiryPosition


friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::SNCRZ30::SNCRZ30 std::string  nodeName,
FD::ParameterSet  params

RobotFlow::SNCRZ30::~SNCRZ30  ) 

RobotFlow::SNCRZ30::SNCRZ30 const std::string &  host,
int  port = 80

Member Function Documentation

void RobotFlow::SNCRZ30::calculate int  output_id,
int  count,
FD::Buffer out

Implements FD::BufferedNode.

int RobotFlow::SNCRZ30::connect const std::string &  host  ) 

void RobotFlow::SNCRZ30::home  ) 

void RobotFlow::SNCRZ30::initialize  )  [virtual]

Reimplemented from FD::BufferedNode.

void RobotFlow::SNCRZ30::inquiry_pan_tilt int &  pan_position,
int &  tilt_position

void RobotFlow::SNCRZ30::inquiry_zoom int &  zoom_position  ) 

int RobotFlow::SNCRZ30::process_image_data char *  data,
int  data_size

void RobotFlow::SNCRZ30::reset  )  [virtual]

Reimplemented from FD::BufferedNode.

void RobotFlow::SNCRZ30::send_auto_pan_tilt_speed_off  ) 

void RobotFlow::SNCRZ30::send_focus_position unsigned int  focus_position  ) 

void RobotFlow::SNCRZ30::send_pan_tilt_absolute_position unsigned int  pan_speed,
int  pan_position,
unsigned int  tilt_speed,
int  tilt_position

void RobotFlow::SNCRZ30::send_pan_tilt_relative_position unsigned int  pan_speed,
int  pan_position,
unsigned int  tilt_speed,
int  tilt_position

void RobotFlow::SNCRZ30::send_zoom_position unsigned int  zoom_position  ) 

int RobotFlow::SNCRZ30::single_grab  )  [private]

int RobotFlow::SNCRZ30::update_data  )  [private]

Field Documentation

bool RobotFlow::SNCRZ30::m_continuous [private]

int RobotFlow::SNCRZ30::m_currentPan [private]

int RobotFlow::SNCRZ30::m_currentTilt [private]

int RobotFlow::SNCRZ30::m_currentZoom [private]

FD::network_socket RobotFlow::SNCRZ30::m_dataSocket [private]

std::string RobotFlow::SNCRZ30::m_host [private]

Image RobotFlow::SNCRZ30::m_image [private]

int RobotFlow::SNCRZ30::m_imageOutID [private]

FD::network_socket RobotFlow::SNCRZ30::m_imageSocket [private]

bool RobotFlow::SNCRZ30::m_inquiryPosition [private]

int RobotFlow::SNCRZ30::m_panAbsInID [private]

int RobotFlow::SNCRZ30::m_panAbsOutID [private]

int RobotFlow::SNCRZ30::m_panRelInID [private]

int RobotFlow::SNCRZ30::m_panSpeed [private]

int RobotFlow::SNCRZ30::m_port [private]

int RobotFlow::SNCRZ30::m_tiltAbsInID [private]

int RobotFlow::SNCRZ30::m_tiltAbsOutID [private]

int RobotFlow::SNCRZ30::m_tiltRelInID [private]

int RobotFlow::SNCRZ30::m_tiltSpeed [private]

int RobotFlow::SNCRZ30::m_transmitSpeed [private]

bool RobotFlow::SNCRZ30::m_wait_reply [private]

int RobotFlow::SNCRZ30::m_zoomAbsInID [private]

int RobotFlow::SNCRZ30::m_zoomOutID [private]

int RobotFlow::SNCRZ30::m_zoomRelInID [private]

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