arenaxr / arena-web-core

An environment to view and interact in multiuser virtual and augmented reality.
https://docs.arenaxr.org
BSD 3-Clause "New" or "Revised" License
37 stars 28 forks source link

feat: add xacro support to urdf models #644

Closed hi-liang closed 1 month ago

hi-liang commented 1 month ago

Currently handles joint specification and named package imports based on a single common base URL.

Note:

This does not handle physics mesh model processing on load with the current setup of aframe-physics-system dynamically loaded, as there is some yet-unsolved race condition where the model shape will not properly be processed by three-to-cannon

Future TODO:

This implementation currently instantiates a new xacro and urdf loader per component, which sorta is required for now because of differing data for those aforementioned baseURLs.

Given a large number of these components, it would be ideal to consolidate to a singleton for each. This may depend on a more robust "load on first use" system for AFRAME/ARENA too.