Carna Registration API Version 1.16.0
Classes | Public Types | Public Member Functions
CRA::DefaultLocalizer Class Reference

CLocalizer based implementation of the Localizer interface. More...

#include <DefaultLocalizer.h>

Inheritance diagram for CRA::DefaultLocalizer:
Collaboration diagram for CRA::DefaultLocalizer:

List of all members.

Classes

struct  illegalIniFile
 Thrown when an INI file with an illegal format is provided. More...
struct  missingIniFile
 Thrown when an non-existent INI file is provided. More...

Public Types

enum  State { ready, asleep }
 Lists possible object states. More...

Public Member Functions

 DefaultLocalizer (const std::string &iniFile)
 Instantiates.
virtual ~DefaultLocalizer ()
 Shuts down the underlying CLocalizer.
virtual bool fetch (const std::string &port, Transformation &out)
 Queries the bearing of the tool specified by some port.
void requestState (State)
 Ensures a certain object state as far as possible.
void loadFromIni (const std::string &iniFile)
 Reinitializes the underlying CLocalizer.

Detailed Description

CLocalizer based implementation of the Localizer interface.

Author:
Leonid Kostrykin
Date:
23.3.12 - 28.3.12

Definition at line 32 of file DefaultLocalizer.h.


Member Enumeration Documentation

Lists possible object states.

Enumerator:
ready 

The underlying CLocalizer is tracking.

asleep 

The underlying CLocalizer is not tracking.

Definition at line 39 of file DefaultLocalizer.h.


Constructor & Destructor Documentation

CRA::DefaultLocalizer::DefaultLocalizer ( const std::string &  iniFile)

Instantiates.

Initializes the underlying CLocalizer.

Exceptions:
illegalIniFilewhen the provided INI file has an illegal format.
missingIniFilewhen the provided INI file does not exist.

Member Function Documentation

void CRA::DefaultLocalizer::loadFromIni ( const std::string &  iniFile)

Reinitializes the underlying CLocalizer.

Exceptions:
illegalIniFilewhen the provided INI file has an illegal format.
missingIniFilewhen the provided INI file does not exist.
void CRA::DefaultLocalizer::requestState ( State  )

Ensures a certain object state as far as possible.

Usually there is no need for requesting the object state manually.


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