Skip to content

Allows MoveGroupInterface to use RobotState diffs as start states - #3592

Merged
rhaschke merged 8 commits into
moveit:masterfrom
riv-tnoble:patch-2
Apr 25, 2024
Merged

rhaschke merged 8 commits into
moveit:masterfrom
riv-tnoble:patch-2

Conversation

@riv-tnoble

@riv-tnoble riv-tnoble commented Apr 23, 2024 •

Copy link
Copy Markdown
Contributor

Description

This PR modifies the considered_start_state_ member of MoveGroupInterface to use a moveit_msgs::RobotState rather than a robot_state::RobotStatePtr. This prevents unnecessary conversion to and from the message type when planning, and allows start states to be set with RobotState diff messages, preventing unnecessary passing around / conversion of entire RobotStates when planning.

Methods exposing the considered_start_state_ member have been updated to avoid making breaking changes to the API.

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference (No changes to user-facing functionality)
  • Document API changes relevant to the user in the MIGRATION.md notes (preserves existing API)
  • Create tests, which fail without this PR reference (Modifies implementation details. Should preserve existing test behaviour)
  • Include a screenshot if changing a GUI (No GUI changes)
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

@codecov

codecov Bot commented Apr 23, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 78.57143% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 47.11%. Comparing base (c174715) to head (7819554).
Report is 10 commits behind head on master.

Files Patch % Lines
.../move_group_interface/src/move_group_interface.cpp 78.58% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3592      +/-   ##
==========================================
- Coverage   47.15%   47.11%   -0.03%     
==========================================
  Files         603      603              
  Lines       58999    59159     +160     
  Branches     6969     6985      +16     
==========================================
+ Hits        27814    27868      +54     
- Misses      30773    30873     +100     
- Partials      412      418       +6     

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

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Direction looks good. See comments for details.

@riv-tnoble
riv-tnoble requested a review from rhaschke April 24, 2024 10:02

@rhaschke rhaschke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks nearly good.

@rhaschke rhaschke added the awaits 2nd review one maintainer approved this request label Apr 24, 2024
@riv-tnoble

Copy link
Copy Markdown
Contributor Author

@rhaschke Just noticed that the constructor will be default constructing considered_start_state_ to an empty message (no diff). Added an explicit call to setStartStateToCurrentState() to fix this.

@riv-tnoble
riv-tnoble requested a review from rhaschke April 25, 2024 08:20
@rhaschke
rhaschke merged commit 08cdfc3 into moveit:master Apr 25, 2024
@TSNoble TSNoble mentioned this pull request Oct 24, 2024
4 of 6 tasks
github-merge-queue Bot pushed a commit to moveit/moveit2 that referenced this pull request Oct 28, 2024
* Ports moveit/moveit1#3592

* Ports moveit/moveit1#3590

* Fixes compile errors

---------

Co-authored-by: Sebastian Jahr <[email protected]>
mergify Bot pushed a commit to moveit/moveit2 that referenced this pull request Nov 21, 2024
* Ports moveit/moveit1#3592

* Ports moveit/moveit1#3590

* Fixes compile errors

---------

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

# Conflicts:
#	moveit_ros/planning_interface/move_group_interface/src/move_group_interface.cpp
sea-bass pushed a commit to moveit/moveit2 that referenced this pull request Nov 21, 2024
* Enhancement/moveit ros1 ports (#3041)

* Ports moveit/moveit1#3592

* Ports moveit/moveit1#3590

* Fixes compile errors

---------

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

# Conflicts:
#	moveit_ros/planning_interface/move_group_interface/src/move_group_interface.cpp

* Accepts all incoming changes. (#3120)

* Fixes member names (#3121)

---------

Co-authored-by: Tom Noble <[email protected]>
Co-authored-by: Mark Johnson <[email protected]>
Co-authored-by: Tom Noble <[email protected]>
Markus-Simonsen pushed a commit to Markus-Simonsen/moveit2 that referenced this pull request Aug 12, 2025
* Ports moveit/moveit1#3592

* Ports moveit/moveit1#3590

* Fixes compile errors

---------

Co-authored-by: Sebastian Jahr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaits 2nd review one maintainer approved this request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants