Unverified Commit a1d01e83 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

examples: small fix

parent 67448ac6
......@@ -6,12 +6,12 @@ import os
# Load UR robot arm
# This path refers to Pinocchio source code but you can define your own directory here.
pinocchio_model_dir = join(dirname(dirname(str(abspath(__file__)))), "models")
pinocchio_model_dir = os.join(dirname(dirname(str(abspath(__file__)))), "models")
model_path = pinocchio_model_dir + '/others/robots'
mesh_dir = model_path
# You should change here to set up your own URDF file
urdf_filename = model_path + '/ur_description/urdf/ur5_robot.urdf'
model, collision_model, visual_model = pinocchio.buildModelsFromUrdf(urdf_model_path, mesh_dir)
model, collision_model, visual_model = pin.buildModelsFromUrdf(urdf_model_path, mesh_dir)
# Check dimensions of the original model
print('standard model: dim=' + str(len(model.joints)))
......@@ -43,4 +43,3 @@ model_reduced, visual_model_reduced = pin.buildReducedModel(model, visual_model,
print('reduced model: dim=' + str(len(model_reduced.joints)))
for jn in model_reduced.joints:
print(jn)
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