srobo / competition-simulator

A simulator for Student Robotics Virtual Competitions
https://studentrobotics.org/docs/simulator/
MIT License
9 stars 2 forks source link

Fix mass ratio warnings #311

Closed WillB97 closed 3 years ago

WillB97 commented 3 years ago

The extreme mass ratio between the wheel spacer and robot body causes a physics warning to be raised. SInce the spacer is not attached to the axle and does not rotate it's mass won't effect the movement of the wheel. This changes from using an arbitrary density to a fixed mass of 1 gram for each spacer.

PeterJCLaw commented 3 years ago

Do we know why this avoids the warnings? Presumably the mas previously was in this ballpark anyway, so the difference ratio is still something like 105 from my understanding (the wheels being ~10kg I think someone said?)

WillB97 commented 3 years ago

Currently the spacers are 0.1g compared to 17.3kg for the robot body. The increase of one order of magnitude is enough to remove the warning and it seems like a better idea to set the mass directly instead of using arbitrary densities.