9 #ifndef C2DRangeFinderAbstract_H
10 #define C2DRangeFinderAbstract_H
55 mrpt::gui::CDisplayWindow3DPtr
m_win;
74 void loadCommonParams(
106 bool &outThereIsObservation,
108 bool &hardwareError );
116 bool &outThereIsObservation,
118 bool &hardwareError ) = 0;
This is the base, abstract class for "software drivers" interfaces to 2D scanners (laser range finder...
mrpt::gui::CDisplayWindow3DPtr m_win
virtual bool turnOn()=0
Enables the scanning mode (which may depend on the specific laser device); this must be called before...
synch::CCriticalSection m_csChangeStream
For being thread-safe.
std::vector< std::pair< double, double > > m_lstExclusionAngles
A list of pairs of angles <init,end> such as all sensor ranges falling in those forbiden angles will ...
void showPreview(bool enable=true)
Enables GUI visualization in real-time.
mrpt::obs::CObservation2DRangeScan m_lastObservation
mrpt::obs::CObservation2DRangeScan::TListExclusionAreasWithRanges m_lstExclusionPolys
A list of optional exclusion polygons, in coordinates relative to the vehicle, that is,...
mrpt::obs::CObservation2DRangeScanPtr m_nextObservation
A dynamic object used as buffer in doProcess.
bool m_lastObservationIsNew
bool m_showPreview
If true, shows a 3D window with a preview of the grabber data.
utils::CStream * m_stream
The I/O channel (will be NULL if not bound).
virtual void doProcessSimple(bool &outThereIsObservation, mrpt::obs::CObservation2DRangeScan &outObservation, bool &hardwareError)=0
Specific laser scanner "software drivers" must process here new data from the I/O stream,...
virtual bool turnOff()=0
Disables the scanning mode (this can be used to turn the device in low energy mode,...
A generic interface for a wide-variety of sensors designed to be used in the application RawLogGrabbe...
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
std::vector< std::pair< mrpt::math::CPolygon, std::pair< double, double > > > TListExclusionAreasWithRanges
Used in filterByExclusionAreas.
This class provides simple critical sections functionality.
This class allows loading and storing values and vectors of different types from a configuration text...
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
GLsizei const GLchar ** string
OBSERVATION_T::Ptr getObservation(mrpt::obs::CSensoryFramePtr &observations, mrpt::obs::CObservationPtr &observation, bool priority_to_sf=true)
Given an mrpt::obs::CSensoryFrame and a mrpt::obs::CObservation pointer if a OBSERVATION_T type obser...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.