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
This PR updates the npmjs README to provide a cleaner, more concise documentation structure for the rclnodejs package. The update simplifies the README content while maintaining essential information for users.
Key changes:
- Adds a note about ROS 2 LTS support and development scope
- Streamlines installation and prerequisites sections with updated ROS 2 references
- Removes verbose example code sections in favor of directing users to example repositories
- Updates TypeScript configuration recommendations and examples
Fix: #1232
`rclnodejs` is a Node.js client for the Robot Operating System (ROS 2). It provides a simple and easy JavaScript API for ROS 2 programming. TypeScript declarations are included to support use of rclnodejs in TypeScript projects.
4
4
5
+
\* rclnodejs development and maintenance is limited to all active ROS 2 LTS releases and the Rolling development branch
6
+
5
7
Here's an example for how to create a ROS 2 node that publishes a string message in a few lines of JavaScript.
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.
68
+
See [TypeScript demos](https://github.com/RobotWebTools/rclnodejs/tree/develop/ts_demo) for more examples.
160
69
161
-
```typescript
162
-
const msg:rclnodejs.std_msgs.msg.String= {
163
-
data: 'hello ROS2 from rclnodejs',
164
-
};
165
-
```
70
+
**Note** that the interface.d.ts file is updated each time the generate_messages.js script is run.
166
71
167
-
Check out more TypeScript [demos](https://github.com/RobotWebTools/rclnodejs/tree/develop/ts_demo).
72
+
## Electron-based Visualization
168
73
169
-
**Note** that the interface.d.ts file is updated each time the generate_messages.js script is run.
74
+
Create rich, interactive desktop applications using Electron and web technologies like Three.js. Build 3D visualizations, monitoring dashboards, and control interfaces that run on Windows, macOS, and Linux.
170
75
171
-
## Using rclnodejs with Electron
76
+
Try the `electron_demo/turtle_tf2` demo for real-time coordinate frame visualization with dynamic transforms and keyboard-controlled turtle movement. More examples in [electron_demo](https://github.com/RobotWebTools/rclnodejs/tree/develop/electron_demo).
172
77
173
-
Check out [demos](https://github.com/RobotWebTools/rclnodejs/tree/develop/electron_demo).
0 commit comments