15 #ifndef NDT__CONSTRAINTS_HPP_ 16 #define NDT__CONSTRAINTS_HPP_ 20 #include <type_traits> 25 namespace localization
35 template<
typename MapT>
41 template<
typename Map>
46 template<
typename Map>
47 using call_stamp = decltype(std::declval<Map>().stamp());
51 const std::string &>::value,
52 "The map should provide a `frame_id()` method");
56 std::chrono::system_clock::time_point>::value,
57 "The map should provide a `stamp()` method");
64 template<
typename MapT>
68 using Voxel =
typename MapT::Voxel;
75 template<
typename Map>
76 using call_cell = decltype(std::declval<Map>().cell(std::declval<const Point &>()));
80 template<
typename Map>
86 "The map should provide a `cell(...)` method");
91 "The map should provide a `cell_size()` method");
106 #endif // NDT__CONSTRAINTS_HPP_ This constraint expresses the map interface requirements for the localizer.
Definition: ndt/include/ndt/constraints.hpp:65
This constraint expresses the map interface requirements for the localizer.
Definition: ndt/include/ndt/constraints.hpp:36
decltype(std::declval< Map >().stamp()) call_stamp
This expression requires a method that returns the (std::chrono) timestamp of the.
Definition: ndt/include/ndt/constraints.hpp:47
decltype(std::declval< Map >().frame_id()) call_frame_id
This expression requires a method that returns a const reference to the frame ID of the map...
Definition: ndt/include/ndt/constraints.hpp:42
std::vector< VoxelView< Voxel > > VoxelViewVector
Definition: ndt/include/ndt/constraints.hpp:69
Requires
Definition: ndt/include/ndt/constraints.hpp:29
geometry_msgs::msg::Point32 PointXYZ
Definition: perception/filters/voxel_grid/include/voxel_grid/config.hpp:47
typename MapT::Voxel Voxel
The map type should expose the voxel type.
Definition: ndt/include/ndt/constraints.hpp:68
decltype(std::declval< Map >().cell_size()) call_cell_size
This expression requires a method that returns the (std::chrono) timestamp of the.
Definition: ndt/include/ndt/constraints.hpp:81
decltype(std::declval< Map >().cell(std::declval< const Point & >())) call_cell
This expression requires a method that looks up the cells at the given location.
Definition: ndt/include/ndt/constraints.hpp:76
Definition: template_utils.hpp:51
Eigen::Vector3d Point
Definition: ndt/include/ndt/constraints.hpp:70
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24