Skip to content

Commit 2a313cb

Browse files
Fix eigen issues with kinematics information
1 parent 28cac78 commit 2a313cb

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

tesseract/tesseract_environment/include/tesseract_environment/core/manipulator_manager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ namespace tesseract_environment
4141
class ManipulatorManager
4242
{
4343
public:
44+
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
45+
4446
using Ptr = std::shared_ptr<ManipulatorManager>;
4547
using ConstPtr = std::shared_ptr<const ManipulatorManager>;
4648

tesseract/tesseract_scene_graph/include/tesseract_scene_graph/kinematics_information.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ TESSERACT_COMMON_IGNORE_WARNINGS_PUSH
3434
#include <Eigen/Geometry>
3535
TESSERACT_COMMON_IGNORE_WARNINGS_POP
3636

37+
#include <tesseract_common/types.h>
38+
3739
namespace tesseract_scene_graph
3840
{
3941
/** @brief A structure to hold opw kinematics data */
@@ -67,8 +69,8 @@ struct REPKinematicParameters
6769
using GroupsJointState = std::unordered_map<std::string, double>;
6870
using GroupsJointStates = std::unordered_map<std::string, GroupsJointState>;
6971
using GroupJointStates = std::unordered_map<std::string, GroupsJointStates>;
70-
using GroupsTCPs = std::unordered_map<std::string, Eigen::Isometry3d>;
71-
using GroupTCPs = std::unordered_map<std::string, GroupsTCPs>;
72+
using GroupsTCPs = tesseract_common::AlignedMap<std::string, Eigen::Isometry3d>;
73+
using GroupTCPs = tesseract_common::AlignedMap<std::string, GroupsTCPs>;
7274
using ChainGroup = std::vector<std::pair<std::string, std::string>>;
7375
using ChainGroups = std::unordered_map<std::string, ChainGroup>;
7476
using JointGroup = std::vector<std::string>;
@@ -87,6 +89,8 @@ using GroupDefaultKinematicsSolver = std::unordered_map<std::string, std::string
8789
*/
8890
struct KinematicsInformation
8991
{
92+
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
93+
9094
/** @brief A vector of group names */
9195
std::vector<std::string> group_names;
9296

tesseract/tesseract_scene_graph/include/tesseract_scene_graph/srdf_model.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ namespace tesseract_scene_graph
5151
class SRDFModel
5252
{
5353
public:
54+
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
55+
5456
using Ptr = std::shared_ptr<SRDFModel>;
5557
using ConstPtr = std::shared_ptr<const SRDFModel>;
5658

0 commit comments

Comments
 (0)