Skip to content
Snippets Groups Projects
Commit 8e5fc576 authored by jcarpent's avatar jcarpent
Browse files

[C++] Include unaligned prismatic joint in the URDF parser

parent 06508274
No related branches found
No related tags found
No related merge requests found
......@@ -308,8 +308,14 @@ namespace se3
axis_value << std::setprecision(5);
axis_value << "(" << joint->axis.x <<"," << joint->axis.y << "," << joint->axis.z << ")";
joint_info += " unaligned " + axis_value.str();
std::cerr << "Bad axis = " << axis_value << std::endl;
assert(false && "Only X, Y or Z axis are accepted." );
Eigen::Vector3d jointAxis(Eigen::Vector3d(joint->axis.x,joint->axis.y,joint->axis.z));
jointAxis.normalize();
model.addBody(parent_joint_id, JointModelPrismaticUnaligned(jointAxis),
jointPlacement, Y,
max_effort, max_velocity, lower_position, upper_position,
joint->name,link->name, has_visual);
break;
}
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment