PingSonar Class Reference

Inheritance diagram for PingSonar:
Inheritance graph
[legend]
Collaboration diagram for PingSonar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PingSonar (OptionManager &mgr, const std::string &descrName="PingSonar", const std::string &tagName="PingSonar", const char *defdev="/dev/ttyUSB0", const int ns=3)
 Default constructor; see ModelComponent.H.
 ~PingSonar ()
 Destructor.
std::vector< int > getDists ()
void setNumSonars (int n)

Protected Attributes

nub::soft_ref< SerialitsPort
 Serial port to use.
std::vector< int > currentDists
int numSonars

Detailed Description

Definition at line 47 of file PingSonar.H.


Constructor & Destructor Documentation

PingSonar::PingSonar ( OptionManager mgr,
const std::string descrName = "PingSonar",
const std::string tagName = "PingSonar",
const char *  defdev = "/dev/ttyUSB0",
const int  ns = 3 
)

Default constructor; see ModelComponent.H.

Definition at line 42 of file PingSonar.C.

References ModelComponent::addSubComponent(), and itsPort.

PingSonar::~PingSonar (  ) 

Destructor.

Definition at line 56 of file PingSonar.C.


Member Data Documentation

Serial port to use.

Definition at line 64 of file PingSonar.H.

Referenced by PingSonar().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:23:48 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3