Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
pacsim_adapter.hpp
Go to the documentation of this file.
1#pragma once
2
5#include "node/node.hpp"
6#include "pacsim/msg/stamped_scalar.hpp"
7#include "pacsim/msg/wheels.hpp"
8#include "sensor_msgs/msg/imu.hpp"
9
16class PacsimAdapter : public VENode {
17 rclcpp::Subscription<sensor_msgs::msg::Imu>::SharedPtr _imu_sub_;
18 rclcpp::Subscription<pacsim::msg::Wheels>::SharedPtr wheel_speeds_sub_;
19 rclcpp::Subscription<pacsim::msg::StampedScalar>::SharedPtr _steering_angle_sub_;
20
21public:
22 explicit PacsimAdapter(const VEParameters& parameters);
26 void imu_callback(const sensor_msgs::msg::Imu::SharedPtr msg);
30 void wss_callback(const pacsim::msg::Wheels::SharedPtr msg);
34 void steering_angle_callback(const pacsim::msg::StampedScalar::SharedPtr msg);
35};
Adapter class to interface with the Pacsim simulator for SLAM.
Definition pacsim.hpp:17
void steering_angle_callback(const pacsim::msg::StampedScalar::SharedPtr msg)
callback that gets called when the steering angle is received
rclcpp::Subscription< pacsim::msg::Wheels >::SharedPtr wheel_speeds_sub_
void wss_callback(const pacsim::msg::Wheels::SharedPtr msg)
callback that gets called when the wheel speeds are received
void imu_callback(const sensor_msgs::msg::Imu::SharedPtr msg)
callback that gets called when the IMU data is received
rclcpp::Subscription< sensor_msgs::msg::Imu >::SharedPtr _imu_sub_
rclcpp::Subscription< pacsim::msg::StampedScalar >::SharedPtr _steering_angle_sub_
Node class for the velocity estimation node.
Definition node.hpp:16