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

importing PR2 robot URDF causes crash #25

Closed
WenqiangX opened this issue Dec 30, 2020 · 13 comments
Closed

importing PR2 robot URDF causes crash #25

WenqiangX opened this issue Dec 30, 2020 · 13 comments
Assignees

Comments

@WenqiangX
Copy link

Unity version: 2020.2.1f1c1
URDF Importer version: 0.0.4
OS platform: win10

I try to import PR2 robot with URDF importer, it can be loaded sucessfully, but when I hit the play botton in the editor, it causes a crash.

The materials and meshes are from https://github.com/pr2/pr2_common
The urdf file has been tried with https://gist.github.com/drohr5D/5551267 and https://github.com/sehoonha/pydart2/blob/master/examples/data/urdf/PR2/pr2.urdf.
Both urdf file cause the crash issue.

@vidurvij-Unity vidurvij-Unity self-assigned this Dec 30, 2020
@vidurvij-Unity
Copy link
Contributor

Hi @WenqiangX
Thanks for using the URDF importer and bringing this to our attention. We are looking into the issue and will get back to you with a solution as soon as possible.
Vidur

@vidurvij-Unity
Copy link
Contributor

vidurvij-Unity commented Jan 21, 2021

Hi @WenqiangX,
We reached out to the physics team and turns out right now we have a limit of 64 Articulation Bodies per GameObject. We are working on adding an error message if this happens in an imported robot, instead of the Editor crashing when it enters the play mode.
We are also working on supporting a higher number of Articulation Bodies per GameObject in the future.
Hope this allays any concerns you have in relation to this issue. Feel free to reach out if you have more questions.
Vidur

@WenqiangX
Copy link
Author

Thanks for your reply, hope the fix can be integrated into the Unity soon. @vidurvij-Unity

@ashBabu
Copy link

ashBabu commented Jan 24, 2021

Spent several days trying to fix the same issue with the 7-DOF Franka robot arm. Then I saw this. Not sure how to count this 64 articulation bodies per game object. A bit of explanation would be helpful.
Hope to see a solution soon.. Thanks

@vidurvij-Unity
Copy link
Contributor

@ashBabu Can you confirm which URDF file are you using in this repository ?

@ashBabu
Copy link

ashBabu commented Jan 28, 2021

I got the URDF after executing rosrun xacro --inorder panda_arm_hand.urdf.xacro

@karthikm-0
Copy link

@ashBabu please see my post Unity-Technologies/Unity-Robotics-Hub#125 if you are still having troubles.

@vidurvij-Unity
Copy link
Contributor

@WenqiangX and @ashBabu An update has been added in Unity that warns if the imported robot has more than 64 joints. We will update the Articulation Body documentation in the near future.

@alikureishy
Copy link

alikureishy commented Mar 20, 2021

By when do you anticipate supporting more than 64 joints imported via URDF? (Such as, 128?).

I'm using Unity v2021.1b, and there is presently no warning displayed for >64 joints (and, of course, it hangs when I press play).

@peifeng-unity
Copy link
Contributor

Hi @Safdark, thank you for asking. Our physics team is actively investigating to support more than 64 articulation body joints. It is a challenging problem due to the way that this cap is encoded in memory. We will keep you updated once there is more progress.

@vidurvij-Unity
Copy link
Contributor

@Safdark The fix has been back ported to previous Unity versions. If you want to continue using v2021.1 I would recommend updating to 21.1.0b12 or any other newer Unity version. For more information you can reference https://issuetracker.unity3d.com/issues/editor-crashes-on-physx-ig-islandsim-activatenode-when-entering-play-mode-and-articulationbody-is-present-in-a-scene

@alikureishy
Copy link

Thanks @vidurvij-Unity, and apologies for the delayed response. I tried the pre-release version 2021.2.0a14, but am seeing the same limit error:
"The maximum limit of ArticulationBody hierarchy size is reached: hierarchy of articulations can't have more than 64 ArticulationBody nodes!"

... But you mentioned that the "fix" has been made. Did I miss something?

@vidurvij-Unity
Copy link
Contributor

@Safdark As mentioned in the issue tracker link above, the fix was to add a warning if the number of ArticulationBody components is aboe 64 instead of crashing. The maximum number is limited by the Physics Engine which in this case in Nvidia PhysX 4.0. We are working on an update to increase this limit in the future. I hope this answers your question.
Feel free to field more questions.
Vidur

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

No branches or pull requests

6 participants