Skip to content

Commit 10f7efa

Browse files
author
Minggang Wang
committed
Bump to v0.18.1
1 parent 92e2a99 commit 10f7efa

File tree

3 files changed

+29
-24
lines changed

3 files changed

+29
-24
lines changed

README.md

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
| develop | [![Build Status](https://travis-ci.org/RobotWebTools/rclnodejs.svg?branch=develop)](https://travis-ci.org/RobotWebTools/rclnodejs) | [![macOS Build Status](https://circleci.com/gh/RobotWebTools/rclnodejs/tree/develop.svg?style=shield)](https://circleci.com/gh/RobotWebTools/rclnodejs) | [![Build status](https://ci.appveyor.com/api/projects/status/upbc7tavdag1aa5e/branch/develop?svg=true)](https://ci.appveyor.com/project/minggangw/rclnodejs/branch/develop) |
66
| master | [![Build Status](https://travis-ci.org/RobotWebTools/rclnodejs.svg?branch=master)](https://travis-ci.org/RobotWebTools/rclnodejs) | [![macOS Build Status](https://circleci.com/gh/RobotWebTools/rclnodejs/tree/master.svg?style=shield)](https://circleci.com/gh/RobotWebTools/rclnodejs) | [![Build status](https://ci.appveyor.com/api/projects/status/upbc7tavdag1aa5e/branch/master?svg=true)](https://ci.appveyor.com/project/minggangw/rclnodejs/branch/master) |
77

8-
**rclnodejs** is a Node.js client library for the Robot Operating System
9-
([ROS 2](https://index.ros.org/doc/ros2/)). It provides a JavaScript API
10-
and tooling for ROS 2 programming. TypeScript declarations, i.e., (*.d.ts),
8+
**rclnodejs** is a Node.js client library for the Robot Operating System
9+
([ROS 2](https://index.ros.org/doc/ros2/)). It provides a JavaScript API
10+
and tooling for ROS 2 programming. TypeScript declarations, i.e., (\*.d.ts),
1111
are included to support use in TypeScript projects.
1212

1313
Here's an example for how to create a ROS 2 node that publishes a string message in a few lines of JavaScript.
@@ -61,7 +61,7 @@ npm i [email protected]
6161

6262
| RCLNODEJS Version | Compatible ROS 2 Release |
6363
| :-------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
64-
| [0.18.0 (current)](https://www.npmjs.com/package/rclnodejs/v/0.18.0) ([API](http://robotwebtools.org/rclnodejs/docs/0.18.0/index.html)) | [Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20201211) / [Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
64+
| [0.18.1 (current)](https://www.npmjs.com/package/rclnodejs/v/0.18.1) ([API](http://robotwebtools.org/rclnodejs/docs/0.18.0/index.html)) | [Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20201211) / [Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
6565
| [0.10.3](https://github.com/RobotWebTools/rclnodejs/releases/tag/0.10.3) | [Dashing Diademata - Patch 4](https://github.com/ros2/ros2/releases/tag/release-dashing-20191018) |
6666

6767
- **Note:** to install rclnodejs from GitHub: add `"rclnodejs":"RobotWebTools/rclnodejs#<branch>"` to your `package.json` depdendency section.
@@ -75,6 +75,7 @@ API documentation is generated by `jsdoc` and can be viewed in the `docs/` folde
7575
`rclnodejs` API can be used in TypeScript projects. You can find the TypeScript declaration files (\*.d.ts) in the `types/` folder.
7676

7777
Your `tsconfig.json` file should include the following compiler options:
78+
7879
```jsonc
7980
{
8081
"compilerOptions": {
@@ -98,18 +99,19 @@ rclnodejs.init().then(() => {
9899
});
99100
```
100101

101-
The benefits of using TypeScript become evident when working with more complex use-cases. ROS messages are defined in the `types/interfaces.d.ts` module. This module is updated as part of the `generate-messages` process described in the next section.
102+
The benefits of using TypeScript become evident when working with more complex use-cases. ROS messages are defined in the `types/interfaces.d.ts` module. This module is updated as part of the `generate-messages` process described in the next section.
102103

103104
## ROS2 Interface Message Generation (important)
104-
ROS components communicate by sending and receiving messages described
105-
by the interface definition language (IDL). ROS client libraries such as
106-
rclnodejs are responsible for converting these IDL message descriptions
107-
into source code of their target language. For this, rclnodejs provides
108-
the `generate-messages` npm script that reads in the IDL
109-
messages files of a ROS environment and generates corresponding JavaScript
110-
message interface files. Additionally, the tool generates the TypeScript
111-
`interface.d.ts` file containing declarations for every IDL message file
112-
processed.
105+
106+
ROS components communicate by sending and receiving messages described
107+
by the interface definition language (IDL). ROS client libraries such as
108+
rclnodejs are responsible for converting these IDL message descriptions
109+
into source code of their target language. For this, rclnodejs provides
110+
the `generate-messages` npm script that reads in the IDL
111+
messages files of a ROS environment and generates corresponding JavaScript
112+
message interface files. Additionally, the tool generates the TypeScript
113+
`interface.d.ts` file containing declarations for every IDL message file
114+
processed.
113115

114116
Learn more about ROS interfaces and IDL [here](https://index.ros.org/doc/ros2/Concepts/About-ROS-Interfaces/).
115117

@@ -122,29 +124,32 @@ stringMsgObject.data = 'hello world';
122124
```
123125

124126
### Maintaining Generated JavaScript Message Files
125-
Message files are generated as a post-install step of the rclnodejs
126-
installation process. Thereafter, you will need to manually run the
127-
message generation script when new ROS message packages are installed
128-
for which your ROS2-nodejs project has a dependency.
127+
128+
Message files are generated as a post-install step of the rclnodejs
129+
installation process. Thereafter, you will need to manually run the
130+
message generation script when new ROS message packages are installed
131+
for which your ROS2-nodejs project has a dependency.
129132

130133
### Running `generate-messages` Utility
131-
To use `generate-messages` from your Nodejs package, create an npm
134+
135+
To use `generate-messages` from your Nodejs package, create an npm
132136
script entry in your package.json file as shown:
133137

134138
```
135139
"scripts": {
136140
"generate-messages": "generate-messages"
137141
// your other scripts here
138142
}
139-
````
143+
```
140144

141145
To run the script use `npm` as follows:
146+
142147
```
143148
npm run generate-messages
144149
```
145-
The newly generated JavaScript files can be found at
146-
`<yourproject>/node_modules/rclnodejs/generated/`.
147150

151+
The newly generated JavaScript files can be found at
152+
`<yourproject>/node_modules/rclnodejs/generated/`.
148153

149154
## Contributing
150155

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rclnodejs",
3-
"version": "0.18.0",
3+
"version": "0.18.1",
44
"description": "ROS2.0 JavaScript client with Node.js",
55
"main": "index.js",
66
"types": "types/index.d.ts",

scripts/npmjs-readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ npm i [email protected]
4545

4646
| RCLNODEJS Version | Compatible ROS 2 Release |
4747
| :-------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
48-
| [0.18.0 (current)](https://www.npmjs.com/package/rclnodejs/v/0.18.0) ([API](http://robotwebtools.org/rclnodejs/docs/0.18.0/index.html)) | [Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20201211) / [Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
48+
| [0.18.1 (current)](https://www.npmjs.com/package/rclnodejs/v/0.18.1) ([API](http://robotwebtools.org/rclnodejs/docs/0.18.0/index.html)) | [Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20201211) / [Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
4949
| [0.10.3](https://github.com/RobotWebTools/rclnodejs/releases/tag/0.10.3) | [Dashing Diademata - Patch 4](https://github.com/ros2/ros2/releases/tag/release-dashing-20191018) |
5050

5151
## Documentation

0 commit comments

Comments
 (0)