Basic Image AlgorithmS Library 2.8.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

BIAS::IselLinearControl Class Reference

This class controls the Isel Linear Unit. More...

#include <PanTilt/IselLinearControl.hh>

Inheritance diagram for BIAS::IselLinearControl:
Collaboration diagram for BIAS::IselLinearControl:

List of all members.

Public Member Functions

void AddDebugLevel (const long int lv)
void AddDebugLevel (const std::string &name)
void Close ()
 closes the comport stream connected to ptu
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 (const char *COMportName)
 opens the given port and initialises pan tilt unit
int Init (int nCOMportNumber)
 opens the serial port and initialises unit
 IselLinearControl ()
 standard constructor / destructor
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
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel
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.
void RemoveDebugLevel (const long int lv)
void RemoveDebugLevel (const std::string &name)
int Reset ()
 Start Reference Tour.
void SendRawCommand (std::string cmd)
 Send a command string, terminated by <cr> character.
int SetAcceleration (int accel)
void SetDebugLevel (const std::string &name)
void SetDebugLevel (const long int lv)
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
 ~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

Protected Attributes

long int _liDebugLevel
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class
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

Detailed Description

This class controls the Isel Linear Unit.

Author:
fkellner, 09/09
Examples:

ExampleIselLinearControl.cpp.

Definition at line 29 of file IselLinearControl.hh.


Constructor & Destructor Documentation

IselLinearControl::IselLinearControl ( )

standard constructor / destructor

Definition at line 11 of file IselLinearControl.cpp.

IselLinearControl::~IselLinearControl ( )

Definition at line 17 of file IselLinearControl.cpp.


Member Function Documentation

void BIAS::Debug::AddDebugLevel ( const long int  lv) [inline, inherited]
void BIAS::Debug::AddDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 363 of file Debug.hh.

int IselLinearControl::CheckStatus ( ) [protected]

Definition at line 143 of file IselLinearControl.cpp.

void IselLinearControl::Close ( )

closes the comport stream connected to ptu

Examples:
ExampleIselLinearControl.cpp.

Definition at line 45 of file IselLinearControl.cpp.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( ) [inline, protected, inherited]

returns the next available debuglevel

Author:
woelk 09/2006

Definition at line 522 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const [inline, inherited]

Definition at line 351 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const [inline, inherited]
void IselLinearControl::GetAcceleration ( int &  accel)
Returns:
the current Acceleration

Definition at line 79 of file IselLinearControl.cpp.

void IselLinearControl::GetCurrentPosition ( int &  pos)
Returns:
the current position of the Unit

Definition at line 114 of file IselLinearControl.cpp.

int BIAS::Debug::GetDebugLevel ( ) const [inline, inherited]
std::ostream& BIAS::Debug::GetDebugStream ( ) const [inline, inherited]

Definition at line 406 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const [inline, inherited]

Definition at line 415 of file Debug.hh.

static long int BIAS::Debug::GetGlobalDebugLevel ( ) [inline, static, inherited]

Definition at line 432 of file Debug.hh.

void IselLinearControl::GetSpeed ( int &  speed)
Returns:
the current speed

Definition at line 62 of file IselLinearControl.cpp.

int IselLinearControl::Init ( int  nCOMportNumber)

opens the serial port and initialises unit

Parameters:
intthe number of the serial port
Examples:
ExampleIselLinearControl.cpp.

Definition at line 26 of file IselLinearControl.cpp.

int IselLinearControl::Init ( const char *  COMportName)

opens the given port and initialises pan tilt unit

Parameters:
char[]the name of the port

Definition at line 34 of file IselLinearControl.cpp.

int IselLinearControl::MoveLeft ( float  millimeters)
Examples:
ExampleIselLinearControl.cpp.

Definition at line 85 of file IselLinearControl.cpp.

int IselLinearControl::MoveRight ( float  millimeters)
Examples:
ExampleIselLinearControl.cpp.

Definition at line 99 of file IselLinearControl.cpp.

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const [inline, inherited]

looks up a debuglevel in the internal map, returns 0 if not found

Author:
woelk 09/2006

Definition at line 455 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name) [inline, inherited]
void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const [inline, inherited]

Definition at line 384 of file Debug.hh.

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 135 of file IselLinearControl.cpp.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 377 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const long int  lv) [inline, inherited]

Definition at line 370 of file Debug.hh.

int IselLinearControl::Reset ( )

Start Reference Tour.

Returns:
bool indicating success of reset
Examples:
ExampleIselLinearControl.cpp.

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 131 of file IselLinearControl.cpp.

int IselLinearControl::SetAcceleration ( int  accel)

Definition at line 67 of file IselLinearControl.cpp.

void BIAS::Debug::SetDebugLevel ( const std::string &  name) [inline, inherited]

Definition at line 326 of file Debug.hh.

void BIAS::Debug::SetDebugLevel ( const long int  lv) [inline, inherited]
void BIAS::Debug::SetDebugStream ( const std::ostream &  os) [inline, inherited]

Definition at line 399 of file Debug.hh.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev) [inline, static, inherited]

Definition at line 425 of file Debug.hh.

int IselLinearControl::SetPosition ( int  pos,
bool  bWaitComplete = true 
)
Examples:
ExampleIselLinearControl.cpp.

Definition at line 120 of file IselLinearControl.cpp.

int IselLinearControl::SetSpeed ( int  speed)
Examples:
ExampleIselLinearControl.cpp.

Definition at line 51 of file IselLinearControl.cpp.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const [inline, inherited]

prints all internally known debuglevels

Author:
woelk 09/2006

Definition at line 497 of file Debug.hh.


Member Data Documentation

long int BIAS::Debug::_liDebugLevel [protected, inherited]

Definition at line 511 of file Debug.hh.

Referenced by BIAS::ImageBase::operator=(), and BIAS::Debug::operator=().

long int BIAS::Debug::_liNextDebugLevel [protected, inherited]

new concept, debuglevel are managed here in the debug class

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel [protected, inherited]

Definition at line 518 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream [static, protected, inherited]

Definition at line 512 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

portstream_fd BIAS::IselLinearControl::COMstream_ [protected]

Definition at line 101 of file IselLinearControl.hh.

long int BIAS::Debug::GlobalDebugLevel = 0 [static, protected, inherited]

Definition at line 514 of file Debug.hh.

Definition at line 100 of file IselLinearControl.hh.

unsigned int BIAS::IselLinearControl::steps_per_mm_ [protected]

Definition at line 102 of file IselLinearControl.hh.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends