21 namespace std_ph = std::placeholders;
24 :
carma_guidance_plugins::TacticalPlugin(options),version_id_(
"v4.0"),plugin_name_(get_plugin_name_and_ns())
46 auto error = update_params<double>({
56 rcl_interfaces::msg::SetParametersResult result;
58 result.successful = !error;
77 RCLCPP_INFO_STREAM(rclcpp::get_logger(
"stop_and_wait_plugin"),
"Done loading parameters: " <<
config_);
84 yield_client_ = create_client<carma_planning_msgs::srv::PlanTrajectory>(
"yield_plugin/plan_trajectory");
86 RCLCPP_INFO(rclcpp::get_logger(
"stop_and_wait_plugin"),
"Yield Client Set");
89 return CallbackReturn::SUCCESS;
93 std::shared_ptr<rmw_request_id_t> srv_header,
94 carma_planning_msgs::srv::PlanTrajectory::Request::SharedPtr req,
95 carma_planning_msgs::srv::PlanTrajectory::Response::SharedPtr resp)
97 plugin_->plan_trajectory_cb(req, resp);
112#include "rclcpp_components/register_node_macro.hpp"
virtual carma_wm::WorldModelConstPtr get_world_model() final
Method to return the default world model provided as a convience by this base class If this method or...
std::shared_ptr< StopandWait > plugin_
rcl_interfaces::msg::SetParametersResult parameter_update_callback(const std::vector< rclcpp::Parameter > ¶meters)
Callback for dynamic parameter updates.
void plan_trajectory_callback(std::shared_ptr< rmw_request_id_t > srv_header, carma_planning_msgs::srv::PlanTrajectory::Request::SharedPtr req, carma_planning_msgs::srv::PlanTrajectory::Response::SharedPtr resp) override
Extending class provided callback which should return a planned trajectory based on the provided traj...
carma_ros2_utils::ClientPtr< carma_planning_msgs::srv::PlanTrajectory > yield_client_
std::string get_version_id() override final
Returns the version id of this plugin.
carma_ros2_utils::CallbackReturn on_configure_plugin()
This method should be used to load parameters and will be called on the configure state transition.
StopandWaitNode(const rclcpp::NodeOptions &)
Node constructor.
bool get_availability() override
Get the availability status of this plugin based on the current operating environment....
StopandWaitConfig config_
Stuct containing the algorithm configuration values for the stop_and_wait_plugin.
double trajectory_step_size
double centerline_sampling_spacing
bool enable_object_avoidance
int tactical_plugin_service_call_timeout
double default_stopping_buffer
double accel_limit_multiplier
double minimal_trajectory_duration