


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< Serial > | itsPort |
| Serial port to use. | |
| std::vector< int > | currentDists |
| int | numSonars |
Definition at line 47 of file PingSonar.H.
| 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.
nub::soft_ref<Serial> PingSonar::itsPort [protected] |
1.6.3