26 #include "modules/canbus/proto/chassis.pb.h" 30 #include "modules/common/vehicle_state/proto/vehicle_state.pb.h" 31 #include "modules/localization/proto/localization.pb.h" 53 Status Update(
const localization::LocalizationEstimate& localization,
54 const canbus::Chassis& chassis);
61 void Update(
const std::string& localization_file,
62 const std::string& chassis_file);
66 const localization::Pose&
pose()
const;
110 double pitch()
const;
185 bool ConstructExceptLinearVelocity(
186 const localization::LocalizationEstimate& localization);
188 common::VehicleState vehicle_state_;
189 localization::LocalizationEstimate original_localization_;
double heading() const
Get the heading of vehicle position, which is the angle between the vehicle's heading direction and t...
double roll() const
Get the vehicle roll angle.
double linear_acceleration() const
Get the vehicle's linear acceleration.
double angular_velocity() const
Get the vehicle's angular velocity.
The class of vehicle state. It includes basic information and computation about the state of the vehi...
Definition: vehicle_state_provider.h:46
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
math::Vec2d ComputeCOMPosition(const double rear_to_com_distance) const
Compute the position of center of mass(COM) of the vehicle, given the distance from rear wheels to th...
double y() const
Get the y-coordinate of vehicle position.
virtual ~VehicleStateProvider()=default
Default destructor.
Implements a class of 2-dimensional vectors.
Definition: vec2d.h:42
double x() const
Get the x-coordinate of vehicle position.
math::Vec2d EstimateFuturePosition(const double t) const
Estimate future position from current position and heading, along a period of time, by constant linear velocity, linear acceleration, angular velocity.
void set_linear_velocity(const double linear_velocity)
Set the vehicle's linear velocity.
const localization::Pose & pose() const
double pitch() const
Get the vehicle pitch angle.
double z() const
Get the z coordinate of vehicle position.
double kappa() const
Get the kappa of vehicle position. the positive or negative sign is decided by the vehicle heading ve...
A general class to denote the return status of an API call. It can either be an OK status for success...
Definition: status.h:43
double gear() const
Get the vehicle's gear position.
The class of Box2d. Here, the x/y axes are respectively Forward/Left, as opposed to what happens in e...
const localization::Pose & original_pose() const
double steering_percentage() const
Get the vehicle's steering angle.
double yaw() const
Get the vehicle yaw angle. As of now, use the heading instead of yaw angle. Heading angle with East a...
const VehicleState & vehicle_state() const
Status Update(const localization::LocalizationEstimate &localization, const canbus::Chassis &chassis)
Constructor by information of localization and chassis.
double linear_velocity() const
Get the vehicle's linear velocity.