7 RCLCPP_WARN(this->get_logger(),
8 "FSDS shouldn't be used with simulated State Estimation\n The planning node will "
9 "not determine the middle path\n");
14 "/testing_only/odom", 10,
18 this->create_publisher<fs_msgs::msg::FinishedSignal>(
"/signal/finished", 10);
19 RCLCPP_DEBUG(this->get_logger(),
"Planning : FSDS adapter created");
23 auto mission = msg.mission;
29 RCLCPP_INFO(this->get_logger(),
"Planning : Set mission undefined for FSDS");
33 auto message = fs_msgs::msg::FinishedSignal();
34 message.placeholder =
true;
40 custom_interfaces::msg::Pose pose;
41 pose.header = msg.header;
42 tf2::Quaternion q(msg.pose.pose.orientation.x, msg.pose.pose.orientation.y,
43 msg.pose.pose.orientation.z, msg.pose.pose.orientation.w);
48 m.getRPY(roll, pitch, yaw);
50 pose.x = msg.pose.pose.position.x;
51 pose.y = msg.pose.pose.position.y;
void pose_callback(const nav_msgs::msg::Odometry &msg)
rclcpp::Publisher< fs_msgs::msg::FinishedSignal >::SharedPtr fsds_ebs_publisher_
void mission_state_callback(const fs_msgs::msg::GoSignal &msg) const
void finish() final
Function that sends the finish signal to the respective node.
rclcpp::Subscription< fs_msgs::msg::GoSignal >::SharedPtr fsds_state_subscription_
rclcpp::Subscription< nav_msgs::msg::Odometry >::SharedPtr fsds_position_subscription_
Responsible for path planning and trajectory generation for the autonomous vehicle.
void vehicle_localization_callback(const custom_interfaces::msg::Pose &message)
Callback for vehicle localization pose updates.
void set_mission(Mission mission)
Sets the mission type for planning execution.
PlanningConfig planning_config_
const std::unordered_map< std::string, Mission > fsds_to_system