38 float far_plane = std::numeric_limits<float>::infinity();
42 Eigen::Matrix4f
T_BS = Eigen::Matrix4f::Identity();
47 void readYaml(
const std::string& filename);
49 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
54 template<
typename DerivedT>
57 template<
typename ConfigT>
73 template<
typename Val
idPredicate>
74 bool projectToPixelValue(
const Eigen::Vector3f& point_S,
77 ValidPredicate valid_predicate)
const;
90 template<
typename Val
idPredicate>
91 bool getPixelValue(
const Eigen::Vector2f& pixel_f,
94 ValidPredicate valid_predicate)
const;
111 int computeIntegrationScale(
const Eigen::Vector3f& block_centre_S,
113 const int last_scale,
115 const int max_block_scale)
const;
130 float nearDist(
const Eigen::Vector3f& ray_S)
const;
145 float farDist(
const Eigen::Vector3f& ray_S)
const;
156 float measurementFromPoint(
const Eigen::Vector3f& point_S)
const;
162 bool pointInFrustum(
const Eigen::Vector3f& point_S)
const;
171 bool pointInFrustumInf(
const Eigen::Vector3f& point_S)
const;
181 bool sphereInFrustum(
const Eigen::Vector3f& centre_S,
const float radius)
const;
190 bool sphereInFrustumInf(
const Eigen::Vector3f& centre_S,
const float radius)
const;
195 static std::string type();
202 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
210 DerivedT& underlying();
211 const DerivedT& underlying()
const;
218 #include "impl/sensor_impl.hpp" 222 #endif // SE_SENSOR_HPP float near_plane
Definition: sensor.hpp:198
bool left_hand_frame
Definition: sensor.hpp:197
float near_plane
The sensor's near plane in metres.
Definition: sensor.hpp:34
void readYaml(const std::string &filename)
Reads the struct members from the "sensor" node of a YAML file.
int height
The height of images produced by the sensor in pixels.
Definition: sensor.hpp:30
Eigen::Matrix4f T_BS
Definition: sensor.hpp:200
float far_plane
The sensor's far plane in metres.
Definition: sensor.hpp:38
int width
The width of images produced by the sensor in pixels.
Definition: sensor.hpp:26
Definition: sensor.hpp:55
float far_plane
Definition: sensor.hpp:199
Definition: sensor.hpp:23
Eigen::Matrix4f T_BS
The transformation from the sensor frame S to the body frame B.
Definition: sensor.hpp:42
Helper wrapper to allocate and de-allocate octants in the octree.
Definition: colour_utils.hpp:17