This repository was archived by the owner on Jul 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 786
[ROS 2] Fix how wheel properties are retrieved in Ackermann Plugin #1427
Open
Yadunund
wants to merge
4
commits into
ros-simulation:ros2
Choose a base branch
from
Yadunund:fix_ackermann_wheel_radius
base: ros2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,22 @@ class GazeboRosAckermannDrivePrivate; | |
|
|
||
| <update_rate>100.0</update_rate> | ||
|
|
||
| <!-- Ackermann geometry and kinematic parameters--> | ||
|
|
||
| <!-- By default this plugin will attempt to infer the wheel radius, | ||
| wheelbase and track width from the geometry and poses of the links defined | ||
| as front and rear wheels. This only works when the collision meshes are | ||
| cylinder or sphere primitives. If the collision mesh for the model | ||
| needs to be more complex, you must set this param to false and specific | ||
| the values of the wheel params below. --> | ||
| <wheel_params_from_collision_mesh>true</wheel_params_from_collision_mesh> | ||
| <!-- The radius of the wheel in meters. Used when wheel_params_from_collision_mesh is false. --> | ||
| <wheel_radius>0.3</front_left_joint> | ||
| <!-- The distance between the front and rear sets of wheels in meters. Used when wheel_params_from_collision_mesh is false --> | ||
| <wheel_base>2.0</wheel_base> | ||
| <!-- The separate distance between the two steered wheels in meters. Used when wheel_params_from_collision_mesh is false --> | ||
| <track_width>1.2</track_width> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we please include a comment to indicate that this means "wheel_seperation" in ackermann language? Should help people to understand what really is just from reading.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done 7410afe |
||
|
|
||
| <!-- wheels --> | ||
| <front_left_joint>front_left_wheel_joint</front_left_joint> | ||
| <front_right_joint>front_right_wheel_joint</front_right_joint> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be