scripts: add URDF extraction tool for TrossenMCAP recordings#276
Draft
abhichothani42 wants to merge 2 commits into
Draft
scripts: add URDF extraction tool for TrossenMCAP recordings#276abhichothani42 wants to merge 2 commits into
abhichothani42 wants to merge 2 commits into
Conversation
This was referenced Jul 14, 2026
Collaborator
Author
This was referenced Jul 14, 2026
abhichothani42
requested review from
Copilot,
lukeschmitt-tr and
shantanuparab-tr
July 14, 2026 06:19
There was a problem hiding this comment.
Pull request overview
Adds a small offline script executable to extract the recorded robot URDF from TrossenMCAP episodes, enabling quick visualization in tools like Rerun/Foxglove without needing the full runtime stack.
Changes:
- Add
visualize_robot_descriptionCLI that reads/robot_descriptionfrom an MCAP file and writes a sibling*_robot_description.urdf. - Register/build the new executable from
scripts/CMakeLists.txt.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| scripts/visualize_robot_description/visualize_robot_description.cpp | New CLI implementation for extracting the URDF from /robot_description and writing it to disk. |
| scripts/CMakeLists.txt | Adds the new script executable target, include paths, compile definition, and link libs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
abhichothani42
force-pushed
the
urdf-04-solo-example
branch
from
July 17, 2026 14:48
e6e4362 to
f660c18
Compare
abhichothani42
force-pushed
the
urdf-05-urdf-extractor
branch
2 times, most recently
from
July 17, 2026 15:21
090b081 to
93b04d4
Compare
abhichothani42
force-pushed
the
urdf-04-solo-example
branch
from
July 17, 2026 15:21
f660c18 to
07d94b9
Compare
abhichothani42
force-pushed
the
urdf-04-solo-example
branch
from
July 17, 2026 16:33
07d94b9 to
c8a1c89
Compare
abhichothani42
force-pushed
the
urdf-05-urdf-extractor
branch
from
July 17, 2026 16:33
93b04d4 to
06d92ac
Compare
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.

Summary
Small CLI tool that pulls the URDF out of a recording into a
.urdffile next to it, for use with Rerun or as the File source of a Foxglove URDF layer.Changes
scripts/visualize_robot_description/visualize_robot_description.cpp: reads the/robot_descriptiontopic from an MCAP file and writes<episode>_robot_description.urdfalongside it.scripts/CMakeLists.txt.Test Plan
make build)make test)pre-commit run --all-files)Breaking Changes
None.
Related Issues
None.