-
Notifications
You must be signed in to change notification settings - Fork 11
Add motor xacro macro; add base_footprint macro; fix base collision; fix wheel inertia; #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
fjp
wants to merge
11
commits into
ros-mobile-robots:master
Choose a base branch
from
fjp:master
base: master
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
11 commits
Select commit
Hold shift + click to select a range
4137445
add config for motor macro
fjp 33811e6
remove whitespace; rename material_dark_grey to dark_grey
fjp 290aeb1
add motor xacro macro
fjp 7bcc3bb
use motor stl without color - not working in gazebo
fjp 83e470f
update diffbot base dims
fjp 8cb0847
use new motor macros for diffbot
fjp 3f2ddac
add diffbot.gazebo.xacro
fjp 05b3589
update diffbot configs to fix link locations
fjp 446c7b6
change origin of wheel.stl in blender
fjp 8f92b85
Update common_macros.urdf.xacro; fix inertia/collision
fjp f182f9c
Update diffbot.urdf.xacro
fjp 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 |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| base: | ||
| mass: 2.5 # Base mass in Kg | ||
| mass: 0.8 # Base mass in Kg | ||
| x_size: 0.195 # Dimension in x axis | ||
| y_size: 0.198 # Dimension in y axis | ||
| z_size: 0.182 # Dimension in z axis | ||
| y_size: 0.08 # Dimension in y axis | ||
| z_size: 0.005 # Dimension in z axis | ||
| mesh: 'chassis.stl' # Name of the mesh files. Leave it empty ('') to have a white base. | ||
| #mesh: '' |
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 |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| wheel: | ||
| mass: 0.01 # Wheel mass in Kg | ||
| radius: 0.011 # Wheel radius in m | ||
| length: 0.006 # Wheel length in m, considering is as a cylinder | ||
| radius: 0.0331 # Wheel radius in m | ||
| length: 0.025 # Wheel length in m, considering is as a cylinder | ||
| mesh: 'wheel.stl' # Name of the mesh files. Leave it empty ('') to have a red wheel | ||
| x_offset: 0.035 | ||
| y_offset: -0.056 | ||
| z_offset: 0.008 | ||
| #mesh: '' | ||
| x_offset: 0.079 | ||
| y_offset: 0.015 | ||
| z_offset: -0.017 |
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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| mass: 0.1 # Motor mass in Kg | ||
| x_size: 0.07 # Motor dimension in x axis | ||
| y_size: 0.0225 # Motor dimension in y axis | ||
| z_size: 0.0188 # Motor dimension in z axis | ||
| mesh: 'motor.stl' # Name of the mesh files. Leave it empty ('') to have a red wheel | ||
| #mesh: '' | ||
| x_offset: 0.096 | ||
| y_offset: -0.0135 | ||
| z_offset: -0.017 |
Binary file not shown.
Binary file not shown.
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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| <?xml version="1.0"?> | ||
| <robot xmlns:xacro="http://ros.org/wiki/xacro"> | ||
|
|
||
| <!-- ros_control plugin --> | ||
| <gazebo> | ||
| <plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so"> | ||
| <robotNamespace>/diffbot</robotNamespace> | ||
| <!--robotParam>/robot_description</robotParam--> | ||
| <robotSimType>gazebo_ros_control/DefaultRobotHWSim</robotSimType> | ||
| </plugin> | ||
| </gazebo> | ||
|
|
||
| <!-- xacro to set the friction for the wheel. This patch was taken from the MIR | ||
| repository. | ||
| https://github.com/dfki-ric/mir_robot/tree/noetic. | ||
| https://github.com/dfki-ric/mir_robot/blob/a216d7374c21e360c94034d360b07fd7a4d42842/mir_description/urdf/include/mir_100.gazebo.xacro#L29 | ||
| --> | ||
| <xacro:macro name="set_wheel_friction" params="link friction"> | ||
| <gazebo reference="${link}"> | ||
| <mu1 value="${friction}"/> | ||
| <mu2 value="${friction}"/> | ||
| <kp value="10000000.0"/> | ||
| <kd value="1.0"/> | ||
| <minDepth>0.01</minDepth> | ||
| </gazebo> | ||
| </xacro:macro> | ||
|
|
||
| <xacro:macro name="set_all_wheel_frictions" > | ||
| <xacro:set_wheel_friction link="back_left_wheel" friction="200"/> | ||
| <xacro:set_wheel_friction link="front_left_wheel" friction="200"/> | ||
| <xacro:set_wheel_friction link="back_right_wheel" friction="200"/> | ||
| <xacro:set_wheel_friction link="front_right_wheel" friction="200"/> | ||
| </xacro:macro> | ||
|
|
||
| </robot> |
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
Oops, something went wrong.
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.
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.
I think this parameter should be left as
mobile_robot_descriptionbecause is the name of the package and the path to find the files, isn't it?