30 #ifndef PLANNER_CSPACE_PLANNER_3D_ROTATION_CACHE_H 31 #define PLANNER_CSPACE_PLANNER_3D_ROTATION_CACHE_H 47 std::unique_ptr<CyclicVecFloat<3, 2>[]>
c_;
48 std::unique_ptr<std::pair<float, float>[]>
r_;
55 for (
int i = 1; i >= 0; i--)
56 addr = addr * size_[i] + pos[i];
83 void reset(
const float linear_resolution,
const float angular_resolution,
const int range);
85 const int start_angle,
88 return pages_[start_angle].motion(end);
91 const int start_angle,
94 return pages_[start_angle].radiuses(end);
100 const int local_range)
const;
103 #endif // PLANNER_CSPACE_PLANNER_3D_ROTATION_CACHE_H
size_t addr(const CyclicVecInt< 3, 2 > &pos) const
std::vector< Page > pages_
CyclicVecFloat< 3, 2 > & motion(const CyclicVecInt< 3, 2 > &pos)
const CyclicVecFloat< 3, 2 > & motion(const CyclicVecInt< 3, 2 > &pos) const
const std::pair< float, float > & getRadiuses(const int start_angle, const CyclicVecInt< 3, 2 > &end) const
const CyclicVecFloat< 3, 2 > & getMotion(const int start_angle, const CyclicVecInt< 3, 2 > &end) const
CyclicVecInt< 3, 2 > size_
const std::pair< float, float > & radiuses(const CyclicVecInt< 3, 2 > &pos) const
std::unique_ptr< CyclicVecFloat< 3, 2 >[]> c_
std::unique_ptr< std::pair< float, float >[]> r_
void reset(const CyclicVecInt< 3, 2 > &size)
std::pair< float, float > & radiuses(const CyclicVecInt< 3, 2 > &pos)
std::list< CyclicVecFloat< 3, 2 > > interpolate(const std::list< CyclicVecInt< 3, 2 >> &path_grid, const float interval, const int local_range) const