Go to the documentation of this file.
39 pDataset->
Add(pLaserRangeFinder);
48 std::vector<kt_double> readings;
49 for (
int i=0; i<361; i++)
51 readings.push_back(3.0);
60 pMapper->
Process(pLocalizedRangeScan);
64 pDataset->
Add(pLocalizedRangeScan);
74 pMapper->
Process(pLocalizedRangeScan);
78 pDataset->
Add(pLocalizedRangeScan);
88 pMapper->
Process(pLocalizedRangeScan);
92 pDataset->
Add(pLocalizedRangeScan);
102 std::cout <<
"Generating map..." << std::endl;
107 return pOccupancyGrid;
115 if (pOccupancyGrid != NULL)
122 std::cout <<
"width = " << width <<
", height = " << height <<
", scale = " << pOccupancyGrid->
GetCoordinateConverter()->
GetScale() <<
", offset: " << offset.
GetX() <<
", " << offset.
GetY() << std::endl;
145 std::cout << std::endl;
147 std::cout << std::endl;
177 delete pOccupancyGrid;
void SetAngularResolution(kt_double angularResolution)
const Pose2 & GetOdometricPose() const
kt_double DegreesToRadians(kt_double degrees)
void SetOdometricPose(const Pose2 &rPose)
CoordinateConverter * GetCoordinateConverter() const
static OccupancyGrid * CreateFromScans(const LocalizedRangeScanVector &rScans, kt_double resolution)
kt_double GetScale() const
virtual const LocalizedRangeScanVector GetAllProcessedScans() const
void SetOffsetPose(const Pose2 &rPose)
void SetScanSolver(ScanSolver *pSolver)
void SetRangeThreshold(kt_double rangeThreshold)
void SetCorrectedPose(const Pose2 &rPose)
kt_int32s GetWidth() const
const Pose2 & GetCorrectedPose() const
T GetValue(const Vector2< kt_int32s > &rGrid) const
const Vector2< kt_double > & GetOffset() const
karto::Dataset * CreateMap(karto::Mapper *pMapper)
void Add(Object *pObject)
@ LaserRangeFinder_Custom
static LaserRangeFinder * CreateLaserRangeFinder(LaserRangeFinderType type, const Name &rName)
void PrintOccupancyGrid(karto::OccupancyGrid *pOccupancyGrid)
virtual kt_bool Process(LocalizedRangeScan *pScan)
karto::OccupancyGrid * CreateOccupancyGrid(karto::Mapper *pMapper, kt_double resolution)
kt_int32s GetHeight() const
open_karto
Author(s):
autogenerated on Tue Jul 23 2024 02:26:00