10 this->
node_->create_publisher<fs_msgs::msg::FinishedSignal>(
"/signal/finished", 10);
13 this->
node_->create_subscription<fs_msgs::msg::WheelStates>(
18 "/imu", rclcpp::QoS(10).reliability(RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT),
23 RCLCPP_DEBUG(this->
node_->get_logger(),
"Mission state received: %s",
24 std::string(msg.mission).c_str());
26 this->
node_->_go_ =
true;
30 auto message = fs_msgs::msg::FinishedSignal();
31 message.placeholder =
true;
37 double steering_angle = (msg.fl_steering_angle + msg.fr_steering_angle) / 2.0;
38 this->
node_->_wheel_speeds_subscription_callback(msg.rl_rpm, msg.fl_rpm, msg.rr_rpm, msg.fr_rpm,
39 steering_angle, msg.header.stamp);
Class that handles the communication between the SpeedEstimation node and the other nodes in the syst...
void imu_subscription_callback(const sensor_msgs::msg::Imu &msg)
Function that parses the message sent from the ros IMU topic and calls the respective node's function...
std::shared_ptr< SENode > node_
rclcpp::Subscription< fs_msgs::msg::WheelStates >::SharedPtr _fs_wheel_speeds_subscription_
rclcpp::Subscription< sensor_msgs::msg::Imu >::SharedPtr _fs_imu_subscription_
rclcpp::Publisher< fs_msgs::msg::FinishedSignal >::SharedPtr fsds_ebs_publisher_
void wheel_speeds_subscription_callback(const fs_msgs::msg::WheelStates &msg) const
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_
const std::unordered_map< std::string, Mission > fsds_to_system