Repository navigation
add safety check to IKConstraintSampler - #188
Conversation
|
ok. so the check catches the bug @scottpaulin discovered :-) |
|
Would it be better if the error checking was performed in samplePose, since that is the method requiring accurate frame transforms? |
dc267f5 to
69df90e
Compare
|
On Tue, Aug 30, 2016 at 03:23:36AM -0700, Scott Paulin wrote:
I had it in there originally, but moved it because the only function that calls |
69df90e to
782016a
Compare
| const robot_state::RobotState &ks, | ||
| unsigned int max_attempts) | ||
| { | ||
| if ( ks.dirty() ){ |
782016a to
e73d47b
Compare
|
On Fri, Sep 16, 2016 at 12:22:57AM -0700, Dave Coleman wrote:
You know, at some point you should integrate this with CI. :) |
|
@scottpaulin do you have any idea why the tests still break? #186 has been merged, so I expected this would succeed now. |
First we'd have to auto-clean up all the current code base, which I'd like to do in the future when there is a lull in pull requests |
|
@v4hn I think your code should be calling RobotState::dirtyLinkTransforms rather than RobotState::dirty. The latter checks that the link transforms and the collision body transforms are up to date. UnionConstraintSampler::sample is only updating the link transforms not the collision body transforms. |
e73d47b to
4aa0152
Compare
The sampler uses the transforms, but never checked if they are dirty, so it might return invalid/unexpected robot states.
|
@scottpaulin you're right, thanks. I changed the code and it passes the tests now. |
The sampler uses the transforms, but never checked if they are dirty, so it might return invalid/unexpected robot states.
The sampler uses the transforms, but never checked if they are dirty, so it might return invalid/unexpected robot states.
|
cherry-picked to J/K |
The sampler uses the transforms, but never checked if they are dirty,
so it might return invalid/unexpected robot states.
@scottpaulin noticed this in #186 and fixed the calling code.
For safety reasons, we should also check in the sampler itself.
@scottpaulin could you please check out this patch and see if it triggers in the use-case you found?