Skip to content

Autonomous: Add review demo runs and a Foxglove truth view - #293

Closed
GrayM8 wants to merge 2 commits into
mainfrom
gray/review-demo
Closed

GrayM8 wants to merge 2 commits into
mainfrom
gray/review-demo

Conversation

@GrayM8

@GrayM8 GrayM8 commented Nov 15, 2026

Copy link
Copy Markdown
Member

What

The setup behind today's Base review demo, so anyone can run it. @celinayang13, this is so you can pick up the demo from here if my laptop dies.

  • ros2/docker/demo.sh (run on the Mac, like foxglove.sh): the gate stack in Gazebo with the GUI on noVNC and the Foxglove bridge on ws://localhost:8765. Runs: lap (autocross seed 1), fault (steer_freeze at 8 m/s on the oval, safety stops the car), loop (rules_autocross seed 1), extreme (Autonomous: Add fixed extreme autocross scenarios #218's extreme_combined), fsi/fsg (Autonomous: import real competition track layouts #223's real layouts), plus <run> paused, pause, resume, stop.
  • ros2/foxglove/lhr_gazebo_truth.json and truth_relay.py: a layout that follows Gazebo's true pose instead of the EKF's base_link, so the view doesn't shake with estimator corrections. The steering plot also shows both front wheels' measured angles against the command. The relay republishes /tf_truth as map -> truth_base_link, for display only.

To take over on a Mac with the container built (docker README):

git fetch origin gray/review-demo && git checkout gray/review-demo
cd autonomy/ros2/docker
./demo.sh fsi paused     # what was on screen: FSI layout, car on the line, sim paused
./demo.sh resume

Gazebo is at http://localhost:6080/vnc.html?autoconnect=true&resize=scale. In Foxglove, open ws://localhost:8765, then Layouts > Import from file > autonomy/ros2/foxglove/lhr_gazebo_truth.json.

Caveats:

How it's tested

No automated test yet; this is a draft. The version on my Mac's Desktop (blue-crest), which this was copied from, ran today in the Mac container: lap twice (33.6 s, 0 cones, max CTE 0.24 m, FINISHED), and fault twice (STEER_TRACKING 1.3-1.6 s wall after the fault, EMERGENCY, stopped). loop, extreme and fsi drove for several minutes each with no trips; FSG was not run. The relay published map -> truth_base_link (checked with tf2_echo) and the latched body markers. The repo copy differs: it fetches the #218/#223 worlds with git rather than reading copied files, it runs the relay from the checkout, and it adds paused, pause and resume. That copy has not been run yet, so as not to disturb the live demo. bash -n passes. The strict docs build was not run locally.

Checklist

  • Behavior changes come with a test that fails without them (testing.md): not yet, draft
  • No test deleted, skipped or loosened, and no lint suppression added without a reason, to get green (or the PR says why)
  • Adjacent README.md updated

@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Ignore keyword(s) in the title.

⛔ Ignored keywords: 1

  • Autonomous:

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@GrayM8 GrayM8 closed this Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant