scenario_simulator_v2 C++ API
Namespaces | Functions
traffic_simulator::pose Namespace Reference

Namespaces

 pedestrian
 

Functions

auto quietNaNPose () -> geometry_msgs::msg::Pose
 
auto quietNaNLaneletPose () -> LaneletPose
 
auto canonicalize (const LaneletPose &lanelet_pose, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> std::optional< CanonicalizedLaneletPose >
 
auto toMapPose (const CanonicalizedLaneletPose &lanelet_pose) -> geometry_msgs::msg::Pose
 
auto toMapPose (const LaneletPose &lanelet_pose, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> geometry_msgs::msg::Pose
 
auto toCanonicalizedLaneletPose (const geometry_msgs::msg::Pose &map_pose, const bool include_crosswalk, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> std::optional< CanonicalizedLaneletPose >
 
auto toCanonicalizedLaneletPose (const geometry_msgs::msg::Pose &map_pose, const traffic_simulator_msgs::msg::BoundingBox &bounding_box, const bool include_crosswalk, const double matching_distance, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> std::optional< CanonicalizedLaneletPose >
 
auto toCanonicalizedLaneletPose (const geometry_msgs::msg::Pose &map_pose, const traffic_simulator_msgs::msg::BoundingBox &bounding_box, const lanelet::Ids &unique_route_lanelets, const bool include_crosswalk, const double matching_distance, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> std::optional< CanonicalizedLaneletPose >
 
auto transformRelativePoseToGlobal (const geometry_msgs::msg::Pose &global_pose, const geometry_msgs::msg::Pose &relative_pose) -> geometry_msgs::msg::Pose
 
auto relativePose (const geometry_msgs::msg::Pose &from, const geometry_msgs::msg::Pose &to) -> std::optional< geometry_msgs::msg::Pose >
 
auto relativePose (const geometry_msgs::msg::Pose &from, const CanonicalizedLaneletPose &to) -> std::optional< geometry_msgs::msg::Pose >
 
auto relativePose (const CanonicalizedLaneletPose &from, const geometry_msgs::msg::Pose &to) -> std::optional< geometry_msgs::msg::Pose >
 
auto boundingBoxRelativePose (const geometry_msgs::msg::Pose &from, const traffic_simulator_msgs::msg::BoundingBox &from_bounding_box, const geometry_msgs::msg::Pose &to, const traffic_simulator_msgs::msg::BoundingBox &to_bounding_box) -> std::optional< geometry_msgs::msg::Pose >
 
auto relativeLaneletPose (const CanonicalizedLaneletPose &from, const CanonicalizedLaneletPose &to, const bool allow_lane_change, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> LaneletPose
 
auto boundingBoxRelativeLaneletPose (const CanonicalizedLaneletPose &from, const traffic_simulator_msgs::msg::BoundingBox &from_bounding_box, const CanonicalizedLaneletPose &to, const traffic_simulator_msgs::msg::BoundingBox &to_bounding_box, const bool allow_lane_change, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> LaneletPose
 
auto isInLanelet (const CanonicalizedLaneletPose &canonicalized_lanelet_pose, const lanelet::Id lanelet_id, const double tolerance, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> bool
 
auto isAtEndOfLanelets (const CanonicalizedLaneletPose &canonicalized_lanelet_pose, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> bool
 
auto laneletLength (const lanelet::Id lanelet_id, const std::shared_ptr< hdmap_utils::HdMapUtils > &hdmap_utils_ptr) -> double
 

Function Documentation

◆ boundingBoxRelativeLaneletPose()

auto traffic_simulator::pose::boundingBoxRelativeLaneletPose ( const CanonicalizedLaneletPose from,
const traffic_simulator_msgs::msg::BoundingBox &  from_bounding_box,
const CanonicalizedLaneletPose to,
const traffic_simulator_msgs::msg::BoundingBox &  to_bounding_box,
const bool  allow_lane_change,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> LaneletPose

◆ boundingBoxRelativePose()

auto traffic_simulator::pose::boundingBoxRelativePose ( const geometry_msgs::msg::Pose &  from,
const traffic_simulator_msgs::msg::BoundingBox &  from_bounding_box,
const geometry_msgs::msg::Pose &  to,
const traffic_simulator_msgs::msg::BoundingBox &  to_bounding_box 
) -> std::optional<geometry_msgs::msg::Pose>

◆ canonicalize()

auto traffic_simulator::pose::canonicalize ( const LaneletPose lanelet_pose,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> std::optional<CanonicalizedLaneletPose>

◆ isAtEndOfLanelets()

auto traffic_simulator::pose::isAtEndOfLanelets ( const CanonicalizedLaneletPose canonicalized_lanelet_pose,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> bool

◆ isInLanelet()

auto traffic_simulator::pose::isInLanelet ( const CanonicalizedLaneletPose canonicalized_lanelet_pose,
const lanelet::Id  lanelet_id,
const double  tolerance,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> bool

◆ laneletLength()

auto traffic_simulator::pose::laneletLength ( const lanelet::Id  lanelet_id,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> double

◆ quietNaNLaneletPose()

auto traffic_simulator::pose::quietNaNLaneletPose ( ) -> LaneletPose

◆ quietNaNPose()

auto traffic_simulator::pose::quietNaNPose ( ) -> geometry_msgs::msg::Pose

◆ relativeLaneletPose()

auto traffic_simulator::pose::relativeLaneletPose ( const CanonicalizedLaneletPose from,
const CanonicalizedLaneletPose to,
const bool  allow_lane_change,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> LaneletPose

◆ relativePose() [1/3]

auto traffic_simulator::pose::relativePose ( const CanonicalizedLaneletPose from,
const geometry_msgs::msg::Pose &  to 
) -> std::optional<geometry_msgs::msg::Pose>

◆ relativePose() [2/3]

auto traffic_simulator::pose::relativePose ( const geometry_msgs::msg::Pose &  from,
const CanonicalizedLaneletPose to 
) -> std::optional<geometry_msgs::msg::Pose>

◆ relativePose() [3/3]

auto traffic_simulator::pose::relativePose ( const geometry_msgs::msg::Pose &  from,
const geometry_msgs::msg::Pose &  to 
) -> std::optional<geometry_msgs::msg::Pose>

◆ toCanonicalizedLaneletPose() [1/3]

auto traffic_simulator::pose::toCanonicalizedLaneletPose ( const geometry_msgs::msg::Pose &  map_pose,
const bool  include_crosswalk,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> std::optional<CanonicalizedLaneletPose>
Todo:
here matching_distance should be passed
Todo:
here matching_distance should be passed

◆ toCanonicalizedLaneletPose() [2/3]

auto traffic_simulator::pose::toCanonicalizedLaneletPose ( const geometry_msgs::msg::Pose &  map_pose,
const traffic_simulator_msgs::msg::BoundingBox &  bounding_box,
const bool  include_crosswalk,
const double  matching_distance,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> std::optional<CanonicalizedLaneletPose>

◆ toCanonicalizedLaneletPose() [3/3]

auto traffic_simulator::pose::toCanonicalizedLaneletPose ( const geometry_msgs::msg::Pose &  map_pose,
const traffic_simulator_msgs::msg::BoundingBox &  bounding_box,
const lanelet::Ids &  unique_route_lanelets,
const bool  include_crosswalk,
const double  matching_distance,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> std::optional<CanonicalizedLaneletPose>

◆ toMapPose() [1/2]

auto traffic_simulator::pose::toMapPose ( const CanonicalizedLaneletPose lanelet_pose) -> geometry_msgs::msg::Pose

◆ toMapPose() [2/2]

auto traffic_simulator::pose::toMapPose ( const LaneletPose lanelet_pose,
const std::shared_ptr< hdmap_utils::HdMapUtils > &  hdmap_utils_ptr 
) -> geometry_msgs::msg::Pose

◆ transformRelativePoseToGlobal()

auto traffic_simulator::pose::transformRelativePoseToGlobal ( const geometry_msgs::msg::Pose &  global_pose,
const geometry_msgs::msg::Pose &  relative_pose 
) -> geometry_msgs::msg::Pose