scenario_simulator_v2 C++ API
Namespaces | Functions
pose.hpp File Reference
#include <lanelet2_matching/LaneletMatching.h>
#include <traffic_simulator/lanelet_wrapper/lanelet_wrapper.hpp>
Include dependency graph for pose.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 traffic_simulator
 
 traffic_simulator::lanelet_wrapper
 
 traffic_simulator::lanelet_wrapper::pose
 

Functions

auto traffic_simulator::lanelet_wrapper::pose::toMapPose (const LaneletPose &lanelet_pose, const bool fill_pitch=true) -> PoseStamped
 
auto traffic_simulator::lanelet_wrapper::pose::isAltitudeMatching (const double current_altitude, const double target_altitude) -> bool
 
auto traffic_simulator::lanelet_wrapper::pose::toLaneletPose (const Pose &map_pose, const lanelet::Id lanelet_id, const double matching_distance=1.0) -> std::optional< LaneletPose >
 
auto traffic_simulator::lanelet_wrapper::pose::toLaneletPose (const Pose &map_pose, const lanelet::Ids &lanelet_ids, const double matching_distance=1.0) -> std::optional< LaneletPose >
 
auto traffic_simulator::lanelet_wrapper::pose::toLaneletPose (const Pose &map_pose, const bool include_crosswalk, const double matching_distance=1.0) -> std::optional< LaneletPose >
 
auto traffic_simulator::lanelet_wrapper::pose::toLaneletPose (const Pose &map_pose, const BoundingBox &bounding_box, const bool include_crosswalk, const double matching_distance=1.0, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> std::optional< LaneletPose >
 
auto traffic_simulator::lanelet_wrapper::pose::toLaneletPoses (const Pose &map_pose, const lanelet::Id lanelet_id, const double matching_distance=5.0, const bool include_opposite_direction=true, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> std::vector< LaneletPose >
 
auto traffic_simulator::lanelet_wrapper::pose::alternativeLaneletPoses (const LaneletPose &reference_lanelet_pose) -> std::vector< LaneletPose >
 Retrieves alternative lanelet poses based on the reference lanelet pose. More...
 
auto traffic_simulator::lanelet_wrapper::pose::alongLaneletPose (const LaneletPose &from_pose, const lanelet::Ids &route_lanelets, const double distance) -> LaneletPose
 
auto traffic_simulator::lanelet_wrapper::pose::alongLaneletPose (const LaneletPose &from_pose, const double distance, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> LaneletPose
 
auto traffic_simulator::lanelet_wrapper::pose::canonicalizeLaneletPose (const LaneletPose &lanelet_pose) -> std::tuple< std::optional< LaneletPose >, std::optional< lanelet::Id >>
 Canonicalizes a given LaneletPose by adjusting the longitudinal position (s) to ensure it lies within the bounds of the specified lanelet. If the position is out of bounds, it traverses to previous or next lanelets to find the canonicalized position. More...
 
auto traffic_simulator::lanelet_wrapper::pose::canonicalizeLaneletPose (const LaneletPose &lanelet_pose, const lanelet::Ids &route_lanelets) -> std::tuple< std::optional< LaneletPose >, std::optional< lanelet::Id >>
 
auto traffic_simulator::lanelet_wrapper::pose::findMatchingLanes (const geometry_msgs::msg::Pose &, const traffic_simulator_msgs::msg::BoundingBox &, const bool include_crosswalk, const double matching_distance=1.0, const double reduction_ratio=DEFAULT_MATCH_TO_LANE_REDUCTION_RATIO, const traffic_simulator::RoutingGraphType type=traffic_simulator::RoutingConfiguration().routing_graph_type) -> std::optional< std::set< std::pair< double, lanelet::Id >>>
 
auto traffic_simulator::lanelet_wrapper::pose::matchToLane (const Pose &map_pose, const BoundingBox &bounding_box, const bool include_crosswalk, const double matching_distance=1.0, const double reduction_ratio=DEFAULT_MATCH_TO_LANE_REDUCTION_RATIO, const RoutingGraphType type=RoutingConfiguration().routing_graph_type) -> std::optional< lanelet::Id >
 
auto traffic_simulator::lanelet_wrapper::pose::leftLaneletIds (const lanelet::Id lanelet_id, const RoutingGraphType type, const bool include_opposite_direction) -> lanelet::Ids
 
auto traffic_simulator::lanelet_wrapper::pose::rightLaneletIds (const lanelet::Id lanelet_id, const RoutingGraphType type, const bool include_opposite_direction) -> lanelet::Ids