Gazebo: add OmniRover with Mecanum wheels #139
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add two omni rover frames using Mecanum wheels: a 4 wheel rover with frame type OmniX (FRAME_TYPE = 3), and a 3 wheel rover that uses a new frame type Omni3Mecanum.
Figure: 4 wheel rover using frame type OmniX.
Figure: 3 wheel rover using frame type Omni3Mecanum.
Alternatives considered
The Gazebo model repo contains a Mecanum Lift. This model includes a planar controller plugin to move the model about in response to a planar twist command. The approach here is different in that the Mecaum wheels are modelled directly using 9 spheroid rollers in each wheel. There are models for left and right wheels that may be imported into another model using the SDF
<include>
element. This permits different geometries to be assembled, and allows the ArduPilot plugin to control each wheel directly by assigning it to a PWM channel.Figure: Mecanum wheel detail displaying roller joints.
Related issues and discussion
Usage
Run Gazebo
Run SITL
sim_vehicle.py -v Rover --model JSON --add-param-file=$HOME/SITL_Models/Gazebo/config/omni4rover.param --console --map
Once armed, set the mode to
MANUAL
and control as follows:rc 1
rc 2
rc 3
rc 4
Figure: omni rover moving laterally