scenario_simulator_v2 C++ API
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
entity_behavior::pedestrian::FollowPolylineTrajectoryAction Struct Reference

#include <follow_polyline_trajectory_action.hpp>

Inheritance diagram for entity_behavior::pedestrian::FollowPolylineTrajectoryAction:
Inheritance graph
[legend]
Collaboration diagram for entity_behavior::pedestrian::FollowPolylineTrajectoryAction:
Collaboration graph
[legend]

Public Member Functions

auto calculateWaypoints () -> const traffic_simulator_msgs::msg::WaypointsArray
 
auto calculateObstacle (const traffic_simulator_msgs::msg::WaypointsArray &) -> const std::optional< traffic_simulator_msgs::msg::Obstacle >
 
auto tick () -> BT::NodeStatus override
 
 PedestrianActionNode (const std::string &name, const BT::NodeConfiguration &config)
 
- Public Member Functions inherited from entity_behavior::PedestrianActionNode
 PedestrianActionNode (const std::string &name, const BT::NodeConfiguration &config)
 
void getBlackBoardValues () override
 
auto calculateUpdatedEntityStatusInWorldFrame (double target_speed) const -> traffic_simulator::EntityStatus
 
auto calculateUpdatedEntityStatus (double target_speed) const -> traffic_simulator::EntityStatus
 
- Public Member Functions inherited from entity_behavior::ActionNode
 ActionNode (const std::string &name, const BT::NodeConfiguration &config)
 
 ~ActionNode () override=default
 
auto foundConflictingEntity (const lanelet::Ids &following_lanelets) const -> bool
 
auto getDistanceToConflictingEntity (const lanelet::Ids &route_lanelets, const math::geometry::CatmullRomSplineInterface &spline) const -> std::optional< double >
 
auto getFrontEntityName (const math::geometry::CatmullRomSplineInterface &spline) const -> std::optional< std::string >
 
auto calculateStopDistance (const traffic_simulator_msgs::msg::DynamicConstraints &) const -> double
 
auto getDistanceToFrontEntity (const math::geometry::CatmullRomSplineInterface &spline) const -> std::optional< double >
 
auto getDistanceToStopLine (const lanelet::Ids &route_lanelets, const std::vector< geometry_msgs::msg::Point > &waypoints) const -> std::optional< double >
 
auto getDistanceToTrafficLightStopLine (const lanelet::Ids &route_lanelets, const math::geometry::CatmullRomSplineInterface &spline) const -> std::optional< double >
 
auto getRightOfWayEntities () const -> std::vector< traffic_simulator::CanonicalizedEntityStatus >
 
auto getRightOfWayEntities (const lanelet::Ids &following_lanelets) const -> std::vector< traffic_simulator::CanonicalizedEntityStatus >
 
auto getYieldStopDistance (const lanelet::Ids &following_lanelets) const -> std::optional< double >
 
auto getOtherEntityStatus (lanelet::Id lanelet_id) const -> std::vector< traffic_simulator::CanonicalizedEntityStatus >
 
auto stopEntity () const -> void
 
auto getHorizon () const -> double
 
auto executeTick () -> BT::NodeStatus override
 throws if the derived class return RUNNING. More...
 
void halt () override final
 
auto getEntityStatus (const std::string &target_name) const -> const traffic_simulator::CanonicalizedEntityStatus &
 
auto getDistanceToTargetEntityPolygon (const math::geometry::CatmullRomSplineInterface &spline, const std::string target_name, double width_extension_right=0.0, double width_extension_left=0.0, double length_extension_front=0.0, double length_extension_rear=0.0) const -> std::optional< double >
 
auto setCanonicalizedEntityStatus (const traffic_simulator::EntityStatus &entity_status) -> void
 
auto calculateUpdatedEntityStatus (double target_speed, const traffic_simulator_msgs::msg::DynamicConstraints &) const -> traffic_simulator::EntityStatus
 
auto calculateUpdatedEntityStatusInWorldFrame (double target_speed, const traffic_simulator_msgs::msg::DynamicConstraints &) const -> traffic_simulator::EntityStatus
 

Static Public Member Functions

static auto providedPorts () -> BT::PortsList
 
- Static Public Member Functions inherited from entity_behavior::PedestrianActionNode
static BT::PortsList providedPorts ()
 
- Static Public Member Functions inherited from entity_behavior::ActionNode
static BT::PortsList providedPorts ()
 

Public Attributes

std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > polyline_trajectory
 
- Public Attributes inherited from entity_behavior::PedestrianActionNode
traffic_simulator_msgs::msg::PedestrianParameters pedestrian_parameters
 

Additional Inherited Members

- Protected Attributes inherited from entity_behavior::PedestrianActionNode
traffic_simulator_msgs::msg::BehaviorParameter behavior_parameter
 
- Protected Attributes inherited from entity_behavior::ActionNode
traffic_simulator::behavior::Request request
 
std::shared_ptr< hdmap_utils::HdMapUtilshdmap_utils
 
std::shared_ptr< traffic_simulator::TrafficLightsBasetraffic_lights
 
std::shared_ptr< traffic_simulator::CanonicalizedEntityStatuscanonicalized_entity_status
 
double current_time
 
double step_time
 
double default_matching_distance_for_lanelet_pose_calculation
 
std::optional< double > target_speed
 
EntityStatusDict other_entity_status
 
lanelet::Ids route_lanelets
 

Member Function Documentation

◆ calculateObstacle()

auto entity_behavior::pedestrian::FollowPolylineTrajectoryAction::calculateObstacle ( const traffic_simulator_msgs::msg::WaypointsArray &  ) -> const std::optional<traffic_simulator_msgs::msg::Obstacle>

Obstacle avoidance is not implemented for this action.

Todo:
If you implement obstacle avoidance for this action, implement this virtual function to return the location of any obstacles blocking the path of this action's actor. However, this virtual function is currently used only for the visualization of obstacle information, so the obstacle avoidance algorithm does not necessarily need to use this virtual function.

◆ calculateWaypoints()

auto entity_behavior::pedestrian::FollowPolylineTrajectoryAction::calculateWaypoints ( ) -> const traffic_simulator_msgs::msg::WaypointsArray

◆ PedestrianActionNode()

entity_behavior::PedestrianActionNode::PedestrianActionNode

◆ providedPorts()

auto entity_behavior::pedestrian::FollowPolylineTrajectoryAction::providedPorts ( ) -> BT::PortsList
static

◆ tick()

auto entity_behavior::pedestrian::FollowPolylineTrajectoryAction::tick ( ) -> BT::NodeStatus
override

Member Data Documentation

◆ polyline_trajectory

std::shared_ptr<traffic_simulator_msgs::msg::PolylineTrajectory> entity_behavior::pedestrian::FollowPolylineTrajectoryAction::polyline_trajectory

The documentation for this struct was generated from the following files: