|
Formula Student Autonomous Systems
The code for the main driverless system
|
#include <position.hpp>

Public Member Functions | |
| Position ()=default | |
| Construct a new Position object with default values. | |
| Position (double x, double y, double x_noise=0.0, double y_noise=0.0, rclcpp::Time timestamp=rclcpp::Time(0)) | |
| Construct a new Position object with the given x and y values. | |
| double | euclidean_distance (const Position &other) const |
Public Attributes | |
| double | x = 0 |
| double | y = 0 |
| double | x_noise = 0 |
| double | y_noise = 0 |
| rclcpp::Time | timestamp = rclcpp::Time(0) |
Friends | |
| bool | operator== (const Position &p1, const Position &p2) |
Definition at line 7 of file position.hpp.
|
default |
Construct a new Position object with default values.
| common_lib::structures::Position::Position | ( | double | x, |
| double | y, | ||
| double | x_noise = 0.0, |
||
| double | y_noise = 0.0, |
||
| rclcpp::Time | timestamp = rclcpp::Time(0) |
||
| ) |
Construct a new Position object with the given x and y values.
Definition at line 7 of file position.cpp.
| double common_lib::structures::Position::euclidean_distance | ( | const Position & | other | ) | const |
Definition at line 26 of file position.hpp.
| rclcpp::Time common_lib::structures::Position::timestamp = rclcpp::Time(0) |
Definition at line 12 of file position.hpp.
| double common_lib::structures::Position::x = 0 |
Definition at line 8 of file position.hpp.
| double common_lib::structures::Position::x_noise = 0 |
Definition at line 10 of file position.hpp.
| double common_lib::structures::Position::y = 0 |
Definition at line 9 of file position.hpp.
| double common_lib::structures::Position::y_noise = 0 |
Definition at line 11 of file position.hpp.