Skip to content

Commit d518c8b

Browse files
committed
(PyKDL) remove None from Joint
1 parent 2d1ef03 commit d518c8b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python_orocos_kdl/PyKDL/pybind11/kinfam.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,18 @@ void init_kinfam(pybind11::module &m)
6262
joint_type.value("TransX", Joint::JointType::TransX);
6363
joint_type.value("TransY", Joint::JointType::TransY);
6464
joint_type.value("TransZ", Joint::JointType::TransZ);
65+
joint_type.value("Fixed", Joint::JointType::Fixed);
66+
#if PY_VERSION_HEX < 0x03000000
6567
joint_type.value("None", Joint::JointType::None);
68+
#endif
6669
joint_type.export_values();
6770

6871
joint.def(py::init<>());
6972
joint.def(py::init<std::string, Joint::JointType, double, double, double, double, double>(),
70-
py::arg("name"), py::arg("type")=Joint::JointType::None, py::arg("scale")=1, py::arg("offset")=0,
73+
py::arg("name"), py::arg("type")=Joint::JointType::Fixed, py::arg("scale")=1, py::arg("offset")=0,
7174
py::arg("inertia")=0, py::arg("damping")=0, py::arg("stiffness")=0);
7275
joint.def(py::init<Joint::JointType, double, double, double, double, double>(),
73-
py::arg("type")=Joint::JointType::None, py::arg("scale")=1, py::arg("offset")=0,
76+
py::arg("type")=Joint::JointType::Fixed, py::arg("scale")=1, py::arg("offset")=0,
7477
py::arg("inertia")=0, py::arg("damping")=0, py::arg("stiffness")=0);
7578
joint.def(py::init<std::string, Vector, Vector, Joint::JointType, double, double, double, double, double>(),
7679
py::arg("name"), py::arg("origin"), py::arg("axis"), py::arg("type"), py::arg("scale")=1, py::arg("offset")=0,

0 commit comments

Comments
 (0)