30 #ifndef PLANNER_CSPACE_PLANNER_3D_MOTION_CACHE_H 31 #define PLANNER_CSPACE_PLANNER_3D_MOTION_CACHE_H 33 #include <unordered_map> 54 const std::vector<CyclicVecInt<3, 2>>&
getMotion()
const 63 using Ptr = std::shared_ptr<MotionCache>;
65 inline const typename Cache::const_iterator
find(
67 const CyclicVecInt<3, 2>& goal)
const 72 return cache_[i].find(goal);
74 inline const typename Cache::const_iterator
end(
75 const int start_yaw)
const 84 const float linear_resolution,
85 const float angular_resolution,
87 const std::function<
void(CyclicVecInt<3, 2>,
size_t&,
size_t&)> gm_addr);
94 #endif // PLANNER_CSPACE_PLANNER_3D_MOTION_CACHE_H float getDistance() const
std::unordered_map< CyclicVecInt< 3, 2 >, Page, CyclicVecInt< 3, 2 >> Cache
const Cache::const_iterator end(const int start_yaw) const
std::vector< Cache > cache_
const Cache::const_iterator find(const int start_yaw, const CyclicVecInt< 3, 2 > &goal) const
const std::vector< CyclicVecInt< 3, 2 > > & getMotion() const
std::vector< CyclicVecInt< 3, 2 > > motion_
void reset(const float linear_resolution, const float angular_resolution, const int range, const std::function< void(CyclicVecInt< 3, 2 >, size_t &, size_t &)> gm_addr)
std::shared_ptr< MotionCache > Ptr