Skip to content

Commit 0c17b64

Browse files
author
Minggang Wang
committed
Remove the redundant How to section in README
Fix #664
1 parent f80ba21 commit 0c17b64

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -182,31 +182,6 @@ npm run test
182182
set PATH=<path\to\python 3.x>;%PATH%
183183
```
184184

185-
## How To Use
186-
187-
After building this module, you just need to follow the normal way to use it as a `Node.js` module.
188-
189-
```javascript
190-
const rclnodejs = require('../index.js');
191-
192-
rclnodejs.init().then(() => {
193-
let String = rclnodejs.require('std_msgs').msg.String;
194-
const node = rclnodejs.createNode('publisher_example_node');
195-
const publisher = node.createPublisher(String, 'topic');
196-
let msg = new String();
197-
198-
setInterval(function() {
199-
const str = 'Hello ROS 2;
200-
msg.data = str;
201-
publisher.publish(msg);
202-
}, 1000);
203-
204-
rclnodejs.spin(node);
205-
});
206-
```
207-
208-
Browse the JavaScript programs in the `example` folder to learn how to create and work with `timers, subscriptions, publishers, clients, services, timers,` and `nodes`.
209-
210185
## Troubleshooting
211186

212187
### Maximum call stack size exceeded error when running in Jest

0 commit comments

Comments
 (0)