website/content/blog/Configuration_et_comportement_d-une_roue_Mecanum.en.md

109 lines
3.9 KiB
Markdown
Raw Permalink Normal View History

2024-10-14 16:29:13 +02:00
---
2024-10-14 18:41:45 +02:00
title: "Mecanum wheel configuration, behavior and programming"
2024-10-15 11:02:41 +02:00
date: "2024-10-12T18:24:45+02:00"
lastmod: "2024-10-15T09:02:37+02:00"
lastupdate: "2024-10-15T09:02:37+02:00"
2024-10-14 16:29:13 +02:00
author: "coach.francois"
authors: ["coach.francois"]
facebook_author: "false"
facebook_site: "false"
tags: [""]
categories: [""]
keywords: [""]
description: "Mecanum wheels allow omnidirectional movement of the robot's rolling base"
2024-10-14 18:18:31 +02:00
baneer: "https://werobot.fr/posts/Mecanum_blog.png"
banner: "https://werobot.fr/posts/Mecanum_blog.png"
2024-10-14 16:29:13 +02:00
draft: false
---
## Mecanum wheels allow omnidirectional movement of the robot's rolling base
Each set of Mecanum wheels ([REV-45-1655](https://www.revrobotics.com/rev-45-1655/)) is supplied with two right-hand Mecanum wheels ([REV-41-1656](https://www.revrobotics.com/content/docs/REV-41-1657-DR.pdf)) and two left-hand Mecanum wheels ([REV-41-1657](https://www.revrobotics.com/content/docs/REV-41-1656-DR.pdf)). This is determined by the direction of the leading edge of the rollers. If the rollers face left, it's a left-hand wheel, and if they face right, it's a right-hand wheel.
<br><br>
<center>
<div style="width: 100%; max-width: 700px;">
<table>
<tr>
2024-10-15 11:02:41 +02:00
<td align="center"><img src="https://werobot.fr/posts/Mecanum_left.png"><figcaption>Wheel type left</figcaption></td>
<td align="center"><img src="https://werobot.fr/posts/Mecanum_right.png"><figcaption>Wheel type wright</figcaption></td>
2024-10-14 16:29:13 +02:00
</tr>
</table>
</div>
</center>
<br><br>
Each side of the chassis needs one left and one right wheel. Mecanum chassis also require four motors to operate.
<br><br>
<center>
<div style="width: 100%; max-width: 700px;">
<img src="https://werobot.fr/posts/Macanum_position_roues.png">
</div>
</center>
<br><br>
To check that your Mecanum wheels are correctly configured, look up and down the drive train. The diagonal lines created by the angle of the rollers should form an “X” as shown above.
## Mecanum wheel transmission behavior
Turning all four wheels in the same direction at the same speed results in forward/reverse motion, as longitudinal force vectors add up but transverse vectors cancel out, as shown in the diagram below.
<br><br>
<center>
<div style="width: 100%; max-width: 700px;">
<img src="https://werobot.fr/posts/Mecanum_avant_arriere.png">
</div>
</center>
<br><br>
When both wheels on one side move in one direction while the other side moves in the opposite direction, the result is rotation around the transmission's central vertical axis, as illustrated below.
<br><br>
<center>
<div style="width: 100%; max-width: 700px;">
<img src="https://werobot.fr/posts/Mecanum_rotations.png">
</div>
</center>
<br><br>
When the wheels on the right-hand mechanism turn in one direction, while the wheels on the left-hand mechanism turn in the opposite direction, the result is lateral movement.
<br><br>
<center>
<div style="width: 100%; max-width: 700px;">
<img src="https://werobot.fr/posts/Mecanum_gauche_droite.png">
</div>
</center>
<br><br>
Using the above concepts in tandem, by varying the motor power for each type of wheel, enables the powertrain to move along different angular vectors.
<br><br>
<center>
<div style="width: 100%; max-width: 700px;">
<img src="https://werobot.fr/posts/Mecanum_lateral_avant_arriere.png">
</div>
</center>
2024-10-14 18:35:45 +02:00
<br>
## Links to Java programming examples for beginners
There are two possible operator control modes:
1. Robot-centric” mode, where the joystick controls the robot's direction in relation to the robot chassis.
2. Field-centric” mode, where the joystick controls the robot's direction in relation to the operator's field of vision.
Link : [Mecanum TeleOp](https://gm0.org/en/latest/docs/software/tutorials/mecanum-drive.html)
2024-10-14 18:38:51 +02:00
<br><br>
2024-10-14 18:35:45 +02:00
Example of Java programming in stand-alone mode :
Link : [Drivetrain Control](https://www.ctrlaltftc.com/practical-examples/drivetrain-control)
2024-10-14 18:18:31 +02:00
2024-10-14 18:20:28 +02:00
2024-10-14 18:36:59 +02:00
2024-10-14 18:38:51 +02:00
2024-10-14 18:41:45 +02:00
2024-10-15 11:00:55 +02:00
2024-10-15 11:02:41 +02:00
2024-10-14 16:29:13 +02:00