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
5
namespace
common_lib::sensor_data
{
6
13
struct
WheelEncoderData
{
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
common_lib::sensor_data
Definition
imu.hpp:5
common_lib::sensor_data::WheelEncoderData
Struct for wheel encoder data.
Definition
wheel_encoders.hpp:13
common_lib::sensor_data::WheelEncoderData::fr_rpm
double fr_rpm
Definition
wheel_encoders.hpp:17
common_lib::sensor_data::WheelEncoderData::steering_angle
double steering_angle
Definition
wheel_encoders.hpp:18
common_lib::sensor_data::WheelEncoderData::fl_rpm
double fl_rpm
Definition
wheel_encoders.hpp:16
common_lib::sensor_data::WheelEncoderData::timestamp_
rclcpp::Time timestamp_
Definition
wheel_encoders.hpp:20
common_lib::sensor_data::WheelEncoderData::WheelEncoderData
WheelEncoderData()=default
common_lib::sensor_data::WheelEncoderData::rl_rpm
double rl_rpm
Definition
wheel_encoders.hpp:14
common_lib::sensor_data::WheelEncoderData::rr_rpm
double rr_rpm
Definition
wheel_encoders.hpp:15
src
common_lib
include
common_lib
sensor_data
wheel_encoders.hpp
Generated by
1.9.8