laser_scan_grid_world.h
Go to the documentation of this file.
1 #ifndef SLAM_CTOR_CORE_LASER_SCAN_GRID_WORLD_H
2 #define SLAM_CTOR_CORE_LASER_SCAN_GRID_WORLD_H
3 
4 #include "sensor_data.h"
5 #include "world.h"
6 
7 template <typename Map>
8 class LaserScanGridWorld : public World<TransformedLaserScan, Map> {
9 public: //types
12 public: // methods
13 
14  void handle_sensor_data(ScanType &scan) override {
15  this->update_robot_pose(scan.pose_delta);
16  handle_observation(scan);
17 
18  this->notify_with_pose(this->pose());
19  this->notify_with_map(this->map());
20  }
21 
22  virtual void handle_observation(ScanType &tr_scan) = 0;
23 };
24 
25 #endif
Definition: world.h:69
typename World< TransformedLaserScan, UnboundedLazyTiledGridMap >::MapType MapType
virtual void handle_observation(ScanType &tr_scan)=0
void handle_sensor_data(ScanType &scan) override
virtual const RobotPose & pose() const
Definition: world.h:81
virtual const MapType & map() const =0
void notify_with_map(const Map &map)
Definition: world.h:56
RobotPoseDelta pose_delta
Definition: sensor_data.h:177
void notify_with_pose(const RobotPose &pose)
Definition: world.h:52
virtual void update_robot_pose(const RobotPoseDelta &delta)
Definition: world.h:75


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:25