diff --git a/bindings/python/src/modelling/expose-cost-stack.cpp b/bindings/python/src/modelling/expose-cost-stack.cpp index 0ae8b7b82..f9827e641 100644 --- a/bindings/python/src/modelling/expose-cost-stack.cpp +++ b/bindings/python/src/modelling/expose-cost-stack.cpp @@ -68,7 +68,8 @@ void exposeCostStack() { .def(CopyableVisitor()) .def(PolymorphicMultiBaseVisitor()); #if ALIGATOR_EIGENPY_HAS_MAP_SUPPORT - eigenpy::GenericMapVisitor::expose("CostMap"); + eigenpy::GenericMapVisitor::expose( + "CostMap", eigenpy::overload_base_get_item_for_map()); #endif } @@ -79,7 +80,8 @@ void exposeCostStack() { "CostStackData", "Data struct for CostStack.", bp::no_init) .def_readonly("sub_cost_data", &CostStackData::sub_cost_data); #if ALIGATOR_EIGENPY_HAS_MAP_SUPPORT - eigenpy::GenericMapVisitor::expose("DataMap"); + eigenpy::GenericMapVisitor::expose( + "CostMap", eigenpy::overload_base_get_item_for_map()); #endif } }