GCC Code Coverage Report


Directory: ./
File: bindings/python/crocoddyl/core/data/actuation.cpp
Date: 2025-01-30 11:01:55
Exec Total Coverage
Lines: 9 9 100.0%
Branches: 5 10 50.0%

Line Branch Exec Source
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
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 bp::class_<DataCollectorActuation, bp::bases<DataCollectorAbstract> >(
19 "DataCollectorActuation", "Actuation data collector.\n\n",
20
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 bp::init<std::shared_ptr<ActuationDataAbstract> >(
21 20 bp::args("self", "actuation"),
22 "Create actuation data collection.\n\n"
23 ":param actuation: actuation data"))
24
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 .add_property(
25 "actuation",
26
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 bp::make_getter(&DataCollectorActuation::actuation,
27 10 bp::return_value_policy<bp::return_by_value>()),
28 "actuation data")
29
1/2
✓ Branch 1 taken 10 times.
✗ Branch 2 not taken.
10 .def(CopyableVisitor<DataCollectorActuation>());
30 10 }
31
32 } // namespace python
33 } // namespace crocoddyl
34