Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
adapter.cpp
Go to the documentation of this file.
3
4Adapter::Adapter(std::shared_ptr<SENode> se_node) : node_(se_node) {
5 RCLCPP_INFO(this->node_->get_logger(), "Adapter created");
6}
7
8void Adapter::imu_subscription_callback(const sensor_msgs::msg::Imu& msg) {
9 this->node_->_imu_subscription_callback(msg);
10}
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...
Definition adapter.cpp:8
std::shared_ptr< SENode > node_
Definition adapter.hpp:23
Adapter(std::shared_ptr< SENode > se_node)
Definition adapter.cpp:4