scenario_simulator_v2 C++ API
Public Member Functions | List of all members
entity_behavior::BehaviorPluginBase Class Referenceabstract

#include <behavior_plugin_base.hpp>

Inheritance diagram for entity_behavior::BehaviorPluginBase:
Inheritance graph
[legend]

Public Member Functions

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

Constructor & Destructor Documentation

◆ ~BehaviorPluginBase()

virtual entity_behavior::BehaviorPluginBase::~BehaviorPluginBase ( )
virtualdefault

Member Function Documentation

◆ configure()

virtual void entity_behavior::BehaviorPluginBase::configure ( const rclcpp::Logger &  logger)
pure virtual

◆ getBehaviorParameter()

virtual traffic_simulator_msgs::msg::BehaviorParameter entity_behavior::BehaviorPluginBase::getBehaviorParameter ( )
pure virtual

◆ getBehaviorParameterKey()

auto entity_behavior::BehaviorPluginBase::getBehaviorParameterKey ( ) const -> const std::string &
inline

◆ getCanonicalizedEntityStatus()

virtual std::shared_ptr<traffic_simulator::CanonicalizedEntityStatus> entity_behavior::BehaviorPluginBase::getCanonicalizedEntityStatus ( )
pure virtual

◆ getCanonicalizedEntityStatusKey()

auto entity_behavior::BehaviorPluginBase::getCanonicalizedEntityStatusKey ( ) const -> const std::string &
inline

◆ getCurrentAction()

virtual const std::string& entity_behavior::BehaviorPluginBase::getCurrentAction ( ) const
pure virtual

◆ getCurrentTime()

virtual double entity_behavior::BehaviorPluginBase::getCurrentTime ( )
pure virtual

◆ getCurrentTimeKey()

auto entity_behavior::BehaviorPluginBase::getCurrentTimeKey ( ) const -> const std::string &
inline

◆ getDebugMarker()

virtual std::vector<visualization_msgs::msg::Marker> entity_behavior::BehaviorPluginBase::getDebugMarker ( )
pure virtual

◆ getDebugMarkerKey()

auto entity_behavior::BehaviorPluginBase::getDebugMarkerKey ( ) const -> const std::string &
inline

◆ getDefaultMatchingDistanceForLaneletPoseCalculation()

virtual double entity_behavior::BehaviorPluginBase::getDefaultMatchingDistanceForLaneletPoseCalculation ( )
pure virtual

◆ getDefaultMatchingDistanceForLaneletPoseCalculationKey()

auto entity_behavior::BehaviorPluginBase::getDefaultMatchingDistanceForLaneletPoseCalculationKey ( ) const -> const std::string &
inline

◆ getGoalPoses()

virtual std::vector<geometry_msgs::msg::Pose> entity_behavior::BehaviorPluginBase::getGoalPoses ( )
pure virtual

◆ getGoalPosesKey()

auto entity_behavior::BehaviorPluginBase::getGoalPosesKey ( ) const -> const std::string &
inline

◆ getHdMapUtils()

virtual std::shared_ptr<hdmap_utils::HdMapUtils> entity_behavior::BehaviorPluginBase::getHdMapUtils ( )
pure virtual

◆ getHdMapUtilsKey()

auto entity_behavior::BehaviorPluginBase::getHdMapUtilsKey ( ) const -> const std::string &
inline

◆ getLaneChangeParameters()

virtual traffic_simulator::lane_change::Parameter entity_behavior::BehaviorPluginBase::getLaneChangeParameters ( )
pure virtual

◆ getLaneChangeParametersKey()

auto entity_behavior::BehaviorPluginBase::getLaneChangeParametersKey ( ) const -> const std::string &
inline

◆ getObstacle()

virtual std::optional<traffic_simulator_msgs::msg::Obstacle> entity_behavior::BehaviorPluginBase::getObstacle ( )
pure virtual

◆ getObstacleKey()

auto entity_behavior::BehaviorPluginBase::getObstacleKey ( ) const -> const std::string &
inline

◆ getOtherEntityStatus()

virtual EntityStatusDict entity_behavior::BehaviorPluginBase::getOtherEntityStatus ( )
pure virtual

◆ getOtherEntityStatusKey()

auto entity_behavior::BehaviorPluginBase::getOtherEntityStatusKey ( ) const -> const std::string &
inline

◆ getPedestrianParameters()

virtual traffic_simulator_msgs::msg::PedestrianParameters entity_behavior::BehaviorPluginBase::getPedestrianParameters ( )
pure virtual

◆ getPedestrianParametersKey()

auto entity_behavior::BehaviorPluginBase::getPedestrianParametersKey ( ) const -> const std::string &
inline

◆ getPolylineTrajectory()

virtual std::shared_ptr<traffic_simulator_msgs::msg::PolylineTrajectory> entity_behavior::BehaviorPluginBase::getPolylineTrajectory ( )
pure virtual

◆ getPolylineTrajectoryKey()

auto entity_behavior::BehaviorPluginBase::getPolylineTrajectoryKey ( ) const -> const std::string &
inline

◆ getReferenceTrajectory()

virtual std::shared_ptr<math::geometry::CatmullRomSpline> entity_behavior::BehaviorPluginBase::getReferenceTrajectory ( )
pure virtual

◆ getReferenceTrajectoryKey()

auto entity_behavior::BehaviorPluginBase::getReferenceTrajectoryKey ( ) const -> const std::string &
inline

◆ getRequest()

virtual traffic_simulator::behavior::Request entity_behavior::BehaviorPluginBase::getRequest ( )
pure virtual

◆ getRequestKey()

auto entity_behavior::BehaviorPluginBase::getRequestKey ( ) const -> const std::string &
inline

◆ getRouteLanelets()

virtual lanelet::Ids entity_behavior::BehaviorPluginBase::getRouteLanelets ( )
pure virtual

◆ getRouteLaneletsKey()

auto entity_behavior::BehaviorPluginBase::getRouteLaneletsKey ( ) const -> const std::string &
inline

◆ getStepTime()

virtual double entity_behavior::BehaviorPluginBase::getStepTime ( )
pure virtual

◆ getStepTimeKey()

auto entity_behavior::BehaviorPluginBase::getStepTimeKey ( ) const -> const std::string &
inline

◆ getTargetSpeed()

virtual std::optional<double> entity_behavior::BehaviorPluginBase::getTargetSpeed ( )
pure virtual

◆ getTargetSpeedKey()

auto entity_behavior::BehaviorPluginBase::getTargetSpeedKey ( ) const -> const std::string &
inline

◆ getTrafficLights()

virtual std::shared_ptr<traffic_simulator::TrafficLightsBase> entity_behavior::BehaviorPluginBase::getTrafficLights ( )
pure virtual

◆ getTrafficLightsKey()

auto entity_behavior::BehaviorPluginBase::getTrafficLightsKey ( ) const -> const std::string &
inline

◆ getVehicleParameters()

virtual traffic_simulator_msgs::msg::VehicleParameters entity_behavior::BehaviorPluginBase::getVehicleParameters ( )
pure virtual

◆ getVehicleParametersKey()

auto entity_behavior::BehaviorPluginBase::getVehicleParametersKey ( ) const -> const std::string &
inline

◆ getWaypoints()

virtual traffic_simulator_msgs::msg::WaypointsArray entity_behavior::BehaviorPluginBase::getWaypoints ( )
pure virtual

◆ getWaypointsKey()

auto entity_behavior::BehaviorPluginBase::getWaypointsKey ( ) const -> const std::string &
inline

◆ setBehaviorParameter()

virtual void entity_behavior::BehaviorPluginBase::setBehaviorParameter ( const traffic_simulator_msgs::msg::BehaviorParameter &  value)
pure virtual

◆ setCanonicalizedEntityStatus()

virtual void entity_behavior::BehaviorPluginBase::setCanonicalizedEntityStatus ( const std::shared_ptr< traffic_simulator::CanonicalizedEntityStatus > &  value)
pure virtual

◆ setCurrentTime()

virtual void entity_behavior::BehaviorPluginBase::setCurrentTime ( const double &  value)
pure virtual

◆ setDebugMarker()

virtual void entity_behavior::BehaviorPluginBase::setDebugMarker ( const std::vector< visualization_msgs::msg::Marker > &  value)
pure virtual

◆ setDefaultMatchingDistanceForLaneletPoseCalculation()

virtual void entity_behavior::BehaviorPluginBase::setDefaultMatchingDistanceForLaneletPoseCalculation ( const double &  value)
pure virtual

◆ setGoalPoses()

virtual void entity_behavior::BehaviorPluginBase::setGoalPoses ( const std::vector< geometry_msgs::msg::Pose > &  value)
pure virtual

◆ setHdMapUtils()

virtual void entity_behavior::BehaviorPluginBase::setHdMapUtils ( const std::shared_ptr< hdmap_utils::HdMapUtils > &  value)
pure virtual

◆ setLaneChangeParameters()

virtual void entity_behavior::BehaviorPluginBase::setLaneChangeParameters ( const traffic_simulator::lane_change::Parameter value)
pure virtual

◆ setObstacle()

virtual void entity_behavior::BehaviorPluginBase::setObstacle ( const std::optional< traffic_simulator_msgs::msg::Obstacle > &  value)
pure virtual

◆ setOtherEntityStatus()

virtual void entity_behavior::BehaviorPluginBase::setOtherEntityStatus ( const EntityStatusDict value)
pure virtual

◆ setPedestrianParameters()

virtual void entity_behavior::BehaviorPluginBase::setPedestrianParameters ( const traffic_simulator_msgs::msg::PedestrianParameters &  value)
pure virtual

◆ setPolylineTrajectory()

virtual void entity_behavior::BehaviorPluginBase::setPolylineTrajectory ( const std::shared_ptr< traffic_simulator_msgs::msg::PolylineTrajectory > &  value)
pure virtual

◆ setReferenceTrajectory()

virtual void entity_behavior::BehaviorPluginBase::setReferenceTrajectory ( const std::shared_ptr< math::geometry::CatmullRomSpline > &  value)
pure virtual

◆ setRequest()

virtual void entity_behavior::BehaviorPluginBase::setRequest ( const traffic_simulator::behavior::Request value)
pure virtual

◆ setRouteLanelets()

virtual void entity_behavior::BehaviorPluginBase::setRouteLanelets ( const lanelet::Ids &  value)
pure virtual

◆ setStepTime()

virtual void entity_behavior::BehaviorPluginBase::setStepTime ( const double &  value)
pure virtual

◆ setTargetSpeed()

virtual void entity_behavior::BehaviorPluginBase::setTargetSpeed ( const std::optional< double > &  value)
pure virtual

◆ setTrafficLights()

virtual void entity_behavior::BehaviorPluginBase::setTrafficLights ( const std::shared_ptr< traffic_simulator::TrafficLightsBase > &  value)
pure virtual

◆ setVehicleParameters()

virtual void entity_behavior::BehaviorPluginBase::setVehicleParameters ( const traffic_simulator_msgs::msg::VehicleParameters &  value)
pure virtual

◆ setWaypoints()

virtual void entity_behavior::BehaviorPluginBase::setWaypoints ( const traffic_simulator_msgs::msg::WaypointsArray &  value)
pure virtual

◆ update()

virtual auto entity_behavior::BehaviorPluginBase::update ( const double  current_time,
const double  step_time 
) -> void
pure virtual

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