Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load robot_description from other namespace #3269

Merged
merged 3 commits into from
Feb 6, 2025
Merged

Conversation

RLi43
Copy link
Contributor

@RLi43 RLi43 commented Jan 24, 2025

Description

Add namespace to the topic to read robot_description

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • [ / ] Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • [ / ] Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

Copy link
Contributor

@sea-bass sea-bass left a comment

Choose a reason for hiding this comment

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

Thanks! For consistency, would it make more sense to instead create temp_node with the parent node's namespace using this constructor?

https://docs.ros.org/en/humble/p/rclcpp/generated/classrclcpp_1_1Node.html#_CPPv4N6rclcpp4Node4NodeERKNSt6stringERKNSt6stringERK11NodeOptions

@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 45.56%. Comparing base (870b23d) to head (9f28b36).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...g/rdf_loader/src/synchronized_string_parameter.cpp 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3269      +/-   ##
==========================================
- Coverage   45.94%   45.56%   -0.37%     
==========================================
  Files         716      716              
  Lines       62393    62384       -9     
  Branches     7543     7544       +1     
==========================================
- Hits        28659    28418     -241     
- Misses      33568    33799     +231     
- Partials      166      167       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@sea-bass sea-bass left a comment

Choose a reason for hiding this comment

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

Thanks for the update!

This works, but I am now thinking whether this was intentionally designed to not absorb the namespace of the parent node for some reason?

@henningkayser @sjahr Do you guys happen to know anything about this / is this change fine?

@sjahr
Copy link
Contributor

sjahr commented Feb 5, 2025

Thanks for the update!

This works, but I am now thinking whether this was intentionally designed to not absorb the namespace of the parent node for some reason?

@henningkayser @sjahr Do you guys happen to know anything about this / is this change fine?

I don't know sorry.

Copy link
Member

@henningkayser henningkayser left a comment

Choose a reason for hiding this comment

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

I think this makes a lot of sense here. By default, the namespace would be empty for both the parent node and the temp_node. If someone wants to namespace he parent node, I would expect that also all interfaces use the corresponding namespace. robot_description might be special in a way, but it's still necessary to allow namespacing to prevent conflicts.

@sea-bass sea-bass added backport-humble Mergify label that triggers a PR backport to Humble backport-jazzy Mergify label that triggers a PR backport to Jazzy labels Feb 6, 2025
Copy link
Contributor

@sea-bass sea-bass left a comment

Choose a reason for hiding this comment

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

Thanks for confirming, @henningkayser!

@sea-bass sea-bass added this pull request to the merge queue Feb 6, 2025
Merged via the queue into moveit:main with commit af6d762 Feb 6, 2025
9 checks passed
mergify bot pushed a commit that referenced this pull request Feb 6, 2025
* load robot_description from other namespace

* change temp_node's namespace

---------

Co-authored-by: Sebastian Jahr <[email protected]>
(cherry picked from commit af6d762)

# Conflicts:
#	moveit_ros/planning/rdf_loader/src/synchronized_string_parameter.cpp
mergify bot pushed a commit that referenced this pull request Feb 6, 2025
* load robot_description from other namespace

* change temp_node's namespace

---------

Co-authored-by: Sebastian Jahr <[email protected]>
(cherry picked from commit af6d762)
sea-bass pushed a commit that referenced this pull request Feb 6, 2025
sea-bass pushed a commit that referenced this pull request Feb 6, 2025
@RLi43 RLi43 deleted the patch-1 branch February 6, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble Mergify label that triggers a PR backport to Humble backport-jazzy Mergify label that triggers a PR backport to Jazzy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants