gkjohnson / urdf-loaders

URDF Loaders for Unity and THREE.js with example ATHLETE URDF Files open sourced from NASA JPL
https://gkjohnson.github.io/urdf-loaders/javascript/example/bundle/index.html
Apache License 2.0
471 stars 122 forks source link

Is it possible to use this repo as a base to code SDF loaders in javascript? #255

Closed addy1997 closed 1 year ago

addy1997 commented 1 year ago

Hi @gkjohnson ,

Your project is really interesting. I am wondering whether it is possible to code similar loader for SDF (Simulation Description Format) files. The purpose is to visualize SDF files of 3D models and objects in VR.

gkjohnson commented 1 year ago

Of course it is possible but that would be outside the scope of this project. The SDF format is much larger and more complicated than URDF. The specification for the SDF XML format should be available on the ROS wiki somewhere if you'd like to make a loader.

addy1997 commented 1 year ago

Of course it is possible but that would be outside the scope of this project. The SDF format is much larger and more complicated than URDF. The specification for the SDF XML format should be available on the ROS wiki somewhere if you'd like to make a loader.

Yeah, thanks for your reply. While writing the URDFclasses, did you refer to any library apart from the URDF structure? I am quite curious about your approach. Sorry for the barrage of questions.

gkjohnson commented 1 year ago

did you refer to any library apart from the URDF structure?

No - with a well-defined format specification you shouldn't need to reference any code and the URDF spec is fairly complete. I'm not familiar with the SDF format itself so I can't say how reliable the online spec documentation might be.