1 |
|
|
/////////////////////////////////////////////////////////////////////////////// |
2 |
|
|
// BSD 3-Clause License |
3 |
|
|
// |
4 |
|
|
// Copyright (C) 2019-2023, University of Edinburgh, Heriot-Watt University |
5 |
|
|
// Copyright note valid unless otherwise stated in individual files. |
6 |
|
|
// All rights reserved. |
7 |
|
|
/////////////////////////////////////////////////////////////////////////////// |
8 |
|
|
|
9 |
|
|
#include "crocoddyl/core/data/actuation.hpp" |
10 |
|
|
|
11 |
|
|
#include "python/crocoddyl/core/core.hpp" |
12 |
|
|
#include "python/crocoddyl/utils/copyable.hpp" |
13 |
|
|
|
14 |
|
|
namespace crocoddyl { |
15 |
|
|
namespace python { |
16 |
|
|
|
17 |
|
10 |
void exposeDataCollectorActuation() { |
18 |
✓✗ |
10 |
bp::class_<DataCollectorActuation, bp::bases<DataCollectorAbstract> >( |
19 |
|
|
"DataCollectorActuation", "Actuation data collector.\n\n", |
20 |
✓✗ |
10 |
bp::init<boost::shared_ptr<ActuationDataAbstract> >( |
21 |
|
20 |
bp::args("self", "actuation"), |
22 |
|
|
"Create actuation data collection.\n\n" |
23 |
|
|
":param actuation: actuation data")) |
24 |
|
|
.add_property( |
25 |
|
|
"actuation", |
26 |
✓✗ |
10 |
bp::make_getter(&DataCollectorActuation::actuation, |
27 |
|
10 |
bp::return_value_policy<bp::return_by_value>()), |
28 |
✓✗ |
10 |
"actuation data") |
29 |
✓✗ |
10 |
.def(CopyableVisitor<DataCollectorActuation>()); |
30 |
|
10 |
} |
31 |
|
|
|
32 |
|
|
} // namespace python |
33 |
|
|
} // namespace crocoddyl |