Robot Config
Both the GUI and PathPlannerLib require various configuration options to be set in order to generate trajectories that are accurately limited for the performance of your robot. All of these values have an effect on the performance of your robot, determining its maximum velocity, acceleration, etc. Therefore, you should take care to ensure that these options are configured as accurately as possible.
Robot Config Options
- Robot Mass
The mass of the robot, including bumpers and battery, in Kilograms. In most cases, choosing the maximum robot weight of ~68 KG (150 lbs) will work fine. However, lightweight robots may benefit from increased acceleration and better friction estimates if the robot mass is measured accurately.
- Robot MOI
The Moment of Inertia, or MOI, of the robot, including battery and bumpers. This can be calculated via CAD software, or measured in various ways.
Calculating MOI through sysID (Recommended)
Once sysID has been performed, the robot's MOI can be calculated using the following formula:
Where
Calculating a Rough MOI Estimate
The robot's MOI can be roughly estimated using the following formula:
However, this will likely lead to an inaccurate estimate as it assumes a uniform distribution of mass.
- Wheelbase
The distance between the front and back of the drivebase, in meters. Only relevant in holonomic mode.
- Trackwidth
The distance between the left and right sides of the drivebase, in meters.
Module Config Options
- Wheel Radius
The radius of the drive wheels, in meters. This should be listed wherever you buy your wheels from, but can also be measured.
- Drive Gearing
The gear reduction from the motors to the wheels. Since this is a reduction, this value should be greater than 1. For example, the gearing of an SDS MK4i module with L3 gearing is ~6.12
- True Max Drive Speed
The true maximum speed of the robot/drive module while driving under load, in meters/second.
- Wheel COF
The coefficient of friction between the drive wheels and the carpet. Some wheels will have their COF listed on their store page. The COF of friction can also be calculated by measuring how much force is required to pull the robot ( causing the wheels to slide) across the carpet. You can also tune this number until the wheels no longer slip while accelerating or turning in corners.
- Drive Motor
The type of motor used to drive the wheels of the robot.
- Drive Current Limit
The supply current limit applied to the drive motor controllers, in Amps.