Skip to content

Commit

Permalink
Reduce number of operations in the EoMs by using v2pt_theory formulation
Browse files Browse the repository at this point in the history
  • Loading branch information
tjstienstra committed Mar 26, 2024
1 parent 39f526d commit d7872c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/brim/bicycle/tires.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ def _define_constraints(self) -> None:
if self.no_longitudinal_slip or self.no_lateral_slip:
aux_wc = self.auxiliary_handler.get_auxiliary_velocity(self.wheel.center)
v0 = (self.wheel.center.pos_from(self.ground.origin).dt(self.ground.frame)
+ cross(self.wheel.frame.ang_vel_in(self.ground.frame),
self.contact_point.pos_from(self.wheel.center)))
- cross(self.contact_point.pos_from(self.wheel.center),
self.wheel.frame.ang_vel_in(self.ground.frame)))
aux_v0 = aux_wc - aux_gnd + aux_cp
for vector in no_slip_vectors:
self.system.add_nonholonomic_constraints(
Expand Down

0 comments on commit d7872c3

Please sign in to comment.