diff --git a/src/multibody/geometry.hpp b/src/multibody/geometry.hpp index 50146c2feb15313360aa36b6259d46e07fdc4629..c3f7514cd7fc8dfe09acd12bda5ec551dc2e398d 100644 --- a/src/multibody/geometry.hpp +++ b/src/multibody/geometry.hpp @@ -163,6 +163,8 @@ namespace se3 typedef Model::Index Index; typedef Model::JointIndex JointIndex; typedef Model::GeomIndex GeomIndex; + + typedef std::list<GeomIndex> GeomIndexList; Index ngeom; std::vector<fcl::CollisionObject> collision_objects; @@ -170,8 +172,8 @@ namespace se3 std::vector<JointIndex> geom_parents; // Joint parent of body <i>, denoted <li> (li==parents[i]) std::vector<SE3> geometryPlacement; // Position of geometry object in parent joint's frame - std::map < JointIndex, std::list<GeomIndex> > innerObjects; // Associate a list of CollisionObjects to a given joint Id - std::map < JointIndex, std::list<GeomIndex> > outerObjects; // Associate a list of CollisionObjects to a given joint Id + std::map < JointIndex, GeomIndexList > innerObjects; // Associate a list of CollisionObjects to a given joint Id + std::map < JointIndex, GeomIndexList > outerObjects; // Associate a list of CollisionObjects to a given joint Id GeometryModel() : ngeom(0)