You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`rclnodejs` is a Node.js client for Robot Operating System (ROS) v2.0. It provides extremely simple & easy API for ROS 2.0 programming, the following example shows how to create a ROS 2.0 node and then publish a string message in only 6 lines of code.
2
4
3
5
```JavaScript
@@ -10,17 +12,32 @@ rclnodejs.init().then(() => {
10
12
});
11
13
```
12
14
13
-
# Install ROS 2.0
14
-
Befire install rclnodejs, make sure ROS 2.0 is installed first. Read and follow the [Installation Guide](https://github.com/ros2/ros2/wiki/Installation) to install ROS 2.0
15
+
## Install ROS 2.0
16
+
17
+
Before install rclnodejs, make sure ROS 2.0 is installed first. Read and follow the [Installation Guide](https://index.ros.org/doc/ros2/Installation/) to install ROS 2.0
18
+
19
+
## Install rclnodejs
15
20
16
-
# Install rclnodejs
17
21
After ROS 2.0 is installed, run the following command
18
22
19
-
```
23
+
```bash
20
24
npm i --save rclnodejs
21
25
```
22
26
23
-
# More Examples
27
+
## Match with ROS 2.0 Stable Releases
28
+
29
+
The latest release of rclnodejs is always verified with the [master](https://github.com/ros2/ros2) branch of ROS 2.0, but usually we will publish a new version after each ROS 2.0 release. Please find the specific version if you want to build your apps on one of ROS 2.0.
0 commit comments