37 #include <pybind11/pybind11.h>
38 #include <pybind11/stl.h>
40 #include <urdf_model/model.h>
44 using namespace robot_model;
48 m.doc() =
"Definition of a kinematic model. Not thread safe, however multiple instances can be created.";
49 py::class_<RobotModel, RobotModelPtr>(m,
"RobotModel")
50 .def(py::init<const urdf::ModelInterfaceSharedPtr&, const srdf::ModelConstSharedPtr&>(), py::arg(
"urdf_model"),
51 py::arg(
"srdf_model"))
52 .def(
"getName", &RobotModel::getName)
53 .def(
"getLinkModelNames", &RobotModel::getLinkModelNames)
54 .def(
"getJointModelNames", &RobotModel::getJointModelNames)
58 py::class_<JointModelGroup, JointModelGroupPtr>(m,
"JointModelGroup")
59 .def(
"getLinkModelNames", &JointModelGroup::getLinkModelNames)
60 .def(
"getJointModelNames", &JointModelGroup::getJointModelNames)
void def_robot_model_bindings(py::module &m)