-
Notifications
You must be signed in to change notification settings - Fork 83
Update the README for npmjs #1233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
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
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
|
||
| `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. | ||
|
|
||
| \* rclnodejs development and maintenance is limited to all active ROS 2 LTS releases and the Rolling development branch |
Copilot
AI
Aug 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The backslash before the asterisk (\*) creates escaped markdown. This should be just * to render as a proper bullet point, or use - for consistency with other list items in the document.
| \* rclnodejs development and maintenance is limited to all active ROS 2 LTS releases and the Rolling development branch | |
| - rclnodejs development and maintenance is limited to all active ROS 2 LTS releases and the Rolling development branch |
scripts/npmjs-readme.md
Outdated
| import * as rclnodejs from 'rclnodejs'; | ||
| rclnodejs.init().then(() => { | ||
| const node = rclnodejs.createNode('publisher_example_node'); | ||
| const node = new rclnodejs.Node('publisher_example_node'); |
Copilot
AI
Aug 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TypeScript example uses new rclnodejs.Node() while the JavaScript example uses rclnodejs.createNode(). This inconsistency could confuse users about the correct API usage. Consider using the same pattern in both examples for clarity.
| const node = new rclnodejs.Node('publisher_example_node'); | |
| const node = rclnodejs.createNode('publisher_example_node'); |
scripts/npmjs-readme.md
Outdated
| const publisher = node.createPublisher('std_msgs/msg/String', 'topic'); | ||
| publisher.publish(`Hello ROS 2 from rclnodejs`); | ||
| rclnodejs.spin(node); | ||
| node.spin(); |
Copilot
AI
Aug 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TypeScript example uses node.spin() while the JavaScript example uses rclnodejs.spin(node). This API inconsistency could confuse users. Both examples should demonstrate the same API pattern for consistency.
| node.spin(); | |
| rclnodejs.spin(node); |
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
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:
Fix: #1232