21 namespace std_ph = std::placeholders;
24 :
carma_guidance_plugins::TacticalPlugin(options),version_id_(
"v4.0"),plugin_name_(get_plugin_name_and_ns())
43 auto error = update_params<double>({
53 rcl_interfaces::msg::SetParametersResult result;
55 result.successful = !error;
80 return CallbackReturn::SUCCESS;
84 std::shared_ptr<rmw_request_id_t> srv_header,
85 carma_planning_msgs::srv::PlanTrajectory::Request::SharedPtr req,
86 carma_planning_msgs::srv::PlanTrajectory::Response::SharedPtr resp)
88 plugin_->plan_trajectory_cb(req, resp);
103#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...
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_
rclcpp::Logger get_logger()
Return the module-level logger used by all basic_autonomy functions.
Stuct containing the algorithm configuration values for the stop_and_wait_plugin.
double trajectory_step_size
double centerline_sampling_spacing
double default_stopping_buffer
double accel_limit_multiplier
double minimal_trajectory_duration