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` use some new feature of ECMAScript 6, we recommend using the latest LTS Node.js. The lowest LTS Node.js we used to verify the unit tests is `6.10.0`. Your Node.js version should not be lower than this verion.
Before you build the module, you should make sure the ROS2 environments were loaded. You can check if the `AMENT_PREFIX_PATH` environment variable was set:
55
57
56
58
* For Windows: `echo %AMENT_PREFIX_PATH%` in the command prompt.
@@ -61,15 +63,15 @@ If the `AMENT_PREFIX_PATH` is unset, you should load the ROS2 environments:
61
63
62
64
* For Windows, open the command prompt and run
63
65
64
-
```
66
+
```bash
65
67
call <path\to\ros2>\install\local_setup.bat
66
-
```
68
+
```
67
69
68
70
* For Linux and macOS, open the terminal and run:
69
71
70
-
```
72
+
```bash
71
73
source<path/to/ros2>/install/local_setup.bash
72
-
```
74
+
```
73
75
74
76
This `Node.js` module is built by [node-gyp](https://www.npmjs.com/package/node-gyp), all you have to do is just to run the following command:
75
77
@@ -79,9 +81,9 @@ npm install
79
81
80
82
**Windows-specific**: make sure Python 2.x interpreter is first searched in your `PATH` before running the command. You can change it temporarily by:
81
83
82
-
```
84
+
```bash
83
85
set PATH=<path\to\python 2.x>;%PATH%
84
-
```
86
+
```
85
87
86
88
## Run Unit Test
87
89
@@ -92,9 +94,10 @@ npm run test
92
94
```
93
95
94
96
**Windows-specific**: the tests requires in a `Microsoft Visual Studio Native Tools command prompt`, and also make sure Python 3.x interpreter is first searched in your `PATH` before running te test. You can change it temporarily by:
95
-
```
97
+
98
+
```bash
96
99
set PATH=<path\to\python 3.x>;%PATH%
97
-
```
100
+
```
98
101
99
102
## How To Use
100
103
@@ -127,11 +130,11 @@ The API spec is generated by `jsdoc`, you can manually run `npm run docs` to cre
If you want to contribute code to this project, first you need to fork the
137
140
project. The next step is to send a pull request (PR) for review. The PR will be reviewed by the project team members. Once you have gained "Look Good To Me (LGTM)", the project maintainers will merge the PR.
0 commit comments