-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Urdf with args and yaml configuration #371
Urdf with args and yaml configuration #371
Conversation
Nice to see some work in this direction. Some first suggestions / comments:
|
@ipa-led: as I used a squash-and-merge of #356 the first few commits of your PR now conflict with Could you rebase and the fix merge conflicts? That would also give you an opportunity to drop all the merge commits that Github introduced when updating your branch. |
9e8cf62
to
d59b16a
Compare
Hey @gavanderhoorn Sorry for the delay on this one. I've made the requested changes. Please tell what you think. If possible @ipa-nhg or @ipa-jfh can review it too. |
Starting to get there @ipa-led :) Any reason you did not add the mesh URLs to the yaml files? That would allow ppl to use custom meshes, which would help with #267. |
Similar question on the inertia parameters and |
No particular reason. It looks, indeed, that we can add more parameters (we also discussed this with Nadia). I will try to update it next week. Thank you. |
This looks like a nice change w.r.t. urdf-calibration support. I'm not sure whether it makes sense to export everything to yaml, because you will eventually end up with a general-purpose xacro forward to yaml... unless this is exactly what you want. But I do see the advantage to overload the specific mesh of wrist3... nitpick: typo |
@v4hn wrote:
yes, that is one of the possible end goals. But nothing will be removed without leaving some time for testing. |
ur_description/urdf/ur10.urdf.xacro
Outdated
<limit lower="${shoulder_pan_lower_limit}" upper="${shoulder_pan_upper_limit}" effort="330.0" velocity="2.16"/> | ||
</xacro:if> | ||
<limit lower="${shoulder_pan_lower_limit}" upper="${shoulder_pan_upper_limit}" | ||
effort="${shoulder_pan_effort_limit}" velocity="shoulder_pan_velocity_limit"/> |
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.
for the velocity limit the curly brackets are missed:
velocity="${ shoulder_pan_velocity_limit }"/>
|
||
offsets: | ||
shoulder_offset: 0.13585 # measured from model | ||
elbow_offset: -0.119 # measured from model |
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.
the elbow_offset was originally -0.1197
|
||
offsets: | ||
shoulder_offset: 0.13585 # measured from model | ||
elbow_offset: -0.119 # measured from model |
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.
the elbow_offset was originally -0.1197
Great job @ipa-led !! From the technical point of view: I tested the simulation of the 3 robots and it is working if you solve the issue I commented. Also I generated the urdf code of the 3 models using: and I compared the outcome with the outcome of the current upstream version, the only differences I found were a mistake copying the numbers, that the world link was removed and that all the About the style: I really like this solution, it is much cleaner and give us the chance to simplify the repository. |
Made the change requested by @ipa-nhg I will export also the rest of the parameters. |
This is not finished iiuc @ipa-nhg. |
@gavanderhoorn what about merge this PR and create a new PR for the new changes? |
#380 introduces new packages, so none of the files that this PR touches are changed by #380. |
@gavanderhoorn I'm agree that #380 introduce new packages, but those packages have the same function as the modified here and have to be updated to follow the same structure |
b6118e0
to
ede7c5a
Compare
Is this still something you'd like to continue with @ipa-led? |
On it for the wrid19 |
9320eda
to
b7d9f88
Compare
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.
In addition to the, admittedly minor, inline comments, I think this is good to go. Particularly considering it's probably been in use for a while already, via @fmauch's fork.
Apologies for letting this sit idle for so long, @ipa-led.
<!-- robot model parameters files--> | ||
<arg name="joints_limits_params" default="$(find ur_description)/config/ur10/joints_limits_parameters.yaml"/> | ||
<arg name="physical_params" default="$(find ur_description)/config/ur10/physical_parameters.yaml"/> | ||
|
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.
Any particular reason not to expose the visual_params
argument to the ur..._upload.launch
files?
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.
not really (or at least I don't remember why I did that) ... I will change that
@@ -1,10 +1,10 @@ | |||
<?xml version="1.0"?> | |||
<launch> | |||
<include file="$(find ur_e_description)/launch/ur10e_upload.launch"/> | |||
<include file="$(find ur_description)/launch/ur10e_upload.launch"/> | |||
|
|||
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" > | |||
<param name="use_gui" value="true"/> | |||
</node> | |||
<node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" /> |
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.
Not quite part of this PR, but this should probably be replaced to use robot_state_publisher
instead of the deprecated state_publisher
.
<arg name="safety_pos_margin" default="0.15" doc="The lower/upper limits in the safety controller" /> | ||
<arg name="safety_k_position" default="20" doc="Used to set k position in the safety controller" /> | ||
|
||
<param name="robot_description" command="$(find xacro)/xacro '$(find ur_description)/urdf/ur_robot.urdf.xacro' --inorder |
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.
Since this targets melodic-devel
, shouldn't --inorder
be dropped?
@fmauch @miguelprada @gavanderhoorn I should have added feature to solve Miguel's comment (sorry, took me way too long). |
@ipa-led: picking this up again. I've just changed the target to a new We'll merge this as-is now. Thanks for iterating and for the (enormous) amount of effort. I believe this is definitely an improvement over the current state of things. We trade |
@ipa-led: could you clarify why you've chosen to separate the parameters for the various parts of the models into different files? There are different files for the appearance and physical parameters. I'm trying to understand whether it would make sense to merge those two. The joint limits can certainly be kept separate: if we restructure/extend the file a little bit, it could also be used directly by MoveIt (instead of the separate file that's now hosted in the |
I think at that time I have separated by "concerns" (graphical, physicial, limits) but maybe it doesn't make sense to split. It just that maybe people wants to modify one file and ensuring that it doesn't impact the others.
I will have a look at that :) |
You don't have to add anything to this PR. We'll merge into the staging branch and can then continue there with follow-up PRs. |
Anything happening here recently? |
Can we please push this forward? |
I don't know if we are waiting for this be merge or for me to add other things. |
@gavanderhoorn twice now you wrote you will merge this as-is, but that was two months ago. |
Sorry, I had assumed this was already merged. Apologies for letting it sit for so long. Any reason not to merge already, @gavanderhoorn, @ipa-nhg? |
What's going on here? |
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.
LGTM 👍 Thanks @ipa-led
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.
Merging this into staging branch.
Thanks @ipa-led 👍 Great work and I believe this will greatly simplify maintenance of these packages in the future. 🤖 🇫🇷 |
Move the duplicates parameters into common file and uses yaml file and xacro macro to configure urdf.
This PR includes:
Modifications:
This PR doesn't apply to ur-e series (WIP in another PR)