Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
wheel_encoders.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <rclcpp/rclcpp.hpp>
4
6
14 double rl_rpm = 0.0;
15 double rr_rpm = 0.0;
16 double fl_rpm = 0.0;
17 double fr_rpm = 0.0;
18 double steering_angle = 0.0;
19
20 rclcpp::Time timestamp_ = rclcpp::Time(0); //< Time of sensor data collection
21
22 WheelEncoderData() = default;
23 WheelEncoderData(double rl_rpm, double rr_rpm, double steering_angle,
24 rclcpp::Time timestamp = rclcpp::Time(0));
25 WheelEncoderData(double rl_rpm, double rr_rpm, double fl_rpm, double fr_rpm,
26 double steering_angle, rclcpp::Time timestamp = rclcpp::Time(0));
27};
28
29} // namespace common_lib::sensor_data