17 bp::class_<DirectSumCost, bp::bases<CostAbstract>>(
"DirectSumCost",
19 .def(bp::init<xyz::polymorphic<CostAbstract>,
20 xyz::polymorphic<CostAbstract>>(
21 bp::args(
"self",
"cost1",
"cost2")))
24 .def(PolymorphicVisitor<PolyCost>());
26 bp::class_<DirectSumCost::Data, bp::bases<context::CostData>>(
27 "DirectSumCostData", bp::no_init)
28 .def_readonly(
"data1", &DirectSumCost::Data::data1_)
29 .def_readonly(
"data2", &DirectSumCost::Data::data2_);
32 "Perform the direct sum of two cost functions, :math:`l_3(x,u) = "
33 "l_1(x_1,u_1) + l_2(x_2,u_2)`");
CostAbstractTpl< Scalar > CostAbstract
ManifoldAbstractTpl< Scalar > Manifold