Frontend: Dynamic obstacles with trigger-based movement for sim_control#10
Draft
Frontend: Dynamic obstacles with trigger-based movement for sim_control#10
Conversation
… visualization Co-authored-by: daohu527 <10419854+daohu527@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Extend Apollo sim_control for dynamic obstacles with triggers
Frontend: Dynamic obstacles with trigger-based movement for sim_control
Feb 26, 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.
Extends the Dreamview frontend to author, visualize, and send dynamic obstacle configurations to the
sim_controlbackend — including per-obstacle trajectory paths, trigger zones, and lifecycle state tracking.New abstractions
src/utils/dynamic_obstacle_constants.js— SharedObstacleState/TriggerType/ObstacleTypeenums, isolated to break the store↔renderer circular dependency.src/store/dynamic_obstacle_manager.js— MobX store owning obstacle state machine (IDLE → MOVING → FINISHED), CRUD, trigger config, and path editing delegation to the renderer.src/renderer/dynamic_obstacles.js— Three.js renderer drawing:reach_position) or ring (distance_to_ego)src/components/DynamicObstacleEditor/— React panel with per-obstacle cards; supports trigger type + parameter config, map-click path editing (Edit Path→ click waypoints →Confirm Path/Undo), and aSend Configbutton.Integration hooks
renderer/index.js—enableDynamicObstacleEditing/disableDynamicObstacleEditing/updateDynamicObstacleswired into the existing render loop.websocket_realtime.js—sendDynamicObstacleConfig(obstacles)sends JSON to the backend; incomingSimWorldUpdate.dynamicObstacle[]syncs lifecycle states.store/index.js—dynamicObstacleManageradded; editing auto-stopped when panel closes.showDynamicObstacleEditor) follows existing sidebar/option patterns.Utilities
utils/misc.js—IsPointInPolygonvia ray-casting (consistent naming with existingIsPointInRectangle), enabling arbitrary polygon trigger zone checks.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
registry.npmmirror.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /usr/local/bin/yarn install(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
sim_controlto support dynamic obstacles with trigger-based movement. #9💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.