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

switch from using affine3d to isometry3d #20

Conversation

Levi-Armstrong
Copy link
Contributor

No description provided.

typedef std::map<std::string, Eigen::Affine3d> TransformMap;
typedef std::vector<Eigen::Isometry3d, Eigen::aligned_allocator<Eigen::Isometry3d> > VectorIsometry3d;
typedef std::vector<Eigen::Vector4d, Eigen::aligned_allocator<Eigen::Vector4d> > VectorVector4d;
typedef std::map<std::string, Eigen::Isometry3d> TransformMap;
Copy link
Contributor

Choose a reason for hiding this comment

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

Technically, std::map should also take an aligned allocator here. See Eigen docs.

Shameless plug, you can use templated aliases to make this code very concise and general. See my PR. For your convenience:

template <typename Key, typename Value>
using AlignedMap = std::map<Key, Value, std::less<Key>, Eigen::aligned_allocator<std::pair<const Key, Value>>>; 
template <typename T>
using AlignedVector = std::vector<T, Eigen::aligned_allocator<T>>;

@Levi-Armstrong
Copy link
Contributor Author

@Jmeyer1292 Ok to merge

@Jmeyer1292
Copy link
Contributor

@Levi-Armstrong I do not have write access to this repo. I can't merge.

@Levi-Armstrong
Copy link
Contributor Author

@Jmeyer1292 Ok, you have write access now on this repository and on trajopt_ros

@Levi-Armstrong Levi-Armstrong merged commit 91023c8 into tesseract-robotics:kinetic-devel Aug 31, 2018
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.

None yet

2 participants