Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
pose.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
common_lib/structures/position.hpp
"
4
5
namespace
common_lib::structures
{
13
struct
Pose
{
14
Position
position
;
15
double
orientation
= 0.0;
16
double
orientation_noise
= 0.0;
//< theta noise
17
rclcpp::Time
timestamp
= rclcpp::Time(0);
//< Last time the pose was updated
18
Pose
() =
default
;
19
Pose
(
Position
position
,
double
orientation
,
double
orientation_noise
= 0.0,
20
rclcpp::Time
timestamp
= rclcpp::Time(0));
21
Pose
(
double
x,
double
y,
double
theta,
double
x_noise = 0.0,
double
y_noise = 0.0,
22
double
theta_noise = 0.0, rclcpp::Time
timestamp
= rclcpp::Time(0));
23
};
24
25
struct
VehiclePose
:
public
Pose
{
26
public
:
27
Position
rear_axis_
;
28
double
velocity_
;
29
30
// Default constructor
31
VehiclePose
() =
default
;
32
33
// Constructor
34
VehiclePose
(
Position
cg,
Position
rear_axis,
double
orientation
,
double
velocity)
35
:
Pose
(cg,
orientation
),
rear_axis_
(rear_axis),
velocity_
(velocity){};
36
};
37
}
// namespace common_lib::structures
common_lib::structures
Definition
cone.hpp:10
position.hpp
common_lib::structures::Pose
Struct for pose representation.
Definition
pose.hpp:13
common_lib::structures::Pose::position
Position position
Definition
pose.hpp:14
common_lib::structures::Pose::timestamp
rclcpp::Time timestamp
Definition
pose.hpp:17
common_lib::structures::Pose::orientation_noise
double orientation_noise
theta in radians
Definition
pose.hpp:16
common_lib::structures::Pose::orientation
double orientation
Definition
pose.hpp:15
common_lib::structures::Pose::Pose
Pose()=default
common_lib::structures::Position
Definition
position.hpp:7
common_lib::structures::VehiclePose
Definition
pose.hpp:25
common_lib::structures::VehiclePose::rear_axis_
Position rear_axis_
Definition
pose.hpp:27
common_lib::structures::VehiclePose::VehiclePose
VehiclePose()=default
common_lib::structures::VehiclePose::velocity_
double velocity_
Definition
pose.hpp:28
common_lib::structures::VehiclePose::VehiclePose
VehiclePose(Position cg, Position rear_axis, double orientation, double velocity)
Definition
pose.hpp:34
src
common_lib
include
common_lib
structures
pose.hpp
Generated by
1.9.8