RobotWebTools / ros2-web-bridge

Bridging your browser to the ROS 2.0
Apache License 2.0
209 stars 68 forks source link

Ubuntu NodeJS + npm #119

Closed rukie closed 5 years ago

rukie commented 5 years ago

Is there any reason you suggest installing NodeJS and npm from sources, rather than what's available through Ubuntu's package repository?

I would think this would be easier for more users.

sudo apt install nodejs npm
rukie commented 5 years ago

Although it seems like that conflicts with a ros-crystal installation.... kinda defeating the purpose there huh.

minggangw commented 5 years ago

Sorry for the late response, the reason why we suggest to install the nodejs through nvm or download the latest LTS version is that this bridge leverages rclnodejs as a backend to access the ROS2, and rclnodejs is actually an C++ addon which does the binding of C library (here is rcl) to JavaScript.

But there are some compatibility problems if you use different version of nodejs (due to the change of v8), currently we are testing the project on the latest LTS of nodejs, which offers better support of ES6 features.

rukie commented 5 years ago

Thanks for the background!