19#include "modules/perception/common/lidar/scene_manager/roi_service/proto/roi_service.pb.h"
29 if (roi_content ==
nullptr) {
44 if (roi_content ==
nullptr) {
59 const uint64_t block)
const {
60 return block & (
static_cast<uint64_t
>(1) << loc);
70 if (pt(0) >= 0 && pt(0) < 2 *
range_ && pt(1) >= 0 && pt(1) < 2 *
range_) {
73 const size_t iy =
static_cast<size_t>(
75 const size_t idx_y = iy >> 6;
76 const size_t idx_z = iy & 63;
77 const size_t idx = ix *
map_size_[1] + idx_y;
87 std::string config_file = FLAGS_roi_service_file;
101 std::lock_guard<std::mutex> lock(
mutex_);
108 return content.
Check(world_point);
Eigen::Vector3d transform_
DirectionMajor major_dir_
bool Check(const Eigen::Vector3d &world_point) const
bool CheckBit(const size_t loc, const uint64_t block) const
void GetCopy(SceneServiceContent *content) const override
std::vector< uint64_t > bitmap_
void SetContent(const SceneServiceContent &content) override
ROIServiceContent * roi_content_ref_
bool QueryIsPointInROI(const Eigen::Vector3d &world_point)
bool Init(const SceneServiceInitOptions &options=SceneServiceInitOptions()) override
SceneServiceContentPtr self_content_
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
std::string GetAbsolutePath(const std::string &prefix, const std::string &relative_path)
Get absolute path by concatenating prefix and relative_path.
std::string GetCommonConfigFile(const std::string &config_file)
Get the perception common config path
#define PERCEPTION_REGISTER_SCENESERVICE(name)
#define PERCEPTION_REGISTER_SCENESERVICECONTENT(name)
optional double cell_size