Basic Image AlgorithmS Library
2.8.0
|
This class controls the Isel iMC-S8 Linear Unit (two axis controll) More...
#include <PanTilt/IselLinearControlTwoAxis.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
void | Close () |
closes the comport stream More... | |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
void | GetAcceleration (int &accel) |
void | GetCurrentPosition (float &millimetersX, float &millimetersY) |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
void | GetSpeed (float &speedX, float &speedY) |
int | Init (const int nCOMportNumber) |
opens the serial port and initialises unit More... | |
int | Init (const char *COMportName) |
opens the given port and initialises unit More... | |
IselLinearControlTwoAxis () | |
standard constructor, steps_per_mm set to default values More... | |
IselLinearControlTwoAxis (const int steps_per_mm_x, const int steps_per_mm_y) | |
constructor More... | |
int | Move (const float millimetersX, const float millimetersY) |
move millimeters in directions More... | |
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 (const int axis=3) |
Start Reference Tour on given axis (1-x, 2-y, or 3 x+y) More... | |
void | SendRawCommand (const std::string cmd) |
Send a command string, terminated by <cr> character. More... | |
int | SetAcceleration (const int accel) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
int | SetPosition (const float millimetersX, const float millimetersY, const bool bWaitComplete=true) |
int | SetSpeed (const float speedX, const float speedY) |
sets the maximum/desired speed for all movements in millimeter per second More... | |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
~IselLinearControlTwoAxis () | |
standard destructor More... | |
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 | steps_per_mm_x_ |
int | steps_per_mm_y_ |
int | steps_per_second_x_ |
int | steps_per_second_y_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
This class controls the Isel iMC-S8 Linear Unit (two axis controll)
Definition at line 29 of file IselLinearControlTwoAxis.hh.
IselLinearControlTwoAxis::IselLinearControlTwoAxis | ( | ) |
standard constructor, steps_per_mm set to default values
Definition at line 14 of file IselLinearControlTwoAxis.cpp.
IselLinearControlTwoAxis::IselLinearControlTwoAxis | ( | const int | steps_per_mm_x, |
const int | steps_per_mm_y | ||
) |
constructor
int | the steps per mm of the first axis |
int | the steps per mm of the second axis |
Definition at line 23 of file IselLinearControlTwoAxis.cpp.
IselLinearControlTwoAxis::~IselLinearControlTwoAxis | ( | ) |
standard destructor
Definition at line 29 of file IselLinearControlTwoAxis.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 225 of file IselLinearControlTwoAxis.cpp.
void IselLinearControlTwoAxis::Close | ( | ) |
closes the comport stream
Definition at line 83 of file IselLinearControlTwoAxis.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 IselLinearControlTwoAxis::GetAcceleration | ( | int & | accel | ) |
Definition at line 125 of file IselLinearControlTwoAxis.cpp.
void IselLinearControlTwoAxis::GetCurrentPosition | ( | float & | millimetersX, |
float & | millimetersY | ||
) |
Definition at line 154 of file IselLinearControlTwoAxis.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 IselLinearControlTwoAxis::GetSpeed | ( | float & | speedX, |
float & | speedY | ||
) |
Definition at line 107 of file IselLinearControlTwoAxis.cpp.
int IselLinearControlTwoAxis::Init | ( | const int | nCOMportNumber | ) |
opens the serial port and initialises unit
int | the number of the serial port |
Definition at line 45 of file IselLinearControlTwoAxis.cpp.
int IselLinearControlTwoAxis::Init | ( | const char * | COMportName | ) |
opens the given port and initialises unit
char[] | the name of the port |
Definition at line 53 of file IselLinearControlTwoAxis.cpp.
int IselLinearControlTwoAxis::Move | ( | const float | millimetersX, |
const float | millimetersY | ||
) |
move millimeters in directions
float | the millimeters to move on the first axis |
float | the millimeters to move on the second axis |
Definition at line 131 of file IselLinearControlTwoAxis.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 IselLinearControlTwoAxis::ReadRawLine | ( | std::string & | cmd | ) |
Read a line from the serial port, returns length of read string, zero on nothing to read.
Definition at line 217 of file IselLinearControlTwoAxis.cpp.
|
inlineinherited |
|
inlineinherited |
int IselLinearControlTwoAxis::Reset | ( | const int | axis = 3 | ) |
Start Reference Tour on given axis (1-x, 2-y, or 3 x+y)
Definition at line 31 of file IselLinearControlTwoAxis.cpp.
void IselLinearControlTwoAxis::SendRawCommand | ( | const std::string | cmd | ) |
Send a command string, terminated by <cr> character.
Definition at line 212 of file IselLinearControlTwoAxis.cpp.
int IselLinearControlTwoAxis::SetAcceleration | ( | const int | accel | ) |
Definition at line 113 of file IselLinearControlTwoAxis.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 IselLinearControlTwoAxis::SetPosition | ( | const float | millimetersX, |
const float | millimetersY, | ||
const bool | bWaitComplete = true |
||
) |
Definition at line 186 of file IselLinearControlTwoAxis.cpp.
int IselLinearControlTwoAxis::SetSpeed | ( | const float | speedX, |
const float | speedY | ||
) |
sets the maximum/desired speed for all movements in millimeter per second
float | the speed for the first axis |
float | the speed for the second axis |
Definition at line 89 of file IselLinearControlTwoAxis.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 119 of file IselLinearControlTwoAxis.hh.
|
staticprotectedinherited |
|
protected |
Definition at line 120 of file IselLinearControlTwoAxis.hh.
|
protected |
Definition at line 120 of file IselLinearControlTwoAxis.hh.
|
protected |
Definition at line 118 of file IselLinearControlTwoAxis.hh.
|
protected |
Definition at line 118 of file IselLinearControlTwoAxis.hh.