Go to the documentation of this file.
36 cout <<
"[MyObserver] Event received: mrptEventMetricMapClear\n";
38 cout <<
"[MyObserver] Event received: mrptEventMetricMapInsert\n";
40 cout <<
"[MyObserver] Event received: mrptEventOnDestroy\n";
42 cout <<
"[MyObserver] Event received: Generic mrptEvent \n";
60 for (
int i = 0; i < 3; i++) map1->insertObservation(obs);
66 map1->insertObservation(obs);
82 cout <<
"MRPT exception caught: " << e.what() << endl;
87 printf(
"Another exception!!");
The basic event type for the observer-observable pattern in MRPT.
Event emitted by a metric up upon call of clear()
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
void observeBegin(CObservable &obj)
Starts the subscription of this observer to the given object.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
This namespace contains representation of robot actions and observations.
std::shared_ptr< mrpt::maps ::CSimplePointsMap > Ptr
An event sent by any CObservable object (automatically) just before being destroyed and telling its o...
CObservation2DRangeScan getScan()
void example2DRangeScan(mrpt::obs::CObservation2DRangeScan &s, int i=0)
Example 2D lidar scans (form a venerable SICK LMS200).
Inherit from this class to get notified about events from any CObservable object after subscribing to...
void TestObserverPattern()
Event emitted by a metric up upon a succesful call to insertObservation()
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sun Jul 19 15:15:43 UTC 2020 | |