25namespace localization {
39 void SetValue(
const Eigen::Vector3d& coordinate,
int zone_id,
40 unsigned char intensity);
46 void SetValueLayer(
const Eigen::Vector3d& coordinate,
int zone_id,
47 unsigned char intensity);
51 void GetValue(
const Eigen::Vector3d& coordinate,
int zone_id,
52 unsigned int resolution_id, std::vector<unsigned char>* values);
57 void GetValueSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
58 unsigned int resolution_id,
59 std::vector<unsigned char>* values);
63 void GetVar(
const Eigen::Vector3d& coordinate,
int zone_id,
64 unsigned int resolution_id, std::vector<float>* vars);
69 void GetVarSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
70 unsigned int resolution_id, std::vector<float>* vars);
74 void GetAlt(
const Eigen::Vector3d& coordinate,
int zone_id,
75 unsigned int resolution_id, std::vector<float>* alts);
80 void GetAltSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
81 unsigned int resolution_id, std::vector<float>* alts);
85 void GetAltVar(
const Eigen::Vector3d& coordinate,
int zone_id,
86 unsigned int resolution_id, std::vector<float>* alt_vars);
91 void GetAltVarSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
92 unsigned int resolution_id, std::vector<float>* alt_vars);
94 void GetCount(
const Eigen::Vector3d& coordinate,
int zone_id,
95 unsigned int resolution_id, std::vector<unsigned int>* counts);
97 void GetCountSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
98 unsigned int resolution_id,
99 std::vector<unsigned int>* counts);
102 unsigned char GetValue(
const Eigen::Vector3d& coordinate,
int zone_id,
103 unsigned int resolution_id);
107 unsigned char GetValueSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
108 unsigned int resolution_id);
111 float GetVar(
const Eigen::Vector3d& coordinate,
int zone_id,
112 unsigned int resolution_id);
116 float GetVarSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
117 unsigned int resolution_id);
120 float GetAlt(
const Eigen::Vector3d& coordinate,
int zone_id,
121 unsigned int resolution_id);
125 float GetAltSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
126 unsigned int resolution_id);
129 float GetAltVar(
const Eigen::Vector3d& coordinate,
int zone_id,
130 unsigned int resolution_id);
134 float GetAltVarSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
135 unsigned int resolution_id);
137 unsigned int GetCount(
const Eigen::Vector3d& coordinate,
int zone_id,
138 unsigned int resolution_id);
140 unsigned int GetCountSafe(
const Eigen::Vector3d& coordinate,
int zone_id,
141 unsigned int resolution_id);
151 const Eigen::Vector3d& trans_diff,
152 unsigned int resolution_id,
unsigned int zone_id);
158 virtual bool LoadMapArea(
const Eigen::Vector3d& seed_pt3d,
159 unsigned int resolution_id,
unsigned int zone_id,
160 int filter_size_x,
int filter_size_y);
The data structure of the base map.
The options of the reflectance map.
void SetValueLayer(const Eigen::Vector3d &coordinate, int zone_id, unsigned char intensity)
Set the vlaue of a pixel in a layer in the map node.
void GetValueSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< unsigned char > *values)
Given the 3D global coordinate, this function loads the corresponding map node in the cache thread sa...
void SetGroundHeightOffset(double height_offset)
Set the ground height offset.
void GetVar(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< float > *vars)
Given the 3D global coordinate, this function loads the corresponding map node in the cache and retur...
virtual void PreloadMapArea(const Eigen::Vector3d &location, const Eigen::Vector3d &trans_diff, unsigned int resolution_id, unsigned int zone_id)
Preload map nodes for the next frame location calculation.
void GetCount(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< unsigned int > *counts)
Get the number of samples in the map cell.
void GetAltSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< float > *alts)
Given the 3D global coordinate, this function loads the corresponding map node in the cache thread sa...
void GetAltVarSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< float > *alt_vars)
Given the 3D global coordinate, this function loads the corresponding map node in the cache thread sa...
void GetCountSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< unsigned int > *counts)
Get the number of samples in the map cell thread safely.
void GetVarSafe(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< float > *vars)
Given the 3D global coordinate, this function loads the corresponding map node in the cache thread sa...
void GetAlt(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< float > *alts)
Given the 3D global coordinate, this function loads the corresponding map node in the cache and retur...
void GetAltVar(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< float > *alt_vars)
Given the 3D global coordinate, this function loads the corresponding map node in the cache and retur...
virtual bool LoadMapArea(const Eigen::Vector3d &seed_pt3d, unsigned int resolution_id, unsigned int zone_id, int filter_size_x, int filter_size_y)
Load map nodes for the location calculate of this frame.
void GetValue(const Eigen::Vector3d &coordinate, int zone_id, unsigned int resolution_id, std::vector< unsigned char > *values)
Given the 3D global coordinate, this function loads the corresponding map node in the cache and retur...
void SetValue(const Eigen::Vector3d &coordinate, int zone_id, unsigned char intensity)
Set the value of a pixel in the map, including all the resolution levels.