Provides an interface for camera usage.
More...
#include <Sensor.h>
List of all members.
Public Member Functions |
virtual Reading * | ApplySelfFilter (Reading *read) |
virtual bool | CanSee (RelPose &pose) const |
virtual bool | DeleteReading () |
| removes entries of the reading buffer, this function will not release still references functions (
|
virtual std::string | GetName () const |
virtual Reading * | GetReading (const long &frame=-1)=0 |
RelPose * | GetRelPose () |
std::string | GetSensorID () const |
virtual void | GetShowLock () |
virtual std::pair< std::string,
std::vector< double > > | GetUnformatedCalibrationValues () const |
virtual bool | IsCamera () const |
virtual void | ProjectPoint3DToSensor (const double &x, const double &y, const double &z, double &row, double &column) const |
void | Publish3DData (const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z) |
virtual void | PushBackAsync () |
virtual void | ReleaseShowLock () |
virtual bool | RequiresSensorList () |
| Stereo works as a composition of names sensors.
|
virtual XMLTag * | Save ()=0 |
virtual void | SaveTo (XMLTag *tag) |
| Sensor () |
| Sensor (RelPose *pose) |
virtual void | SetSensorList (std::vector< Sensor * >) |
| Stereo works as a composition of names sensors.
|
virtual void | Show (const long frame=-1) |
| should display the sensors currenbt reading, if wanted
|
virtual bool | Start ()=0 |
| overwrite to start up the data reading, is called at least once after creation
|
virtual bool | Stop () |
| overwrite to stop call this in the destructor if necessary, will be used to shut down cameras
|
virtual void | WaitForNewData () |
| Wait the condition variable m_mutexImageList.
|
virtual | ~Sensor () |
Static Public Member Functions |
static Sensor * | SensorFactory (XMLTag *tag) |
| Load sensor parameter from xml Only derivatives of Camera can use this constructor to initialize values.
|
Protected Types |
typedef boost::mutex::scoped_lock | lock |
Protected Member Functions |
Reading * | GetReading_Lock (size_t index) |
virtual void | PushBack (Reading *img) |
virtual void | SetData (XMLTag *tag) |
Protected Attributes |
long | m_deletedOffset |
long | m_FrameCount |
std::vector< Reading * > | m_images |
unsigned long | m_max_cameraImages |
boost::mutex | m_mutexImageList |
boost::mutex | m_mutexShow |
boost::condition | m_newDataArrived |
RelPose * | m_relPose |
std::string | m_stSensorName |
std::vector< Reading * > | m_temp_images |
Detailed Description
Provides an interface for camera usage.
Class Sensor
Definition at line 55 of file Sensor.h.
Member Typedef Documentation
Constructor & Destructor Documentation
The destructor is virtual
Definition at line 42 of file Sensor.cpp.
Member Function Documentation
CanSee Checks if a pose is inside the view of this sensor
- Parameters:
-
pose | pose that has to be looked at |
Definition at line 111 of file Sensor.h.
removes entries of the reading buffer, this function will not release still references functions (
DeleteReading
- See also:
- cop::Reading::Free)
Definition at line 93 of file Sensor.cpp.
Get Type of the camera by its Name
Definition at line 93 of file Sensor.h.
GetReading
- Parameters:
-
frame | frame number, to specify an offset or a specific file |
- Exceptions:
-
char* | with an error message in case of failure |
- Returns:
- the pose of this sensor
Definition at line 129 of file Sensor.h.
GetSensorID This contains optinally an identifier for the sensor (Loaded from)
Definition at line 141 of file Sensor.h.
GetUnformatedCalibrationValues
- Returns:
- a pair of a fomrat string describing the content and a list of doubles
Definition at line 158 of file Sensor.h.
Can this Sensor be used like a camera, (incl. Calibration, Showing, usw.)
Definition at line 135 of file Sensor.h.
Helper function for projecting 3D data to the images
Definition at line 189 of file Sensor.cpp.
void Sensor::Publish3DData |
( |
const std::vector< double > & |
x, |
|
|
const std::vector< double > & |
y, |
|
|
const std::vector< double > & |
z |
|
) |
| |
Stereo works as a composition of names sensors.
m_stSensorName
Definition at line 147 of file Sensor.h.
Load sensor parameter from xml Only derivatives of Camera can use this constructor to initialize values.
Definition at line 53 of file Sensor.cpp.
Stereo works as a composition of names sensors.
SetSensorList
Definition at line 152 of file Sensor.h.
should display the sensors currenbt reading, if wanted
Show
- Parameters:
-
frame | number, to specify an temporal offset or a specific file |
Definition at line 99 of file Sensor.h.
overwrite to start up the data reading, is called at least once after creation
Start
overwrite to stop call this in the destructor if necessary, will be used to shut down cameras
Start
Definition at line 121 of file Sensor.h.
Wait the condition variable m_mutexImageList.
Definition at line 84 of file Sensor.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: