RobotWebTools / rclnodejs

Node.js version of ROS 2.0 client
https://docs.ros.org/en/humble/Concepts/Basic/About-Client-Libraries.html?highlight=rclnodejs#community-maintained
Apache License 2.0
312 stars 70 forks source link

. #784

Closed newcanopies closed 3 years ago

newcanopies commented 3 years ago

.

minggangw commented 3 years ago

Because rclnodejs needs the support of Node.js, if you want to integrate it into the browser, you have to support Node.js, e.g. Electron or NW.js, or you can use ros2-web-bridge to run a ROS2 app in a common browser, e.g chrome

minggangw commented 3 years ago

Sorry for missing your previous comments, I will comment on them together

does that mean ros2-web-bridge would still need to be wrapped in Electron/NW.js?

Actually, you have to depend on roslibjs (as front-end running in the browser) + ros2-web-bridge (as back-end) and you will not need Electron any more, just Chrome/Edge will work well. Please check out some examples https://github.com/RobotWebTools/ros2-web-bridge/blob/develop/examples/html

can rclnodejs be wrapped in a react-app ?

If you are using roslibjs, of course, you can wrap it.