Skip to content

Commit

Permalink
[bindings] Added revolute unbounded
Browse files Browse the repository at this point in the history
  • Loading branch information
Megane Millan committed Jul 8, 2024
1 parent 2a656bc commit 75c633d
Showing 1 changed file with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace pinocchio
return cl;
}

// specialization for JointModelPrismatic
// specialization for JointModelRevolute
template<>
bp::class_<context::JointModelRX> &
expose_joint_model<context::JointModelRX>(bp::class_<context::JointModelRX> & cl)
Expand Down Expand Up @@ -75,6 +75,37 @@ namespace pinocchio
"Rotation axis of the JointModelRevoluteUnaligned.");
}

// specialization for JointModelRevoluteUnbounded
template<>
bp::class_<context::JointModelRUBX> &
expose_joint_model<context::JointModelRUBX>(bp::class_<context::JointModelRUBX> & cl)
{
return cl.def(bp::init<>(bp::args("self"), "Init JointModelRUBX with x as rotation axis"))
.def(
"getMotionAxis", &context::JointModelRUBX::getMotionAxis,
"Rotation axis of the JointModelRUBX.");
}

template<>
bp::class_<context::JointModelRUBY> &
expose_joint_model<context::JointModelRUBY>(bp::class_<context::JointModelRUBY> & cl)
{
return cl.def(bp::init<>(bp::args("self"), "Init JointModelRUBY with y as rotation axis"))
.def(
"getMotionAxis", &context::JointModelRUBY::getMotionAxis,
"Rotation axis of the JointModelRUBY.");
}

template<>
bp::class_<context::JointModelRUBZ> &
expose_joint_model<context::JointModelRUBZ>(bp::class_<context::JointModelRUBZ> & cl)
{
return cl.def(bp::init<>(bp::args("self"), "Init JointModelRUBZ with z as rotation axis"))
.def(
"getMotionAxis", &context::JointModelRUBZ::getMotionAxis,
"Rotation axis of the JointModelRUBZ.");
}

// specialization for JointModelPrismatic
template<>
bp::class_<context::JointModelPX> &
Expand Down

0 comments on commit 75c633d

Please sign in to comment.