scenario_simulator_v2 C++ API
Namespaces | Macros | Functions
bounding_box.cpp File Reference
#include <geometry/bounding_box.hpp>
#include <geometry/polygon/polygon.hpp>
#include <Eigen/Core>
#include <optional>
#include <vector>
Include dependency graph for bounding_box.cpp:

Namespaces

 math
 
 math::geometry
 

Macros

#define EIGEN_MPL2_ONLY
 

Functions

std::optional< double > math::geometry::getPolygonDistance (const geometry_msgs::msg::Pose &pose0, const traffic_simulator_msgs::msg::BoundingBox &bbox0, const geometry_msgs::msg::Pose &pose1, const traffic_simulator_msgs::msg::BoundingBox &bbox1)
 Get the Polygon Distance object. More...
 
std::optional< std::pair< geometry_msgs::msg::Pose, geometry_msgs::msg::Pose > > math::geometry::getClosestPoses (const geometry_msgs::msg::Pose &pose0, const traffic_simulator_msgs::msg::BoundingBox &bbox0, const geometry_msgs::msg::Pose &pose1, const traffic_simulator_msgs::msg::BoundingBox &bbox1)
 
boost_point math::geometry::pointToSegmentProjection (const boost_point &p, const boost_point &p1, const boost_point &p2)
 
auto math::geometry::toPolygon2D (const geometry_msgs::msg::Pose &pose, const traffic_simulator_msgs::msg::BoundingBox &bounding_box) -> boost_polygon
 
std::vector< geometry_msgs::msg::Point > math::geometry::getPointsFromBbox (const traffic_simulator_msgs::msg::BoundingBox &bounding_box, const double width_extension_right=0.0, const double width_extension_left=0.0, const double length_extension_front=0.0, const double length_extension_rear=0.0)
 
auto math::geometry::toPolygon2D (const traffic_simulator_msgs::msg::BoundingBox &bounding_box) -> std::vector< geometry_msgs::msg::Point >
 
boost_point math::geometry::toBoostPoint (const geometry_msgs::msg::Point &point)
 
boost_polygon math::geometry::toBoostPolygon (const std::vector< geometry_msgs::msg::Point > &points)
 
geometry_msgs::msg::Pose math::geometry::toPose (const boost_point &point)
 
geometry_msgs::msg::Pose math::geometry::subtractPoses (const geometry_msgs::msg::Pose &pose1, const geometry_msgs::msg::Pose &pose2)
 
DistancesFromCenterToEdge math::geometry::getDistancesFromCenterToEdge (const traffic_simulator_msgs::msg::BoundingBox &bounding_box)
 

Macro Definition Documentation

◆ EIGEN_MPL2_ONLY

#define EIGEN_MPL2_ONLY