Skip to content
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

Tests: add user-struct test #350

Merged
merged 1 commit into from
Feb 28, 2023
Merged

Tests: add user-struct test #350

merged 1 commit into from
Feb 28, 2023

Conversation

ManifoldFR
Copy link
Member

@ManifoldFR ManifoldFR commented Feb 28, 2023

This PR adds a test wherein a user-defined struct containing fixed-size Eigen members are exposed with getters and setters (similarly to pinocchio.GeometryObject's meshColor member).

With the -mavx2 compile flag, the test succeeds with Boost>=1.77, but fails triggering a segfault on 1.76 and 1.74 (which is required by conda ROS noetic) when assigning to the Eigen::Vector4d type member a follows:

ms.y = y

However, a slicing-assignment ms.y[:] = y does not trigger a segfault.

Assigning to the Vector3d member does not trigger a segfault.
Without the AVX flag, the test does not fail (so the CI will pass).

Compiler: clang++ 15
Environment: conda environment

+ create struct with fixed-size members, expose with setter
@jcarpent jcarpent merged commit 79ced4d into stack-of-tasks:devel Feb 28, 2023
@ManifoldFR ManifoldFR deleted the wj/add-test-user-struct branch March 29, 2023 09:36
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.

2 participants