Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
base_v2p_motion_model.cpp
Go to the documentation of this file.
1
#include "
motion_lib/v2p_models/base_v2p_motion_model.hpp
"
2
3
#include "
common_lib/maths/transformations.hpp
"
4
5
Eigen::Vector3d
V2PMotionModel::get_next_pose
(
6
const
Eigen::Vector3d &previous_pose,
const
Eigen::VectorXd &motion_data,
7
const
double
delta_t) {
// TODO: change to XD and create new acceleration model
8
Eigen::Vector3d next_pose =
9
previous_pose + this->
get_pose_difference
(previous_pose, motion_data, delta_t);
10
next_pose(2) =
common_lib::maths::normalize_angle
(next_pose(2));
11
return
next_pose;
12
}
base_v2p_motion_model.hpp
V2PMotionModel::get_next_pose
virtual Eigen::Vector3d get_next_pose(const Eigen::Vector3d &previous_pose, const Eigen::VectorXd &motion_data, const double delta_t)
Predict the pose of the robot given the motion data.
Definition
base_v2p_motion_model.cpp:5
V2PMotionModel::get_pose_difference
virtual Eigen::Vector3d get_pose_difference(const Eigen::Vector3d &previous_pose, const Eigen::VectorXd &motion_data, const double delta_t)=0
Gives the increments to the pose instead of the next pose.
common_lib::maths::normalize_angle
double normalize_angle(double angle)
Function to keep angle in [-Pi, Pi[ radians.
Definition
transformations.cpp:7
transformations.hpp
src
motion_lib
src
v2p_models
base_v2p_motion_model.cpp
Generated by
1.9.8