Commit 8fea81e
authored
Consolidate all demos under demo/ + add rosocket demo (#1503)
- Move `electron_demo/` → `demo/electron/` and `ts_demo/` → `demo/typescript/`, so all runnable demos live under a single `demo/` tree (Electron, TypeScript, and the new rosocket demo). Path-only renames; per-demo READMEs and the top-level `README.md`, `scripts/npmjs-readme.md`, `eslint.config.mjs`, and `.npmignore` are updated to reference the new locations.
- Add `demo/rosocket/` — a minimal end-to-end example of the `rosocket` WebSocket bridge: a Node `server.js` that wires `/chatter` (`std_msgs/msg/String`) and `/add_two_ints` (`example_interfaces/srv/AddTwoInts`) to plain WebSocket URLs, and a single-file `index.html` browser client (no client library, just built-in `WebSocket` + `JSON`) demonstrating subscribe / publish / service-call. README documents how to source ROS 2, run the bridge alongside the existing AddTwoInts service example, open the page from any modern browser, and verify the round-trip from the ROS 2 side.
Fix: #15021 parent 500efad commit 8fea81e
51 files changed
Lines changed: 411 additions & 18 deletions
File tree
- demo
- electron
- car
- manipulator
- topics
- turtle_tf2
- rosocket
- typescript
- actions
- src
- services
- src
- topics
- src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments