27 namespace perception {
34 std::vector<Eigen::Vector3d>* vertices);
36 template <
typename VectorType>
38 if (pt[0] < 0 || pt[0] > width || pt[1] < 0 || pt[1] > height) {
44 template <
typename Type>
47 const Type& augmented_buffer) {
49 augmented_box1.
xmin -= augmented_buffer;
50 augmented_box1.
ymin -= augmented_buffer;
51 augmented_box1.
xmax += augmented_buffer;
52 augmented_box1.
ymax += augmented_buffer;
54 augmented_box2.
xmin -= augmented_buffer;
55 augmented_box2.
ymin -= augmented_buffer;
56 augmented_box2.
xmax += augmented_buffer;
57 augmented_box2.
ymax += augmented_buffer;
78 const std::shared_ptr<const base::Object>& obj,
93 double camera_ts,
double camera_max_dist,
94 bool motion_compensation,
bool all_in);
T ymin
Definition: box.h:154
float ObjectInCameraView(SensorObjectConstPtr sensor_object, base::BaseCameraModelPtr camera_model, const Eigen::Affine3d &camera_sensor2world_pose, double camera_ts, double camera_max_dist, bool motion_compensation, bool all_in)
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Eigen::Vector2d Vector2d
Definition: base_map_fwd.h:36
Eigen::Vector3d Vector3d
Definition: frame_transform.h:27
void GetObjectEightVertices(std::shared_ptr< const base::Object > obj, std::vector< Eigen::Vector3d > *vertices)
Eigen::Matrix4d Matrix4d
Definition: base_map_fwd.h:32
Type CalculateIOUBBox(const base::BBox2D< Type > &box1, const base::BBox2D< Type > &box2)
Definition: common.h:206
bool IsObjectEightVerticesAllBehindCamera(const std::shared_ptr< const base::Object > &obj, const Eigen::Matrix4d &world2camera_pose, base::BaseCameraModelPtr camera_model)
bool IsPtInFrustum(const VectorType &pt, double width, double height)
Definition: camera_util.h:37
T ymax
Definition: box.h:156
T xmin
Definition: box.h:153
T xmax
Definition: box.h:155
bool Pt3dToCamera2d(const Eigen::Vector3d &pt3d, const Eigen::Matrix4d &world2camera_pose, base::BaseCameraModelPtr camera_model, Eigen::Vector2d *pt2d)
Type CalculateAugmentedIOUBBox(const base::BBox2D< Type > &box1, const base::BBox2D< Type > &box2, const Type &augmented_buffer)
Definition: camera_util.h:45
std::shared_ptr< BaseCameraModel > BaseCameraModelPtr
Definition: camera.h:75
std::shared_ptr< const SensorObject > SensorObjectConstPtr
Definition: sensor_object.h:69
Eigen::Affine3d Affine3d
Definition: base_map_fwd.h:34