scenario_simulator_v2 C++ API
Public Member Functions | List of all members
entity_behavior::VehicleBehaviorTree Class Reference

#include <behavior_tree.hpp>

Inheritance diagram for entity_behavior::VehicleBehaviorTree:
Inheritance graph
[legend]
Collaboration diagram for entity_behavior::VehicleBehaviorTree:
Collaboration graph
[legend]

Public Member Functions

auto update (const double current_time, const double step_time) -> void override
 
void configure (const rclcpp::Logger &logger) override
 
const std::string & getCurrentAction () const override
 
auto getBehaviorParameter () -> traffic_simulator_msgs::msg::BehaviorParameter override
 
auto setBehaviorParameter (const traffic_simulator_msgs::msg::BehaviorParameter &) -> void override
 
std::shared_ptr< traffic_simulator::CanonicalizedEntityStatusgetCanonicalizedEntityStatus () override
 
void setCanonicalizedEntityStatus (const std::shared_ptr< traffic_simulator::CanonicalizedEntityStatus > &value) override
 
double getCurrentTime () override
 
void setCurrentTime (const double &value) override
 
std::vector< visualization_msgs::msg::Marker > getDebugMarker () override
 
void setDebugMarker (const std::vector< visualization_msgs::msg::Marker > &value) override
 
double getDefaultMatchingDistanceForLaneletPoseCalculation () override
 
void setDefaultMatchingDistanceForLaneletPoseCalculation (const double &value) override
 
std::vector< geometry_msgs::msg::Pose > getGoalPoses () override
 
void setGoalPoses (const std::vector< geometry_msgs::msg::Pose > &value) override
 
std::shared_ptr< hdmap_utils::HdMapUtilsgetHdMapUtils () override
 
void setHdMapUtils (const std::shared_ptr< hdmap_utils::HdMapUtils > &value) override
 
traffic_simulator::lane_change::Parameter getLaneChangeParameters () override
 
void setLaneChangeParameters (const traffic_simulator::lane_change::Parameter &value) override
 
std::optional< traffic_simulator_msgs::msg::Obstacle > getObstacle () override
 
void setObstacle (const std::optional< traffic_simulator_msgs::msg::Obstacle > &value) override
 
EntityStatusDict getOtherEntityStatus () override
 
void setOtherEntityStatus (const EntityStatusDict &value) override
 
traffic_simulator_msgs::msg::PedestrianParameters getPedestrianParameters () override
 
void setPedestrianParameters (const traffic_simulator_msgs::msg::PedestrianParameters &value) override
 
std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > getPolylineTrajectory () override
 
void setPolylineTrajectory (const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &value) override
 
std::shared_ptr< math::geometry::CatmullRomSplinegetReferenceTrajectory () override
 
void setReferenceTrajectory (const std::shared_ptr< math::geometry::CatmullRomSpline > &value) override
 
traffic_simulator::behavior::Request getRequest () override
 
void setRequest (const traffic_simulator::behavior::Request &value) override
 
lanelet::Ids getRouteLanelets () override
 
void setRouteLanelets (const lanelet::Ids &value) override
 
double getStepTime () override
 
void setStepTime (const double &value) override
 
std::optional< double > getTargetSpeed () override
 
void setTargetSpeed (const std::optional< double > &value) override
 
std::shared_ptr< traffic_simulator::TrafficLightsBasegetTrafficLights () override
 
void setTrafficLights (const std::shared_ptr< traffic_simulator::TrafficLightsBase > &value) override
 
traffic_simulator_msgs::msg::VehicleParameters getVehicleParameters () override
 
void setVehicleParameters (const traffic_simulator_msgs::msg::VehicleParameters &value) override
 
traffic_simulator_msgs::msg::WaypointsArray getWaypoints () override
 
void setWaypoints (const traffic_simulator_msgs::msg::WaypointsArray &value) override
 
- Public Member Functions inherited from entity_behavior::BehaviorPluginBase
virtual ~BehaviorPluginBase ()=default
 
auto getBehaviorParameterKey () const -> const std::string &
 
auto getCanonicalizedEntityStatusKey () const -> const std::string &
 
auto getCurrentTimeKey () const -> const std::string &
 
auto getDebugMarkerKey () const -> const std::string &
 
auto getDefaultMatchingDistanceForLaneletPoseCalculationKey () const -> const std::string &
 
auto getGoalPosesKey () const -> const std::string &
 
auto getHdMapUtilsKey () const -> const std::string &
 
auto getLaneChangeParametersKey () const -> const std::string &
 
auto getObstacleKey () const -> const std::string &
 
auto getOtherEntityStatusKey () const -> const std::string &
 
auto getPedestrianParametersKey () const -> const std::string &
 
auto getPolylineTrajectoryKey () const -> const std::string &
 
auto getReferenceTrajectoryKey () const -> const std::string &
 
auto getRequestKey () const -> const std::string &
 
auto getRouteLaneletsKey () const -> const std::string &
 
auto getStepTimeKey () const -> const std::string &
 
auto getTargetSpeedKey () const -> const std::string &
 
auto getTrafficLightsKey () const -> const std::string &
 
auto getVehicleParametersKey () const -> const std::string &
 
auto getWaypointsKey () const -> const std::string &
 

Member Function Documentation

◆ configure()

void entity_behavior::VehicleBehaviorTree::configure ( const rclcpp::Logger &  logger)
overridevirtual

◆ getBehaviorParameter()

auto entity_behavior::VehicleBehaviorTree::getBehaviorParameter ( ) -> traffic_simulator_msgs::msg::BehaviorParameter
overridevirtual

◆ getCanonicalizedEntityStatus()

std::shared_ptr<traffic_simulator::CanonicalizedEntityStatus> entity_behavior::VehicleBehaviorTree::getCanonicalizedEntityStatus ( )
inlineoverridevirtual

◆ getCurrentAction()

const std::string & entity_behavior::VehicleBehaviorTree::getCurrentAction ( ) const
overridevirtual

◆ getCurrentTime()

double entity_behavior::VehicleBehaviorTree::getCurrentTime ( )
inlineoverridevirtual

◆ getDebugMarker()

std::vector<visualization_msgs::msg::Marker> entity_behavior::VehicleBehaviorTree::getDebugMarker ( )
inlineoverridevirtual

◆ getDefaultMatchingDistanceForLaneletPoseCalculation()

double entity_behavior::VehicleBehaviorTree::getDefaultMatchingDistanceForLaneletPoseCalculation ( )
inlineoverridevirtual

◆ getGoalPoses()

std::vector<geometry_msgs::msg::Pose> entity_behavior::VehicleBehaviorTree::getGoalPoses ( )
inlineoverridevirtual

◆ getHdMapUtils()

std::shared_ptr<hdmap_utils::HdMapUtils> entity_behavior::VehicleBehaviorTree::getHdMapUtils ( )
inlineoverridevirtual

◆ getLaneChangeParameters()

traffic_simulator::lane_change::Parameter entity_behavior::VehicleBehaviorTree::getLaneChangeParameters ( )
inlineoverridevirtual

◆ getObstacle()

std::optional<traffic_simulator_msgs::msg::Obstacle> entity_behavior::VehicleBehaviorTree::getObstacle ( )
inlineoverridevirtual

◆ getOtherEntityStatus()

EntityStatusDict entity_behavior::VehicleBehaviorTree::getOtherEntityStatus ( )
inlineoverridevirtual

◆ getPedestrianParameters()

traffic_simulator_msgs::msg::PedestrianParameters entity_behavior::VehicleBehaviorTree::getPedestrianParameters ( )
inlineoverridevirtual

◆ getPolylineTrajectory()

std::shared_ptr<traffic_simulator_msgs::msg::PolylineTrajectory> entity_behavior::VehicleBehaviorTree::getPolylineTrajectory ( )
inlineoverridevirtual

◆ getReferenceTrajectory()

std::shared_ptr<math::geometry::CatmullRomSpline> entity_behavior::VehicleBehaviorTree::getReferenceTrajectory ( )
inlineoverridevirtual

◆ getRequest()

traffic_simulator::behavior::Request entity_behavior::VehicleBehaviorTree::getRequest ( )
inlineoverridevirtual

◆ getRouteLanelets()

lanelet::Ids entity_behavior::VehicleBehaviorTree::getRouteLanelets ( )
inlineoverridevirtual

◆ getStepTime()

double entity_behavior::VehicleBehaviorTree::getStepTime ( )
inlineoverridevirtual

◆ getTargetSpeed()

std::optional<double> entity_behavior::VehicleBehaviorTree::getTargetSpeed ( )
inlineoverridevirtual

◆ getTrafficLights()

std::shared_ptr<traffic_simulator::TrafficLightsBase> entity_behavior::VehicleBehaviorTree::getTrafficLights ( )
inlineoverridevirtual

◆ getVehicleParameters()

traffic_simulator_msgs::msg::VehicleParameters entity_behavior::VehicleBehaviorTree::getVehicleParameters ( )
inlineoverridevirtual

◆ getWaypoints()

traffic_simulator_msgs::msg::WaypointsArray entity_behavior::VehicleBehaviorTree::getWaypoints ( )
inlineoverridevirtual

◆ setBehaviorParameter()

auto entity_behavior::VehicleBehaviorTree::setBehaviorParameter ( const traffic_simulator_msgs::msg::BehaviorParameter &  behavior_parameter) -> void
overridevirtual

◆ setCanonicalizedEntityStatus()

void entity_behavior::VehicleBehaviorTree::setCanonicalizedEntityStatus ( const std::shared_ptr< traffic_simulator::CanonicalizedEntityStatus > &  value)
inlineoverridevirtual

◆ setCurrentTime()

void entity_behavior::VehicleBehaviorTree::setCurrentTime ( const double &  value)
inlineoverridevirtual

◆ setDebugMarker()

void entity_behavior::VehicleBehaviorTree::setDebugMarker ( const std::vector< visualization_msgs::msg::Marker > &  value)
inlineoverridevirtual

◆ setDefaultMatchingDistanceForLaneletPoseCalculation()

void entity_behavior::VehicleBehaviorTree::setDefaultMatchingDistanceForLaneletPoseCalculation ( const double &  value)
inlineoverridevirtual

◆ setGoalPoses()

void entity_behavior::VehicleBehaviorTree::setGoalPoses ( const std::vector< geometry_msgs::msg::Pose > &  value)
inlineoverridevirtual

◆ setHdMapUtils()

void entity_behavior::VehicleBehaviorTree::setHdMapUtils ( const std::shared_ptr< hdmap_utils::HdMapUtils > &  value)
inlineoverridevirtual

◆ setLaneChangeParameters()

void entity_behavior::VehicleBehaviorTree::setLaneChangeParameters ( const traffic_simulator::lane_change::Parameter value)
inlineoverridevirtual

◆ setObstacle()

void entity_behavior::VehicleBehaviorTree::setObstacle ( const std::optional< traffic_simulator_msgs::msg::Obstacle > &  value)
inlineoverridevirtual

◆ setOtherEntityStatus()

void entity_behavior::VehicleBehaviorTree::setOtherEntityStatus ( const EntityStatusDict value)
inlineoverridevirtual

◆ setPedestrianParameters()

void entity_behavior::VehicleBehaviorTree::setPedestrianParameters ( const traffic_simulator_msgs::msg::PedestrianParameters &  value)
inlineoverridevirtual

◆ setPolylineTrajectory()

void entity_behavior::VehicleBehaviorTree::setPolylineTrajectory ( const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &  value)
inlineoverridevirtual

◆ setReferenceTrajectory()

void entity_behavior::VehicleBehaviorTree::setReferenceTrajectory ( const std::shared_ptr< math::geometry::CatmullRomSpline > &  value)
inlineoverridevirtual

◆ setRequest()

void entity_behavior::VehicleBehaviorTree::setRequest ( const traffic_simulator::behavior::Request value)
inlineoverridevirtual

◆ setRouteLanelets()

void entity_behavior::VehicleBehaviorTree::setRouteLanelets ( const lanelet::Ids &  value)
inlineoverridevirtual

◆ setStepTime()

void entity_behavior::VehicleBehaviorTree::setStepTime ( const double &  value)
inlineoverridevirtual

◆ setTargetSpeed()

void entity_behavior::VehicleBehaviorTree::setTargetSpeed ( const std::optional< double > &  value)
inlineoverridevirtual

◆ setTrafficLights()

void entity_behavior::VehicleBehaviorTree::setTrafficLights ( const std::shared_ptr< traffic_simulator::TrafficLightsBase > &  value)
inlineoverridevirtual

◆ setVehicleParameters()

void entity_behavior::VehicleBehaviorTree::setVehicleParameters ( const traffic_simulator_msgs::msg::VehicleParameters &  value)
inlineoverridevirtual

◆ setWaypoints()

void entity_behavior::VehicleBehaviorTree::setWaypoints ( const traffic_simulator_msgs::msg::WaypointsArray &  value)
inlineoverridevirtual

◆ update()

auto entity_behavior::VehicleBehaviorTree::update ( const double  current_time,
const double  step_time 
) -> void
overridevirtual

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