Skip to content

Commit 47d55a1

Browse files
author
Minggang Wang
committed
Bump to v0.16.0
1 parent 6565276 commit 47d55a1

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ npm i [email protected]
4848

4949
| RCLNODEJS Version | Compatible ROS 2 Release |
5050
| :-------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
51-
| [0.15.3 (current)](https://www.npmjs.com/package/rclnodejs/v/0.15.3) ([API](http://robotwebtools.org/rclnodejs/docs/0.15.2/index.html)) | [Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20200807) / [Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
51+
| [0.16.0 (current)](https://www.npmjs.com/package/rclnodejs/v/0.16.0) ([API](http://robotwebtools.org/rclnodejs/docs/0.16.0/index.html)) | [Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20200807) / [Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
5252
| [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) |
5353

5454
- **Note:** to install rclnodejs from GitHub: add `"rclnodejs":"RobotWebTools/rclnodejs#<branch>"` to your `package.json` depdendency section.
@@ -95,9 +95,9 @@ rclnodejs.init().then(() => {
9595
The benefits of using TypeScript become evident when working with more complex use-cases. The ROS 2 messages are defined in the `types/interfaces.d.ts` module. This module is updated as part of the `generate_messages` process. Here's a trivial example of working with a String msg.
9696

9797
```typescript
98-
const msg: rclnodejs.std_msgs.msg.String = {
99-
data: 'hello ROS2 from rclnodejs'
100-
}
98+
const msg: rclnodejs.std_msgs.msg.String = {
99+
data: 'hello ROS2 from rclnodejs',
100+
};
101101
```
102102

103103
## Build from Scratch

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.15.3",
3+
"version": "0.16.0",
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: 7 additions & 7 deletions
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.15.3 (current)](https://www.npmjs.com/package/rclnodejs/v/0.15.3) ([API](http://robotwebtools.org/rclnodejs/docs/0.15.2/index.html)) | [Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20200807) / [Eloquent Elusor](https://github.com/ros2/ros2/releases/tag/release-eloquent-20200124) |
48+
| [0.16.0 (current)](https://www.npmjs.com/package/rclnodejs/v/0.16.0) ([API](http://robotwebtools.org/rclnodejs/docs/0.16.0/index.html)) | [Foxy Fitzroy](https://github.com/ros2/ros2/releases/tag/release-foxy-20200807) / [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
@@ -132,7 +132,7 @@ In your node project install the rclnodejs package as described above. You will
132132

133133
In your project's tsconfig.json file include the following compiler options:
134134

135-
```json
135+
```jsonc
136136
{
137137
"compilerOptions": {
138138
"module": "commonjs",
@@ -145,7 +145,7 @@ In your project's tsconfig.json file include the following compiler options:
145145

146146
Here's an earlier JavaScript example reimplemented in TypeScript.
147147

148-
```
148+
```typescript
149149
import * as rclnodejs from 'rclnodejs';
150150
rclnodejs.init().then(() => {
151151
const node = rclnodejs.createNode('publisher_example_node');
@@ -157,10 +157,10 @@ rclnodejs.init().then(() => {
157157

158158
Type-aliases for the ROS2 messages can be found in the `types/interfaces.d.ts` file. To use a message type-alias follow the naming pattern <pkg_name>.[msg|srv].<type>, e.g., sensor_msgs.msg.LaserScan or the std_msgs.msg.String as shown below.
159159

160-
```
161-
const msg: rclnodejs.std_msgs.msg.String = {
162-
data: 'hello ROS2 from rclnodejs'
163-
}
160+
```typescript
161+
const msg: rclnodejs.std_msgs.msg.String = {
162+
data: 'hello ROS2 from rclnodejs',
163+
};
164164
```
165165

166166
**Note** that the interface.d.ts file is updated each time the generate_messages.js script is run.

0 commit comments

Comments
 (0)