how do i design a custom mecanum drive train with motors close to the ground with space for pollen intake and code it
To design a custom mecanum drivetrain, you can use a parallel plate configuration where the wheels and power transmission are placed between two plates. Keeping the width of these drive pods to 3 inches or less maximizes the open space in the center of the robot for mechanisms like an intake. To keep the center of gravity low, motors should be mounted as low as possible. You can face mount the motors directly to the innermost plate, or place them on a third plate situated between the outer and inner plates to save space in the middle of the robot. Ensure you maintain a ground clearance of 0.25 to 0.5 inches on flat foam tiles so the chassis does not drag. Game Manual 0 recommends using four independently powered mecanum wheels between 3 and 4 inches in diameter, arranged so that the rollers point toward the center of the robot in an "X" shape when viewed from above.
While the provided documentation does not mention a "pollen" intake specifically, Game Manual 0 notes that designing a wide center section is highly advantageous for grabbing game elements and fitting intake mechanisms. Using a parallel plate setup helps maximize this interior space.
For programming the drivetrain, Game Manual 0 advises against hardcoding individual movements. Instead, you can use inverse kinematics to translate the robot's overall desired forward velocity (vf), strafe velocity (vs), and rotational velocity (ω) into individual wheel velocities. The exact formulas are:
v_{fl} = v_f - v_s - (2r_b \cdot \omega)
v_{bl} = v_f + v_s - (2r_b \cdot \omega)
v_{br} = v_f - v_s + (2r_b \cdot \omega)
v_{fr} = v_f + v_s + (2r_b \cdot \omega)
Further details on implementing and refining this code can be found in restricted resources. The REV Robotics Docs cover these concepts in Programming Mecanum - Refined (https://docs.revrobotics.com/duo-control/hello-robot-blocks/part-4-going-beyond/programming-mecanum-refined) and Programming Mecanum - Simplified (https://docs.revrobotics.com/duo-control/hello-robot-blocks/part-4-going-beyond/programming-mecanum-simplified). Additionally, advanced kinematics and tracking are detailed in the FTCLib documentation on Mecanum Drive Kinematics (https://docs.ftclib.org/kinematics/wpilib-kinematics/mecanum-drive-kinematics) and Mecanum Drive Odometry (https://docs.ftclib.org/kinematics/wpilib-kinematics/mecanum-drive-odometry).