Skip to content

scripts: add URDF extraction tool for TrossenMCAP recordings#276

Draft
abhichothani42 wants to merge 2 commits into
urdf-04-solo-examplefrom
urdf-05-urdf-extractor
Draft

scripts: add URDF extraction tool for TrossenMCAP recordings#276
abhichothani42 wants to merge 2 commits into
urdf-04-solo-examplefrom
urdf-05-urdf-extractor

Conversation

@abhichothani42

@abhichothani42 abhichothani42 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Small CLI tool that pulls the URDF out of a recording into a .urdf file next to it, for use with Rerun or as the File source of a Foxglove URDF layer.

Changes

  • Add scripts/visualize_robot_description/visualize_robot_description.cpp: reads the /robot_description topic from an MCAP file and writes <episode>_robot_description.urdf alongside it.
  • Register the executable in scripts/CMakeLists.txt.

Test Plan

  • Builds cleanly (make build)
  • Tests pass (make test)
  • Lint passes (pre-commit run --all-files)
  • Tested on hardware (if applicable)

Breaking Changes

None.

Related Issues

None.

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_description CLI that reads /robot_description from 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.

Comment thread scripts/visualize_robot_description/visualize_robot_description.cpp Outdated
Comment thread scripts/visualize_robot_description/visualize_robot_description.cpp
Comment thread scripts/visualize_robot_description/visualize_robot_description.cpp
@abhichothani42
abhichothani42 force-pushed the urdf-05-urdf-extractor branch 2 times, most recently from 090b081 to 93b04d4 Compare July 17, 2026 15:21
@abhichothani42
abhichothani42 force-pushed the urdf-05-urdf-extractor branch from 93b04d4 to 06d92ac Compare July 17, 2026 16:33
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.

2 participants