-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python patches for Feb 2022 update #716
Python patches for Feb 2022 update #716
Conversation
@@ -50,6 +50,7 @@ enum GeometryType | |||
CONVEX_MESH, | |||
SDF_MESH, | |||
OCTREE, | |||
POLYGON_MESH | |||
}; | |||
static const std::vector<std::string> GeometryTypeStrings = { | |||
"SPHERE", "CYLINDER", "CAPSULE", "CONE", "BOX", "PLANE", "MESH", "CONVEX_MESH", "SDF_MESH", "OCTREE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also append "POLYGON_MESH"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the change.
@@ -201,7 +203,7 @@ class PolygonMesh : public Geometry | |||
* | |||
* @return The vertex normal vector | |||
*/ | |||
std::shared_ptr<const tesseract_common::VectorVector3d> getNormals() const { return normals_; } | |||
const std::shared_ptr<const tesseract_common::VectorVector3d>& getNormals() const { return normals_; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, why the switch to const&?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SWIG wasn't detecting the type properly without const&
I am still cleaning up these patches to fix the CI errors |
@johnwason You good with me merging this? |
Yeah looks ready |
This pull request contains patches for the Feb 2022 python update.