Skip to content

Expose the robot description without loading the SRDF - #4009

Open
sylvesterkaczmarek wants to merge 1 commit into
moveit:mainfrom
sylvesterkaczmarek:feat/config-builder-urdf-access
Open

sylvesterkaczmarek wants to merge 1 commit into
moveit:mainfrom
sylvesterkaczmarek:feat/config-builder-urdf-access

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Nov 29, 2026 •

Copy link
Copy Markdown

Description

Closes #3582. Add MoveItConfigsBuilder.get_robot_description() to retrieve the loaded URDF parameter without loading an SRDF or other configuration files. Preserve custom parameter names and deferred launch substitutions.

Checklist

  • Formatting and pre-commit hooks
  • Tutorial changes (not required)
  • API addition documented in MIGRATION.md
  • Regression tests for eager and deferred URDF loading
  • Screenshot (not a GUI change)
  • Review another open PR

Validation: both new pytest tests failed before the change and pass afterward using Jazzy launch Python modules, ament index, launch_param_builder and Xacro. Full ROS integration was not available locally.

Summary by CodeRabbit

  • New Features
    • Added a way to retrieve the robot’s URDF description without loading the SRDF or other MoveIt configurations. The result supports both expanded URDF strings and launch-time substitutions.
  • Documentation
    • Updated the ROS Rolling migration notes to describe the new robot-description behavior.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

MoveItConfigsBuilder adds get_robot_description(). The method loads the default robot description when needed and returns a shallow copy. Tests cover mappings and launch substitutions. The migration notes document the new method.

Changes: Robot description access

Layer / File(s) Summary
Getter behavior and validation
moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py, moveit_configs_utils/test/test_robot_description.py, MIGRATION.md
The new getter loads the default description if none is stored and returns a shallow copy. Tests cover default and mapped descriptions, clearing a returned mapping, and a LaunchConfiguration value evaluated through a LaunchContext. The migration notes document the method.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: rhaschke

Merge Risk: Minimal · up to 2ae67

This adds a small public getter for the robot description along with tests and a migration note. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Expose the robot description without loading the SRDF" matches the main change. The PR adds MoveItConfigsBuilder.get_robot_description(), which returns the loaded URDF without loading the S…
Linked Issues check Passed Issue #3582 asks for public access to the URDF robot description from MoveItConfigsBuilder, without requiring an SRDF. The diff adds public method get_robot_description() in moveit_configs_utils/movei…
Out of Scope Changes check Passed The whole-PR diff (merge base 5399d29 to head 2ae676c) changes three areas. (1) moveit_configs_builder.py adds only get_robot_description(), which is the requested feature. (2) test_robot_descriptio…
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "Expose the robot description without loading the SRDF" matches the main change. The PR adds MoveItConfigsBuilder.get_robot_description(), which returns the loaded URDF without loading the SRDF or other MoveIt configurations. The title is specific, short, and states the primary change from the developer's perspective.

Full details: Linked Issues check

Explanation

Issue #3582 asks for public access to the URDF robot description from MoveItConfigsBuilder, without requiring an SRDF. The diff adds public method get_robot_description() in moveit_configs_utils/moveit_configs_builder.py. It loads the default URDF only when no robot description exists, then returns a shallow copy of self.__moveit_configs.robot_description. This does not load the SRDF. The returned dictionary keeps the configured parameter name and can hold a deferred ParameterValue, which matches the PR goal. The issue offers a public attribute or a to_moveit_configs() change as options; a public getter meets the stated need (access to the URDF before SRDF loading). The PR adds regression tests in moveit_configs_utils/test/test_robot_description.py covering the default link name, mapping override, repeated access after the returned value is changed, and LaunchConfiguration deferred evaluation. I did not run these tests. The PR author reports they fail before the change and pass after it.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff (merge base 5399d29 to head 2ae676c) changes three areas. (1) moveit_configs_builder.py adds only get_robot_description(), which is the requested feature. (2) test_robot_description.py adds regression tests for that method, which support the objective. (3) MIGRATION.md adds one entry documenting the new API, which is documentation of the same change. No unrelated code changes were identified in the summary or the inspected builder diff.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5399d29 and 2ae676c.

Files selected for processing: 3

  • MIGRATION.md
  • moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py
  • moveit_configs_utils/test/test_robot_description.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

@mergify

mergify Bot commented Nov 29, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue). If it does not match the queue conditions yet, it enters the queue once it does.

  • Queue this pull request once it meets the queue conditions

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.

Allow public access to robot_description from the MoveItConfigsBuilder class

1 participant