@@ -20,7 +20,7 @@ DiffDriveDynamics::integrate_state_v1(const SysState<3>& state, real_t tol, real
2020 if (std::fabs (w) < tol){
2121
2222 // / assume zero angular velocity
23- auto distance = 0.5 *v* dt;
23+ auto distance = 0.5 * v * dt;
2424 auto xincrement = (distance + errors[0 ])*std::cos (values[2 ] + errors[1 ]);
2525 auto yincrement = (distance + errors[0 ])*std::sin (values[2 ] + errors[1 ]);
2626
@@ -29,7 +29,7 @@ DiffDriveDynamics::integrate_state_v1(const SysState<3>& state, real_t tol, real
2929 }
3030 else {
3131
32- other[2 ] += w* dt + errors[1 ];
32+ other[2 ] += w * dt + errors[1 ];
3333
3434 // / clip the value
3535 if (std::fabs (state[2 ]) > rlenvscpp::consts::maths::PI){
@@ -215,7 +215,7 @@ DiffDriveDynamics::initialize_matrices(const DiffDriveDynamics::input_type& inpu
215215 set_matrix_update_flag (true );
216216
217217 if (!this ->has_matrix (" F" )){
218- matrix_type F = matrix_type::Zero (3 , 2 ); // (3,3, 0.0);
218+ matrix_type F = matrix_type::Zero (3 , 3 ); // (3,3, 0.0);
219219 this ->set_matrix (" F" , F);
220220 }
221221
@@ -235,8 +235,8 @@ DiffDriveDynamics::update_matrices(const DiffDriveDynamics::input_type& input){
235235 auto v = rlenvscpp::utils::template resolve<real_t >(" v" , input);
236236 auto errors = rlenvscpp::utils::template resolve<std::array<real_t , 2 >>(" errors" , input);
237237
238- auto distance = 0.5 *v* get_time_step ();
239- auto orientation = w* get_time_step ();
238+ auto distance = 0.5 * v * get_time_step ();
239+ auto orientation = w * get_time_step ();
240240 auto values = this ->state_ .get_values ();
241241
242242 if (std::fabs (w) < tol_){
0 commit comments