You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose the robot description without loading the SRDF - #4009
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.
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.
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: 4
Check name
Status
Explanation
Title check
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
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
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
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.
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
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
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
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.
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
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