Skip to content

Commit 0ef2856

Browse files
author
Murilo Marinho
committed
Added missing DQ_SeriaLWholeBody_py.cpp file
1 parent 05ab475 commit 0ef2856

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

cpp

Submodule cpp updated 1 file
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
(C) Copyright 2020 DQ Robotics Developers
3+
4+
This file is part of DQ Robotics.
5+
6+
DQ Robotics is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU Lesser General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
DQ Robotics is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU Lesser General Public License for more details.
15+
16+
You should have received a copy of the GNU Lesser General Public License
17+
along with DQ Robotics. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Contributors:
20+
- Murilo M. Marinho (murilo@nml.t.u-tokyo.ac.jp)
21+
*/
22+
23+
#include "../dqrobotics_module.h"
24+
25+
void init_DQ_SerialWholeBody_py(py::module& m)
26+
{
27+
/*****************************************************
28+
* DQ WholeBody
29+
* **************************************************/
30+
py::class_<DQ_SerialWholeBody,DQ_Kinematics> dqserialwholebody_py(m,"DQ_SerialWholeBody");
31+
dqserialwholebody_py.def(py::init<std::shared_ptr<DQ_Kinematics>>());
32+
dqserialwholebody_py.def("add",&DQ_SerialWholeBody::add,"Adds a DQ_Kinematics pointer to the kinematic chain.");
33+
dqserialwholebody_py.def("fkm",(DQ (DQ_SerialWholeBody::*)(const VectorXd&) const)&DQ_SerialWholeBody::fkm,"Gets the fkm.");
34+
dqserialwholebody_py.def("fkm",(DQ (DQ_SerialWholeBody::*)(const VectorXd&,const int&) const)&DQ_SerialWholeBody::fkm,"Gets the fkm.");
35+
dqserialwholebody_py.def("get_dim_configuration_space",&DQ_SerialWholeBody::get_dim_configuration_space,"Gets the dimention of the configuration space");
36+
dqserialwholebody_py.def("get_chain",&DQ_SerialWholeBody::get_chain, "Returns the DQ_Kinematics at a given index of the chain");
37+
dqserialwholebody_py.def("get_chain_as_serial_manipulator",&DQ_SerialWholeBody::get_chain_as_serial_manipulator, "Returns the DQ_SerialManipulator at a given index of the chain");
38+
dqserialwholebody_py.def("get_chain_as_holonomic_base",&DQ_SerialWholeBody::get_chain_as_holonomic_base, "Returns the DQ_HolonomicBase at a given index of the chain");
39+
dqserialwholebody_py.def("pose_jacobian",(MatrixXd (DQ_SerialWholeBody::*)(const VectorXd&, const int&) const)&DQ_SerialWholeBody::pose_jacobian,"Returns the pose Jacobian");
40+
dqserialwholebody_py.def("pose_jacobian",(MatrixXd (DQ_SerialWholeBody::*)(const VectorXd&) const)&DQ_SerialWholeBody::pose_jacobian,"Returns the pose Jacobian");
41+
}

0 commit comments

Comments
 (0)