@@ -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