30 #ifndef PLANNER_CSPACE_PLANNER_3D_ROTATION_CACHE_H 31 #define PLANNER_CSPACE_PLANNER_3D_ROTATION_CACHE_H 51 std::unique_ptr<CyclicVecFloat<3, 2>[]>
c_;
52 std::unique_ptr<std::pair<float, float>[]>
r_;
59 for (
int i = 1; i >= 0; i--)
60 addr = addr * size_[i] + pos[i];
87 void reset(
const float linear_resolution,
const float angular_resolution,
const int range);
89 const int start_angle,
92 return pages_[start_angle].motion(end);
95 const int start_angle,
98 return pages_[start_angle].radiuses(end);
103 const float interval,
104 const int local_range)
const;
109 #endif // PLANNER_CSPACE_PLANNER_3D_ROTATION_CACHE_H std::unique_ptr< CyclicVecFloat< 3, 2 >[]> c_
const std::pair< float, float > & radiuses(const CyclicVecInt< 3, 2 > &pos) const
const CyclicVecFloat< 3, 2 > & motion(const CyclicVecInt< 3, 2 > &pos) const
CyclicVecInt< 3, 2 > size_
std::unique_ptr< std::pair< float, float >[]> r_
std::vector< Page > pages_
const CyclicVecFloat< 3, 2 > & getMotion(const int start_angle, const CyclicVecInt< 3, 2 > &end) const
size_t addr(const CyclicVecInt< 3, 2 > &pos) const
void reset(const CyclicVecInt< 3, 2 > &size)
CyclicVecFloat< 3, 2 > & motion(const CyclicVecInt< 3, 2 > &pos)
std::pair< float, float > & radiuses(const CyclicVecInt< 3, 2 > &pos)
const std::pair< float, float > & getRadiuses(const int start_angle, const CyclicVecInt< 3, 2 > &end) const
std::list< CyclicVecFloat< 3, 2 > > interpolate(const std::list< CyclicVecInt< 3, 2 >> &path_grid, const float interval, const int local_range) const