1#ifndef BITSIM_DYNAMICS_DIFF_DRIVE_DYNAMICS_H
2#define BITSIM_DYNAMICS_DIFF_DRIVE_DYNAMICS_H
38 std::map<std::string, std::any>>
80 real_t w,
const std::array<real_t, 2> &errors);
86 const std::array<real_t, 2> &errors);
93 const std::array<real_t, 2> &errors);
106 bool update_description_matrices_on_evaluate =
true);
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
real_t get_y_position() const
Read the y-coordinate.
Definition diff_drive_dynamics.h:137
void set_x_position(real_t x)
Set the x-coordinate.
Definition diff_drive_dynamics.h:132
void initialize_matrices(const input_type &input)
Initialize the matrices describing the the dynamics.
Definition diff_drive_dynamics.cpp:217
static SysState< 3 > integrate_state_v2(const SysState< 3 > &state, real_t dt, real_t v, real_t w, const std::array< real_t, 2 > &errors)
integrate_state_v2
Definition diff_drive_dynamics.cpp:57
MotionModelDynamicsBase< SysState< 3 >, DynamicsMatrixDescriptor, std::map< std::string, std::any > >::vector_type vector_type
vector_t
Definition diff_drive_dynamics.h:73
real_t get_velocity() const
get_velocity Returns the velocity used for integration
Definition diff_drive_dynamics.h:157
MotionModelDynamicsBase< SysState< 3 >, DynamicsMatrixDescriptor, std::map< std::string, std::any > >::input_type input_type
input_t The type of the input for solving the dynamics
Definition diff_drive_dynamics.h:61
void set_y_position(real_t y)
Set the y-coordinate.
Definition diff_drive_dynamics.h:142
static SysState< 3 > integrate_state_v3(const SysState< 3 > &state, real_t r, real_t l, real_t dt, real_t w1, real_t w2, const std::array< real_t, 2 > &errors)
integrate_state_v3
Definition diff_drive_dynamics.cpp:74
real_t get_x_position() const
Read the x-coordinate.
Definition diff_drive_dynamics.h:127
static SysState< 3 > integrate_state_v1(const SysState< 3 > &state, real_t tol, real_t dt, real_t v, real_t w, const std::array< real_t, 2 > &errors)
integrate_state_v1
Definition diff_drive_dynamics.cpp:33
real_t get_orientation() const
Read the y-coordinate.
Definition diff_drive_dynamics.h:147
real_t get_angular_velocity() const
get_velocity Returns the angular velocity used for integration
Definition diff_drive_dynamics.h:162
virtual state_type & evaluate(const input_type &input) override
Evaluate the new state using the given input it also updates the various matrices if needed.
Definition diff_drive_dynamics.cpp:211
void set_orientation(real_t theta)
Set the orientation.
Definition diff_drive_dynamics.h:152
DynamicVersion
The DynamicVersion enum. Helper enum to disambiguate the two supplied configurations.
Definition diff_drive_dynamics.h:46
@ V1
Definition diff_drive_dynamics.h:47
@ V3
Definition diff_drive_dynamics.h:49
@ V2
Definition diff_drive_dynamics.h:48
MotionModelDynamicsBase< SysState< 3 >, DynamicsMatrixDescriptor, std::map< std::string, std::any > >::matrix_type matrix_type
matrix_t Matrix type that describes the dynamics
Definition diff_drive_dynamics.h:67
DiffDriveDynamics(DynamicVersion type=DynamicVersion::V1, bool update_description_matrices_on_evaluate=true)
Constructor.
Definition diff_drive_dynamics.cpp:132
void update_matrices(const input_type &input)
updates the matrices used to describe this motion model
Definition diff_drive_dynamics.cpp:239
static SysState< 3 > integrate(const SysState< 3 > &state, const input_type &input, const DynamicVersion version)
integrate Factory method to apply the different integration methods
Definition diff_drive_dynamics.cpp:90
MotionModelDynamicsBase< SysState< 3 >, DynamicsMatrixDescriptor, std::map< std::string, std::any > >::state_type state_type
The type of the state handled by this dynamics object.
Definition diff_drive_dynamics.h:55
The DynamicsMatrixDescriptor class. Helper class to model the matrix representon of dynamical systems...
Definition dynamics_matrix_descriptor.h:19
state_type state_
Definition motion_model_base.h:171
MotionModelDynamicsBase(bool update_description_matrices_on_evaluate=true)
SysState utility class describing the state of a system.
Definition system_state.h:25
Models of how things move: wheeled robots, a bicycle, a quadrotor and a fixed wing aircraft,...
Definition bicycle_vehicle_model_dynamics.cpp:10
Definition dc_motor_backend_base.h:9
double real_t
real_t
Definition bitsim_types.h:20