Closed AliKarpuzoglu closed 1 year ago
It seems the issue is it fails to generate classes from the es5 code. It's responsible by es6-transpiler
, but I could not understand how the code supposed to be formatted or written to be satisfied by that regex madness there. If someone with a better understanding of that may explain it to me, I'm happy to reformat these parts to satisfy this thig.
@psaripp I am wondering: how did you get the code to run if they didn't get included in the js? Are you using a different building method?
After converting the code to ES5 and giving every class its own js-file I was able to transpile it, but it is hardcoded to work with the message type "octomap_msgs/Octomap" only, not (in my case) "nav_msgs/OccupancyGrid", so it does not work as OccupancyGridMap which I would have expected...
I can create a pull request providing my fixes but I think this needs some more discussion and development, I just made stuff work without knowing what it should do.
I also highly support the move to ES6 as described in https://github.com/RobotWebTools/ros3djs/issues/228
Hi, even after adding
to
es6-support/index.js
the grunt build fails with an "unexpected token"
is the file not finished? the weird thing is that the issue only occurs after the es6 output