Skip to content
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

WIP: Addition of Cone collision #1805

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bperseghetti
Copy link

WIP: Add cone collision

Before creating a pull request

  • Document new methods and classes
  • Format new code files using ClangFormat by running make format
  • Build with -DDART_TREAT_WARNINGS_AS_ERRORS=ON and resolve all the compile warnings

Before merging a pull request

  • Set version target by selecting a milestone on the right side
  • Summarize this change in CHANGELOG.md
  • Add unit test(s) for this change
  • Add Python bindings for new methods and classes

Signed-off-by: Benjamin Perseghetti <[email protected]>
@jslee02
Copy link
Member

jslee02 commented Jun 27, 2024

Thank you for the initial work. If you're still interested in completing this feature, let me know. Otherwise, I'm happy to take over the rest of the work.

@bperseghetti
Copy link
Author

Thank you for the initial work. If you're still interested in completing this feature, let me know. Otherwise, I'm happy to take over the rest of the work.

Hi, thanks! I sadly do not have any time to dedicate to doing this. If you could take it over that would be greatly appreciated!

@jslee02
Copy link
Member

jslee02 commented Jun 27, 2024

Actually, I quickly checked your PR and noticed that ODE doesn't currently support cones:

https://bitbucket.org/odedevs/ode/src/b4253237006f7f6b5184f80ed973fb1c0bfc6039/include/ode/collision.h#lines-877:899

In this case, we may need to fall back to other collision engines (such as fcl or bullet) for cone support, or use a mesh for the cone shape (either created by the user or by adding a feature to create a mesh from a cone shape, which is not currently implemented in DART).

I will close this PR as there is no quick resolution using ODE at this time. Please feel free to reopen or make a new PR if you have any further ideas on how to move forward. Thank you for your effort though.

@jslee02 jslee02 closed this Jun 27, 2024
@bperseghetti
Copy link
Author

@jslee02 any thoughts on: https://bitbucket.org/odedevs/ode/src/master/contrib/TerrainAndCone/dCone.cpp

Maybe we can finally get that out of it's since 2006 purgatory and into the portion that is actually built?

@jslee02
Copy link
Member

jslee02 commented Jul 4, 2024

Is the cone shape present but not officially supported? In any case, it would be beneficial to incorporate ODE cone support into DART when it becomes available.

@bperseghetti
Copy link
Author

bperseghetti commented Jul 5, 2024

Is the cone shape present but not officially supported? In any case, it would be beneficial to incorporate ODE cone support into DART when it becomes available.

Well, it looks like it's been stuck in the "contrib" folder for the last 18 years. But seems on a basic review to include what we want and need for cone collisions. Is this something you (@jslee02) want to open up as a PR for ODE to get it into the "mainline build" and out of contrib? Also tagging @azeey here for tracking this since we have seen significant performance issues with trying to do this with a trimesh method.

@jslee02
Copy link
Member

jslee02 commented Jul 5, 2024

I appreciate the opportunity to contribute. However, I have some reservations about the effort required to update and integrate an 18-year-old contribution into the mainline build, as it may be significantly outdated and could present unforeseen issues. I will attempt to allocate some time to assess this further, but I must be candid in stating that it will be a lower priority for me now. Therefore, I would be open to others leading this project.

@bperseghetti
Copy link
Author

@jslee02 also mentioned it here in the ODE bitbucket on previous issue: https://bitbucket.org/odedevs/ode/issues/19/dcone

@bperseghetti
Copy link
Author

What's the likelihood that we could convince ODE group to use github or gitlab instead of bitbucket? I forgot how painful bitbucket is to deal with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants