Skip to content

Conversation

@Juliaj
Copy link
Contributor

@Juliaj Juliaj commented Mar 31, 2025

Description

Address #991 where two nodes are launched with same name rviz2. The fix is to remove node name attribute when launching rviz2.

Testing

  • Required by CI: Code is auto formatted using clang-format
  • Validated the updated Python files are launched successfully and there is no duplicate rviz2 node.

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! Syntax wise, this looks more complicated than just removing the name keyword arg, in that it does this but then reapplies it manually to one of the nodes using lower level args.

What is the difference in the node names between the original proposed approach and this? Unless there is a good reason, I'd opt for simpler syntax since these are tutorials for newcomers.

@Juliaj
Copy link
Contributor Author

Juliaj commented Mar 31, 2025

What is the difference in the node names between the original proposed approach and this?

@sea-bass , thank you for the feedback. I agreed that the syntax is more complicated. Below are the differences in terms of rviz2 node naming. My thoughts were to keep the node naming consistent with the package name. However, even with remapping rule, one of the node name still has rviz prefix.

  • Before (taken from original issue report), duplicated rviz2 nodes.
/rviz2
/rviz2
/rviz2_private_133986940619904
/rviz2_private_133987075316320
  • With name remapping change for rviz2. Three of the nodes renamed to rviz2 which is aligned with package name rviz2. The rviz_visual_tools_gui hasn't been renamed, some inconsistency.
/rviz2
/rviz2_private_139289413291728
/rviz2_private_139289816608576
/rviz_visual_tools_gui
  • With removing of name="rviz2". rviz2 related nodes have naming of rviz which is different than the package name. All rviz2 nodes have the same naming prefix.
/rviz
/rviz_private_127771787398864
/rviz_private_127772324975040
/rviz_visual_tools_gui

@sea-bass
Copy link
Contributor

sea-bass commented Apr 1, 2025

Thanks @Juliaj, makes sense! I think the differences are small enough that I would favor the simpler code option, i.e., the last snippet in your comment. What do you think?

@Juliaj Juliaj changed the title Add node name remap rule for rviz2 Fix two nodes launched with same name of /rivz2 Apr 1, 2025
@Juliaj
Copy link
Contributor Author

Juliaj commented Apr 1, 2025

I think the differences are small enough that I would favor the simpler code option, i.e., the last snippet in your comment. What do you think?

Thanks @sea-bass , I'm good with that! Updated PR based on your suggestion.

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 doing this!

@sea-bass sea-bass merged commit 0874e19 into moveit:main Apr 1, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this to ✅ Done in MoveIt Apr 1, 2025
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.

Running launch file in examples/move_group_interface, there are two node with same name /rivz2

3 participants