[#22] fix(sensor-demo): correct app IDs and improve script consistency#23
Merged
mfaferek93 merged 2 commits intomainfrom Feb 1, 2026
Merged
[#22] fix(sensor-demo): correct app IDs and improve script consistency#23mfaferek93 merged 2 commits intomainfrom
mfaferek93 merged 2 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes incorrect app IDs in the sensor diagnostics demo scripts and improves script organization. The root cause was a mismatch between ROS 2 node naming conventions (using underscores) and Gateway API entity IDs (using dashes), causing API calls to fail with "entity not found" errors.
Changes:
- Corrected all app IDs from underscore format (e.g.,
lidar_sim) to dash format (e.g.,lidar-sim) in API calls - Split run-demo.sh functionality into three focused scripts: run-demo.sh (starts services), check-demo.sh (API demonstration), and stop-demo.sh (stops services)
- Updated all documentation to reflect correct API usage patterns
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| demos/sensor_diagnostics/stop-demo.sh | New script to stop Docker services with options for removing volumes and images |
| demos/sensor_diagnostics/run-demo.sh | Refactored to focus solely on starting Docker services, with improved argument parsing and user feedback |
| demos/sensor_diagnostics/check-demo.sh | New interactive API demonstration script that was extracted from old run-demo.sh, with proper error checking |
| demos/sensor_diagnostics/restore-normal.sh | Updated all API calls to use correct dash-based app IDs |
| demos/sensor_diagnostics/inject-noise.sh | Updated API calls and comments to use correct app IDs |
| demos/sensor_diagnostics/inject-nan.sh | Updated API calls and comments to use correct app IDs |
| demos/sensor_diagnostics/inject-failure.sh | Updated API calls and comments to use correct app IDs |
| demos/sensor_diagnostics/inject-drift.sh | Updated API calls and comments to use correct app IDs |
| demos/sensor_diagnostics/README.md | Updated Quick Start section, script descriptions, and all API examples to use correct app IDs |
| README.md | Updated Quick Start guide with new script names and usage patterns |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Fix incorrect app IDs: use dashes instead of underscores - lidar_sim -> lidar-sim - imu_sim -> imu-sim - gps_sim -> gps-sim - camera_sim -> camera-sim - anomaly_detector -> anomaly-detector - diagnostic_bridge -> diagnostic-bridge - Split run-demo.sh into separate concerns - run-demo.sh: only starts Docker services - check-demo.sh: new interactive API demonstration script - stop-demo.sh: new script to stop services - Update all scripts to use correct Gateway API entity IDs - check-demo.sh: fixed all API endpoint calls - inject-*.sh: updated fault injection scripts - restore-normal.sh: fixed configuration and fault clearing - Update documentation - README.md: updated Quick Start and API examples - demos/sensor_diagnostics/README.md: corrected all API examples Fixes API calls that were failing with 'entity not found' errors. Makes demo scripts consistent with turtlebot3_integration behavior.
64892ee to
becfc27
Compare
mfaferek93
reviewed
Feb 1, 2026
Apply review suggestions from @mfaferek93: - Change anomaly_detector → anomaly-detector in inject-nan.sh, inject-failure.sh - Change diagnostic_bridge → diagnostic-bridge in inject-drift.sh, inject-noise.sh Maintains consistency with dash-based entity IDs used in API calls.
mfaferek93
approved these changes
Feb 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix incorrect app IDs: use dashes instead of underscores
Split run-demo.sh into separate concerns
Update all scripts to use correct Gateway API entity IDs
Update documentation
Fixes API calls that were failing with 'entity not found' errors. Makes demo scripts consistent with turtlebot3_integration behavior.
Related Issue
closes #22
Checklist