Skip to content

msa: fix duplicated ros_control joints - #1406

Merged
henningkayser merged 1 commit into
moveit:mainfrom
mikeferguson:fix_duplicate_control_joints
Jul 1, 2022
Merged

henningkayser merged 1 commit into
moveit:mainfrom
mikeferguson:fix_duplicate_control_joints

Conversation

@mikeferguson

Copy link
Copy Markdown
Contributor

Description

When more than one controller can control a joint, that joint would appear multiple times. Fixes #1390

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

@mikeferguson mikeferguson changed the title fix duplicated ros_control joints msa: fix duplicated ros_control joints Jun 29, 2022
@codecov

codecov Bot commented Jun 29, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #1406 (282a92a) into main (8ee767a) will increase coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1406      +/-   ##
==========================================
+ Coverage   61.55%   61.57%   +0.02%     
==========================================
  Files         274      274              
  Lines       24982    24982              
==========================================
+ Hits        15375    15379       +4     
+ Misses       9607     9603       -4     
Impacted Files Coverage Δ
...nning_scene_monitor/src/planning_scene_monitor.cpp 45.73% <0.00%> (+0.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ee767a...282a92a. Read the comment docs.

@vatanaksoytezer
vatanaksoytezer requested a review from DLu June 29, 2022 11:13

@henningkayser henningkayser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't joint_names_ be changed to a std:set instead?

@DLu

DLu commented Jun 29, 2022

Copy link
Copy Markdown
Contributor

Shouldn't joint_names_ be changed to a std:set instead?

It could be, but then you lose the ordering.

@mikeferguson

Copy link
Copy Markdown
Contributor Author

Yeah, I'm not sure how important the ordering is - I presumed the original author knew better than I and they said it needed to preserve order

@vatanaksoytezer

Copy link
Copy Markdown
Contributor

@henningkayser can you give a quick look and thumbs up if your concern is addressed within the answers so we can merge this?

when more than one controller can control a joint,
that joint would appear multiple times
@mikeferguson
mikeferguson force-pushed the fix_duplicate_control_joints branch from 7768c0a to 282a92a Compare June 30, 2022 21:21

@henningkayser henningkayser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think it's fine here, lgtm

@henningkayser
henningkayser merged commit cd36650 into moveit:main Jul 1, 2022
@mikeferguson
mikeferguson deleted the fix_duplicate_control_joints branch July 1, 2022 06:01
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.

[MSA] joints used by multiple groups are duplicated in ros2_control.xacro

4 participants