-
Notifications
You must be signed in to change notification settings - Fork 41
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
dartsim: fdir1 expressed_in frame from SDFormat #224
Conversation
There is a new API in dartsim 6.10 that allows specifying the frame in which the fdir1 vector is expressed. This is not yet part of the SDFormat specification, but for now, look for link names (body nodes) that match the value of this namespaced //fdir1/@Gazebo:expressed_in attribute. Signed-off-by: Steve Peters <[email protected]>
Thanks for the PR!
Should we consider adding it there? Once this PR is released, users will start creating models with |
what do you think @azeey? should we add |
This capability seems very powerful and would be great to have, but a concern I have is that the allowed values of |
so it sounds like it would be preferable to keep it in a custom xml namespace at this time? is |
Maybe |
I would say A totally different approach, one that would take a lot more time, would be to create a feature in ign-physics for setting the friction direction frame and have the mecanum system send a command to the physics system via a |
My main reservation about using
Is there a downside to using various namespaces side-by-side? |
Yes, having to read a gazebo specific attribute in ign-physics creates a coupling between gazebo and ign-physics, which we probably want to avoid. So if we think if it's not gazebo-specific, then we should look into adding it to SDFormat. But it's always possible that other simulators implement gazebo specific tags. For example, another simulator may implement levels and choose to use the
My thought for the future was we that could keep all gazebo specific additions in one namespace and document them in a separate website that is dedicated to extensions to SDFormat. It would also allow us to have one schema file that we would use to validate the xml if we want to do that down the road. |
remember we are still planning to redo the friction parameters at some point: gazebosim/sdformat#31 also, this friction attribute is embedded in an |
Got it. So my final suggestion: use the But I don't feel too strongly either way. As @scpeters reminded, all the friction parameters should be reworked eventually. |
I don't really care which namespace we use. Any preferences @azeey ? |
|
Signed-off-by: Steve Peters <[email protected]>
@scpeters , are you planning to make any more changes before opening this for review? Or just waiting for the |
this doesn't need any more changes; it's just ign-gazebo that needs them. I've marked this ready for review |
Thanks, this looks good to me. I think we just need to find a good place to document this so it doesn't get forgotten. |
I think we could mention it in gazebosim/sdformat#31 |
Signed-off-by: Louise Poubel <[email protected]>
🎉 New feature
Summary
There is a new API in dartsim 6.10 that allows specifying the frame in which the first friction direction (
fdir1
) vector is expressed. This is not yet part of the SDFormat specification, but for now, set this frame if a link name (body node) matches the value of this namespaced//fdir1/@gazebo:expressed_in
attribute.Test it
I use this feature in a model of a vehicle with Mecanum wheels and will submit it to ignition-gazebo shortly.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge