Commit 11aaa7f5 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add root joint type "translation3d"

parent 7e778bbe
......@@ -106,10 +106,11 @@ namespace hpp {
JointModelVariant buildJoint (const std::string& type)
{
if (type == "freeflyer") return JointCollection::JointModelFreeFlyer();
else if (type == "planar") return JointCollection::JointModelPlanar();
else if (type == "prismatic_x") return JointCollection::JointModelPX();
else if (type == "prismatic_y") return JointCollection::JointModelPY();
if (type == "freeflyer") return JointCollection::JointModelFreeFlyer();
else if (type == "planar") return JointCollection::JointModelPlanar();
else if (type == "prismatic_x") return JointCollection::JointModelPX();
else if (type == "prismatic_y") return JointCollection::JointModelPY();
else if (type == "translation3d") return JointCollection::JointModelTranslation();
else throw std::invalid_argument
("Root joint type \"" + type + "\" is currently not available.");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment