Skip to content

Commit f8146a3

Browse files
committed
[python] CostStack : use overload_base_get_item_for_map
This commit requires stack-of-tasks/eigenpy#507 to be merged.
1 parent 6d0638c commit f8146a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bindings/python/src/modelling/expose-cost-stack.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ void exposeCostStack() {
6868
.def(CopyableVisitor<CostStack>())
6969
.def(PolymorphicMultiBaseVisitor<CostAbstract>());
7070
#if ALIGATOR_EIGENPY_HAS_MAP_SUPPORT
71-
eigenpy::GenericMapVisitor<CostMap, true>::expose("CostMap");
71+
eigenpy::GenericMapVisitor<CostMap, true>::expose(
72+
"CostMap", eigenpy::overload_base_get_item_for_map<CostMap>());
7273
#endif
7374
}
7475

@@ -79,7 +80,8 @@ void exposeCostStack() {
7980
"CostStackData", "Data struct for CostStack.", bp::no_init)
8081
.def_readonly("sub_cost_data", &CostStackData::sub_cost_data);
8182
#if ALIGATOR_EIGENPY_HAS_MAP_SUPPORT
82-
eigenpy::GenericMapVisitor<CostStackData::DataMap, true>::expose("DataMap");
83+
eigenpy::GenericMapVisitor<CostStackData::DataMap, true>::expose(
84+
"CostMap", eigenpy::overload_base_get_item_for_map<CostMap>());
8385
#endif
8486
}
8587
}

0 commit comments

Comments
 (0)