15 #ifndef BEHAVIOR_TREE_PLUGIN__VEHICLE__FOLLOW_LANE_SEQUENCE__STOP_AT_TRAFFIC_LIGHT_ACTION_HPP_
16 #define BEHAVIOR_TREE_PLUGIN__VEHICLE__FOLLOW_LANE_SEQUENCE__STOP_AT_TRAFFIC_LIGHT_ACTION_HPP_
28 namespace follow_lane_sequence
34 BT::NodeStatus
tick()
override;
37 BT::PortsList ports = {};
39 for (
const auto & parent_port : parent_ports) {
40 ports.emplace(parent_port.first, parent_port.second);
47 const traffic_simulator_msgs::msg::WaypointsArray & waypoints)
override;
50 std::optional<double> distance_to_stop_target_;
Definition: vehicle_action_node.hpp:36
static BT::PortsList providedPorts()
Definition: vehicle_action_node.hpp:41
Definition: stop_at_traffic_light_action.hpp:31
const traffic_simulator_msgs::msg::WaypointsArray calculateWaypoints() override
Definition: stop_at_traffic_light_action.cpp:53
const std::optional< traffic_simulator_msgs::msg::Obstacle > calculateObstacle(const traffic_simulator_msgs::msg::WaypointsArray &waypoints) override
Definition: stop_at_traffic_light_action.cpp:36
BT::NodeStatus tick() override
Definition: stop_at_traffic_light_action.cpp:87
std::optional< double > calculateTargetSpeed(double current_velocity)
Definition: stop_at_traffic_light_action.cpp:71
static BT::PortsList providedPorts()
Definition: stop_at_traffic_light_action.hpp:35
StopAtTrafficLightAction(const std::string &name, const BT::NodeConfiguration &config)
Definition: stop_at_traffic_light_action.cpp:29
Definition: action_node.hpp:39
std::string string
Definition: junit5.hpp:26