Basic Image AlgorithmS Library
2.8.0
|
This class controls the Isel Linear Unit. More...
#include <PanTilt/IselLinearControl.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
void | Close () |
closes the comport stream connected to ptu More... | |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
void | GetAcceleration (int &accel) |
void | GetCurrentPosition (int &pos) |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
void | GetSpeed (int &speed) |
int | Init (int nCOMportNumber) |
opens the serial port and initialises unit More... | |
int | Init (const char *COMportName) |
opens the given port and initialises pan tilt unit More... | |
IselLinearControl () | |
standard constructor / destructor More... | |
int | MoveLeft (float millimeters) |
int | MoveRight (float millimeters) |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
int | ReadRawLine (std::string &cmd) |
Read a line from the serial port, returns length of read string, zero on nothing to read. More... | |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
int | Reset () |
Start Reference Tour. More... | |
void | SendRawCommand (std::string cmd) |
Send a command string, terminated by <cr> character. More... | |
int | SetAcceleration (int accel) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
int | SetPosition (int pos, bool bWaitComplete=true) |
int | SetSpeed (int speed) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
~IselLinearControl () | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
int | CheckStatus () |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
portstream_fd | COMstream_ |
int | speed_ |
unsigned int | steps_per_mm_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
This class controls the Isel Linear Unit.
Definition at line 29 of file IselLinearControl.hh.
IselLinearControl::IselLinearControl | ( | ) |
standard constructor / destructor
Definition at line 11 of file IselLinearControl.cpp.
IselLinearControl::~IselLinearControl | ( | ) |
Definition at line 17 of file IselLinearControl.cpp.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
protected |
Definition at line 144 of file IselLinearControl.cpp.
void IselLinearControl::Close | ( | ) |
closes the comport stream connected to ptu
Definition at line 46 of file IselLinearControl.cpp.
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
void IselLinearControl::GetAcceleration | ( | int & | accel | ) |
Definition at line 80 of file IselLinearControl.cpp.
void IselLinearControl::GetCurrentPosition | ( | int & | pos | ) |
Definition at line 115 of file IselLinearControl.cpp.
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
void IselLinearControl::GetSpeed | ( | int & | speed | ) |
Definition at line 63 of file IselLinearControl.cpp.
int IselLinearControl::Init | ( | int | nCOMportNumber | ) |
opens the serial port and initialises unit
int | the number of the serial port |
Definition at line 26 of file IselLinearControl.cpp.
int IselLinearControl::Init | ( | const char * | COMportName | ) |
opens the given port and initialises pan tilt unit
char[] | the name of the port |
Definition at line 34 of file IselLinearControl.cpp.
int IselLinearControl::MoveLeft | ( | float | millimeters | ) |
Definition at line 86 of file IselLinearControl.cpp.
int IselLinearControl::MoveRight | ( | float | millimeters | ) |
Definition at line 100 of file IselLinearControl.cpp.
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
int IselLinearControl::ReadRawLine | ( | std::string & | cmd | ) |
Read a line from the serial port, returns length of read string, zero on nothing to read.
Definition at line 136 of file IselLinearControl.cpp.
|
inlineinherited |
|
inlineinherited |
int IselLinearControl::Reset | ( | ) |
Start Reference Tour.
Definition at line 20 of file IselLinearControl.cpp.
void IselLinearControl::SendRawCommand | ( | std::string | cmd | ) |
Send a command string, terminated by <cr> character.
Definition at line 132 of file IselLinearControl.cpp.
int IselLinearControl::SetAcceleration | ( | int | accel | ) |
Definition at line 68 of file IselLinearControl.cpp.
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
int IselLinearControl::SetPosition | ( | int | pos, |
bool | bWaitComplete = true |
||
) |
Definition at line 121 of file IselLinearControl.cpp.
int IselLinearControl::SetSpeed | ( | int | speed | ) |
Definition at line 52 of file IselLinearControl.cpp.
|
inlineinherited |
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protected |
Definition at line 101 of file IselLinearControl.hh.
|
staticprotectedinherited |
|
protected |
Definition at line 100 of file IselLinearControl.hh.
|
protected |
Definition at line 102 of file IselLinearControl.hh.