Skip to content

Conversation

@henningkayser
Copy link

The capability would basically access the non-existent successor of the first trajectory, causing a segfault. Fixes https://github.com/PickNikRobotics/moveit_studio/issues/3568

@henningkayser henningkayser force-pushed the fix_single_sub_traj_execution branch from 5c6c452 to 004f303 Compare September 6, 2023 14:27
@codecov
Copy link

codecov bot commented Sep 6, 2023

Codecov Report

Merging #6 (ec8955b) into ros2 (905b78b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             ros2       #6   +/-   ##
=======================================
  Coverage   42.51%   42.51%           
=======================================
  Files          84       84           
  Lines        8060     8060           
=======================================
  Hits         3426     3426           
  Misses       4634     4634           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link

@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.

Looks good! Just a minor comment.

Should we also handle the case where the solution has zero subtrajectories and simply return false early in this function?

auto make_description = [size = solution.sub_trajectory.size()](const std::size_t index) {
return std::to_string(index + 1) + "/" + std::to_string(size);
};
// TODO: Case for only one subtrajectory
Copy link

Choose a reason for hiding this comment

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

I guess this TODO was entirely missing, haha. Nice.

@henningkayser henningkayser force-pushed the fix_single_sub_traj_execution branch from c4fe306 to 968869e Compare September 11, 2023 14:36
Copy link

@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.

Sorry, I didn't realize that scene_diffs vector was being pushed to but then cleared on each iteration -- so my suggestion to reserve was based on there not being that clear() call in the loop.

Anyways, LGTM

@henningkayser
Copy link
Author

henningkayser commented Sep 25, 2023

we are still testing against Humble, but MoveIt has become incompatible. Do we just ignore the CI result or should we fix the requested jobs? (The missing header issue is not from this PR)

@henningkayser henningkayser force-pushed the fix_single_sub_traj_execution branch from f2f0cb1 to 0985f1b Compare September 27, 2023 15:08
@henningkayser
Copy link
Author

CI now seems to fail for unrelated build issues...

@Abishalini Abishalini merged commit dd7ebbf into PickNikRobotics:ros2 Oct 18, 2023
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.

5 participants