Added bodies::Body::computeBoundingBox (aligned box version).#104
Added bodies::Body::computeBoundingBox (aligned box version).#104v4hn merged 1 commit intomoveit:melodic-develfrom
Conversation
|
One thing that needs attention: I needed to make use of class AABB which I originally added about a year ago to moveit::core . But since moveit_core depends on this package and not the other way round, I needed to copy the class' definition. I think it anyways makes more sense for the AABB class to defined in geometric_shapes. My suggestion on how to tackle code duplication is the following: wait until this PR is merged and new version of geometric_shapes released to public, and then I can send a PR to moveit that will remove the class from there and leave there only a typedef to bodies::AABB for backwards compatibility. So there will be just a short time window where the same class will be defined at two places (in different namespaces, though). |
ab30d16 to
555cfc7
Compare
BryceStevenWilley
left a comment
There was a problem hiding this comment.
Minor nit with the test, but otherwise great!
include/geometric_shapes/aabb.h
Outdated
| * copyright notice, this list of conditions and the following | ||
| * disclaimer in the documentation and/or other materials provided | ||
| * with the distribution. | ||
| * * Neither the name of Willow Garage, Inc. nor the names of its |
There was a problem hiding this comment.
| * * Neither the name of Willow Garage, Inc. nor the names of its | |
| * * Neither the name of Open Robotics, nor the names of its |
test/test_bounding_box.cpp
Outdated
|
|
||
| // box mesh | ||
|
|
||
| m.vertices[3 * 0 + 0] = -1; |
There was a problem hiding this comment.
Factor out the mesh making to a separate function
|
I did the requested fixes. |
|
Forgot to clang-format, and for some reason, the tests are failing? Can't tell why however. |
|
Okay, I formatted the code. I also have no idea why the test didn't, run, so let's see if it wasn't just a random glitch. |
|
Hmm, I still don't see why exactly is the test being not launched. However - do you think it's even correct to test this PR against kinetic-devel if it is only targeted for melodic? |
|
It is strange, but since the melodic branch still builds on kinetic, I don't we want this PR to break that. I've got a kinetic machine that I have access to, I'll try to run that test there and see if I can debug it this week. |
|
It segfaults in test I'll keep investigating |
|
The tests are fixed now. |
|
Friendly ping. Who could be the 2nd reviewer for this? |
v4hn
left a comment
There was a problem hiding this comment.
looks good to merge to me.
Could you please cleanup the commit history before?
|
Done. |
|
Thanks! sorry, I lost track of this for a while. |
|
Hi @v4hn , could you please make a new release of geometric_shapes so that this feature is available in the released packages, too? |
|
Before preparing a new release of geometric_shapes, we should take care of some other pending PRs. |
Solves #89 for axis-aligned bounding boxes.