19#include <rclcpp/rclcpp.hpp>
21#include <std_msgs/msg/string.hpp>
22#include <carma_planning_msgs/msg/route.hpp>
23#include <carma_planning_msgs/msg/route_state.hpp>
24#include <carma_planning_msgs/msg/route_event.hpp>
25#include <visualization_msgs/msg/marker.hpp>
26#include <carma_planning_msgs/srv/get_available_routes.hpp>
27#include <carma_planning_msgs/srv/set_active_route.hpp>
28#include <carma_planning_msgs/srv/abort_active_route.hpp>
29#include <geometry_msgs/msg/twist_stamped.hpp>
33#include <tf2_ros/transform_listener.h>
35#include <carma_ros2_utils/carma_lifecycle_node.hpp>
50 class Route :
public carma_ros2_utils::CarmaLifecycleNode
55 carma_ros2_utils::SubPtr<geometry_msgs::msg::TwistStamped>
twist_sub_;
56 carma_ros2_utils::SubPtr<std_msgs::msg::String>
geo_sub_;
59 carma_ros2_utils::PubPtr<carma_planning_msgs::msg::Route>
route_pub_;
89 explicit Route(
const rclcpp::NodeOptions &);
Class which provies automated subscription and threading support for the world model.
The route package provides the following functionality:
carma_wm::WorldModelConstPtr wm_
RouteGeneratorWorker rg_worker_
Route(const rclcpp::NodeOptions &)
Route constructor.
rcl_interfaces::msg::SetParametersResult parameter_update_callback(const std::vector< rclcpp::Parameter > ¶meters)
Function callback for dynamic parameter updates.
carma_ros2_utils::SubPtr< geometry_msgs::msg::TwistStamped > twist_sub_
carma_ros2_utils::CallbackReturn handle_on_configure(const rclcpp_lifecycle::State &)
rclcpp::TimerBase::SharedPtr spin_timer_
carma_ros2_utils::CallbackReturn handle_on_activate(const rclcpp_lifecycle::State &)
carma_ros2_utils::ServicePtr< carma_planning_msgs::srv::GetAvailableRoutes > get_available_route_srv_
carma_ros2_utils::SubPtr< std_msgs::msg::String > geo_sub_
tf2_ros::Buffer tf2_buffer_
carma_ros2_utils::PubPtr< carma_planning_msgs::msg::Route > route_pub_
carma_ros2_utils::ServicePtr< carma_planning_msgs::srv::SetActiveRoute > set_active_route_srv_
carma_ros2_utils::PubPtr< carma_planning_msgs::msg::RouteState > route_state_pub_
carma_ros2_utils::ServicePtr< carma_planning_msgs::srv::AbortActiveRoute > abort_active_route_srv_
carma_ros2_utils::PubPtr< visualization_msgs::msg::Marker > route_marker_pub_
carma_ros2_utils::PubPtr< carma_planning_msgs::msg::RouteEvent > route_event_pub_
carma_wm::WMListener wml_
std::shared_ptr< const WorldModel > WorldModelConstPtr
Struct containing the algorithm configuration values for the route node.