Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
ConstantVelocityModel Class Reference

Motion model that predicts the pose of the robot given the velocities with a constant velocity model. More...

#include <constant_velocity_model.hpp>

Inheritance diagram for ConstantVelocityModel:
Inheritance graph
Collaboration diagram for ConstantVelocityModel:
Collaboration graph

Public Member Functions

Eigen::Vector3d get_pose_difference (const Eigen::Vector3d &previous_pose, const Eigen::VectorXd &motion_data, const double delta_t) override
 Gives the increments to the pose instead of the next pose.
 
Eigen::Matrix3d get_jacobian_pose (const Eigen::Vector3d &previous_pose, const Eigen::VectorXd &motion_data, const double delta_t) override
 Get the Jacobian matrix of the motion model in relation to the pose (state)
 
Eigen::MatrixXd get_jacobian_motion_data (const Eigen::Vector3d &previous_pose, const Eigen::VectorXd &motion_data, const double delta_t) override
 Get the Jacobian matrix of the motion model in relation to motion data (commands)
 
- Public Member Functions inherited from V2PMotionModel
virtual ~V2PMotionModel ()=default
 
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.
 

Detailed Description

Motion model that predicts the pose of the robot given the velocities with a constant velocity model.

Definition at line 11 of file constant_velocity_model.hpp.

Member Function Documentation

◆ get_jacobian_motion_data()

Eigen::MatrixXd ConstantVelocityModel::get_jacobian_motion_data ( const Eigen::Vector3d &  previous_pose,
const Eigen::VectorXd &  motion_data,
const double  delta_t 
)
overridevirtual

Get the Jacobian matrix of the motion model in relation to motion data (commands)

This is used to multiplty by the motion data noise to get the matrix to be summed to the covariance

Parameters
previous_pose
motion_data
delta_t
Returns
Eigen::Matrix3d

Implements V2PMotionModel.

Definition at line 34 of file constant_velocity_model.cpp.

◆ get_jacobian_pose()

Eigen::Matrix3d ConstantVelocityModel::get_jacobian_pose ( const Eigen::Vector3d &  previous_pose,
const Eigen::VectorXd &  motion_data,
const double  delta_t 
)
overridevirtual

Get the Jacobian matrix of the motion model in relation to the pose (state)

This is used to multiplty by the previous covariance to get the matrix, propagating the previous pose error to the current pose error (variance)

Parameters
previous_pose
motion_data
delta_t
Returns
Eigen::Matrix3d

Implements V2PMotionModel.

Definition at line 21 of file constant_velocity_model.cpp.

◆ get_pose_difference()

Eigen::Vector3d ConstantVelocityModel::get_pose_difference ( const Eigen::Vector3d &  previous_pose,
const Eigen::VectorXd &  motion_data,
const double  delta_t 
)
overridevirtual

Gives the increments to the pose instead of the next pose.

Parameters
previous_pose
motion_data(vx, vy, omega)
delta_t
Returns
Eigen::Vector3d

Implements V2PMotionModel.

Definition at line 7 of file constant_velocity_model.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: