bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
bicycle_vehicle_model_dynamics.h
Go to the documentation of this file.
1#ifndef BICYCLE_VEHICLE_MODEL_DYNAMICS_H
2#define BICYCLE_VEHICLE_MODEL_DYNAMICS_H
3
4#include "bitrl/bitrl_types.h"
8
9#include <any>
10#include <map>
11#include <string>
12
13namespace bitrl
14{
15namespace dynamics
16{
17
31
43 : public MotionModelDynamicsBase<SysState<3>, DynamicsMatrixDescriptor,
44 std::map<std::string, std::any>>
45{
46
47 public:
49 std::map<std::string, std::any>>
51
57
62 SysState<3> &init_state);
63
69 void integrate(const input_type &input);
70
76 state_type &evaluate(const input_type &input);
77
82 void initialize_matrices(const input_type &input);
83
88 void update_matrices(const input_type &input);
89
94 void load_from_json(const std::string &filename){};
95
96 private:
101};
102
103} // namespace dynamics
104} // namespace bitrl
105
106#endif // BICYCLE_VEHICLE_MODEL_DYNAMICS_H
The BicycleVehicleModelDynamics class. Implements the bicycle vehicle model dynamics....
Definition bicycle_vehicle_model_dynamics.h:45
base_type::input_type input_type
Definition bicycle_vehicle_model_dynamics.h:53
base_type::matrix_descriptor_type matrix_descriptor_type
Definition bicycle_vehicle_model_dynamics.h:54
matrix_descriptor_type::vector_type vector_type
Definition bicycle_vehicle_model_dynamics.h:56
MotionModelDynamicsBase< SysState< 3 >, DynamicsMatrixDescriptor, std::map< std::string, std::any > > base_type
Definition bicycle_vehicle_model_dynamics.h:50
void integrate(const input_type &input)
integrate. Integrate the dynamics equations the model expects the following inputs the velocity of th...
Definition bicycle_vehicle_model_dynamics.cpp:15
base_type::state_type state_type
Definition bicycle_vehicle_model_dynamics.h:52
matrix_descriptor_type::matrix_type matrix_type
Definition bicycle_vehicle_model_dynamics.h:55
void load_from_json(const std::string &filename)
load_from_json Load the description of the chassis from the given json file
Definition bicycle_vehicle_model_dynamics.h:94
void update_matrices(const input_type &input)
update_matrices. Update the matrix description of the dynamics
Definition bicycle_vehicle_model_dynamics.cpp:58
state_type & evaluate(const input_type &input)
evaluate
Definition bicycle_vehicle_model_dynamics.cpp:47
void initialize_matrices(const input_type &input)
initialize_matrices. Initialize the matrix description of the dynamics
Definition bicycle_vehicle_model_dynamics.cpp:53
The DynamicsMatrixDescriptor class. Helper class to model the matrix representon of dynamical systems...
Definition dynamics_matrix_descriptor.h:19
DynMat< real_t > matrix_type
Definition dynamics_matrix_descriptor.h:22
DynVec< real_t > vector_type
Definition dynamics_matrix_descriptor.h:23
Base class for deriving motion models. Motion models describe the dynamics or kinematics of a rigid b...
Definition motion_model_base.h:24
Definition bitrl_consts.h:14
double real_t
real_t
Definition bitrl_types.h:23
Definition bicycle_vehicle_model_dynamics.h:19
real_t L
The distance between the front and real wheels in m.
Definition bicycle_vehicle_model_dynamics.h:29
real_t dt
The time step to use in secs.
Definition bicycle_vehicle_model_dynamics.h:23