Closed virtuamechanica closed 6 months ago
This project is designed as a library to be used in a project - not for loading a VS Code extension. As you've seen I have experimented with displaying a URDF as a plugin but it's not something I'm working on or supporting any future.
Thank you Garett.
Sorry, but maybe the question was not clear enough. I don't want to use the library as a VS code extension/plugin. I just want to use your code 'as it' (repo example) , running it through VS Code in order to better understand the code. And I was experienced an issue when loading urdf file (using one of those shared in the repo).
When I debug the code, it seems that threeJs got an error since 'robot' object is not defined:
this.world.add(robot);
This object is not defined since the 'traverse' method is never called (this._requestId is not defined itself):
Thank you again.
I don't know anything about running from VS Code but there is some documentation on how to run the project examples locally you could try, first:
https://github.com/gkjohnson/urdf-loaders/tree/master/javascript#running-the-example
Thank you for your quick reply Garett.
I was finally able to solve my problem. I just had to correctly specify the url in the 'launch.json' configuration file of VS Code:
(nb: don't use double quotes for the url path).
Of course, need to set the html server first (npm start). Maybe it's possible to automate this using VS Code config file, but I did not check/test it.
We can then close this issue.
We can then close this issue.
For future note, assuming you are also virtuamechanica, you are able to close your own issues, which is appreciated.
Hello,
i would like to run the urdf load example from vs code, but it fails loading the urdf files (samples ones). I can successfully render the main html page, seing the menus, but urdf files can’t be processed.. if I run through npm start, it works fine.
Are there well know limitations using it from vs code ? I just want to debug and understand the code in détails Before integrating it in another app. (Nb: I know that you shared a vs code preview extension, so I was wondering why this urdf loader repo would not work properly..)
Thank you for your help