| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /////////////////////////////////////////////////////////////////////////////// | ||
| 2 | // BSD 3-Clause License | ||
| 3 | // | ||
| 4 | // Copyright (C) 2019-2025, University of Edinburgh, Heriot-Watt University | ||
| 5 | // Copyright note valid unless otherwise stated in individual files. | ||
| 6 | // All rights reserved. | ||
| 7 | /////////////////////////////////////////////////////////////////////////////// | ||
| 8 | |||
| 9 | // Auto-generated file for double | ||
| 10 | #include "crocoddyl/core/data/actuation.hpp" | ||
| 11 | |||
| 12 | #include "python/crocoddyl/core/core.hpp" | ||
| 13 | |||
| 14 | namespace crocoddyl { | ||
| 15 | namespace python { | ||
| 16 | |||
| 17 | template <typename Data> | ||
| 18 | struct DataCollectorActuationVisitor | ||
| 19 | : public bp::def_visitor<DataCollectorActuationVisitor<Data>> { | ||
| 20 | template <class PyClass> | ||
| 21 | ✗ | void visit(PyClass& cl) const { | |
| 22 | ✗ | cl.add_property( | |
| 23 | "actuation", | ||
| 24 | ✗ | bp::make_getter(&Data::actuation, | |
| 25 | ✗ | bp::return_value_policy<bp::return_by_value>()), | |
| 26 | "actuation data"); | ||
| 27 | ✗ | } | |
| 28 | }; | ||
| 29 | |||
| 30 | #define CROCODDYL_DATA_COLLECTOR_JOINT_PYTHON_BINDINGS(Scalar) \ | ||
| 31 | typedef DataCollectorActuationTpl<Scalar> Data; \ | ||
| 32 | typedef DataCollectorAbstractTpl<Scalar> DataBase; \ | ||
| 33 | typedef ActuationDataAbstractTpl<Scalar> ActuationData; \ | ||
| 34 | bp::register_ptr_to_python<std::shared_ptr<Data>>(); \ | ||
| 35 | bp::class_<Data, bp::bases<DataBase>>( \ | ||
| 36 | "DataCollectorActuation", "Actuation data collector.\n\n", \ | ||
| 37 | bp::init<std::shared_ptr<ActuationData>>( \ | ||
| 38 | bp::args("self", "actuation"), \ | ||
| 39 | "Create actuation data collection.\n\n" \ | ||
| 40 | ":param actuation: actuation data")) \ | ||
| 41 | .def(DataCollectorActuationVisitor<Data>()) \ | ||
| 42 | .def(CopyableVisitor<Data>()); | ||
| 43 | |||
| 44 | ✗ | void exposeDataCollectorActuation() { | |
| 45 | ✗ | CROCODDYL_DATA_COLLECTOR_JOINT_PYTHON_BINDINGS(double) | |
| 46 | ✗ | } | |
| 47 | |||
| 48 | } // namespace python | ||
| 49 | } // namespace crocoddyl | ||
| 50 |