37 namespace cloe::frustum_culling_plugin {
43 Eigen::Isometry3d pose;
45 double roll, pitch, yaw;
54 Eigen::Quaterniond q = cloe::utility::quaternion_from_rpy(roll, pitch, yaw);
55 pose = cloe::utility::pose_from_rotation_translation(q, Eigen::Vector3d(x, y, z));
61 using namespace fable::schema;
63 {
"x", make_schema(&x,
"x-position in ego reference frame [m]").require()},
64 {
"y", make_schema(&y,
"y-position in ego reference frame [m]").require()},
65 {
"z", make_schema(&z,
"z-position in ego reference frame [m]").require()},
66 {
"roll", make_schema(&roll,
"roll angle relative to ego reference frame [rad]").require()},
67 {
"pitch", make_schema(&pitch,
"pitch angle relative to ego reference frame [rad]").require()},
68 {
"yaw", make_schema(&yaw,
"yaw angle relative to ego reference frame [rad]").require()},
88 using namespace fable::schema;
90 {
"reference_frame", make_schema(&ref_frame,
"sensor frame of reference").require()},
91 {
"frustum", make_schema(&frustum,
"sensor frustum").require()},
95 void to_json(Json& j)
const override {
97 {
"reference_frame", ref_frame},
Definition: confable.hpp:98
Json to_json() const
Definition: confable.cpp:78
Definition: schema.hpp:173
Definition: struct.hpp:70
nlohmann::json Json
Definition: fable_fwd.hpp:35
Definition: frustum.hpp:37
Definition: frustum_culling_conf.hpp:76
Frustum frustum
Definition: frustum_culling_conf.hpp:85
MountPose ref_frame
Definition: frustum_culling_conf.hpp:80
Definition: frustum_culling_conf.hpp:42
void to_json(fable::Json &j) const override
Definition: frustum_culling_conf.hpp:47
fable::Schema schema_impl() override
Definition: frustum_culling_conf.hpp:59