Skip to content

normalize joints in start-state validation - #292

Merged
rhaschke merged 1 commit into
moveit:kinetic-develfrom
rhaschke:enforced-bounds-in-validation
Oct 18, 2016
Merged

rhaschke merged 1 commit into
moveit:kinetic-develfrom
rhaschke:enforced-bounds-in-validation

Conversation

@rhaschke

Copy link
Copy Markdown
Contributor

kinetic version of #290 (which targeted indigo). Please merge-commit to keep the connection to the original PR #63.

double position = positions[i];

// quick check
if (fabs(current_state->getJointPositions(jm)[0] - position) <= allowed_start_tolerance_)

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.

current_state is never normalzied, e.g. enforceBounds() - I think that is needed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I understood your #290 (comment) so that this wouldn't be needed. But obviously it is. CurrentStateMonitor doesn't normalize itself.

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.

yes, in my first comment i thought it was not required, but in my second comment, after investigation, i realized this function not only enforces bounds (not required) but also normalizes the joints. in my opinion this is conflating two different purposes, but for historical reasons I think we should leave the naming of enforceBounds() as is.

@davetcoleman davetcoleman 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 @v4hn should test this on the PR2, and that we should still hold back this feature for the immediate kinetic release via #287

@rhaschke
rhaschke merged commit 437b740 into moveit:kinetic-devel Oct 18, 2016
@rhaschke
rhaschke deleted the enforced-bounds-in-validation branch October 18, 2016 18:08
@davetcoleman davetcoleman mentioned this pull request Oct 19, 2016
19 tasks done
@v4hn

v4hn commented Oct 19, 2016

Copy link
Copy Markdown
Contributor

I think @v4hn should test this on the PR2, and that we should still hold back this feature for the immediate kinetic release via #287

I did test this on a PR2.

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.

3 participants