diff --git a/bindings/matlab/matlab_mat4x4vec.i b/bindings/matlab/matlab_mat4x4vec.i
index 527a48291f7..7623aed64f9 100644
--- a/bindings/matlab/matlab_mat4x4vec.i
+++ b/bindings/matlab/matlab_mat4x4vec.i
@@ -26,7 +26,7 @@
d[overall_index]=content[index_sequence];
}
}
- //free(content); //Tried to free the pointer but got error.
+
++it;
}
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_chest_bb_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_chest_bb_prt-binary.stl
deleted file mode 100644
index ed8f19972f7..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_chest_bb_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_head_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_head_prt-binary.stl
deleted file mode 100644
index 6852ebb9ada..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_head_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_ankle_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_ankle_prt-binary.stl
deleted file mode 100644
index fd28a92222e..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_ankle_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_elbow_prosup_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_elbow_prosup_prt-binary.stl
deleted file mode 100644
index 35178cac428..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_elbow_prosup_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_elbow_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_elbow_prt-binary.stl
deleted file mode 100644
index 062217c716b..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_elbow_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_foot_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_foot_prt-binary.stl
deleted file mode 100644
index 272c07333e3..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_foot_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_forearm_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_forearm_prt-binary.stl
deleted file mode 100644
index 788d3e524b0..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_forearm_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hand_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hand_prt-binary.stl
deleted file mode 100644
index bff96722c54..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hand_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hip_1_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hip_1_prt-binary.stl
deleted file mode 100644
index 013dbd132ca..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hip_1_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hip_2_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hip_2_prt-binary.stl
deleted file mode 100644
index 78b5f1d11ff..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_hip_2_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shank_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shank_prt-binary.stl
deleted file mode 100644
index c867eacfd16..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shank_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shoulder_1_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shoulder_1_prt-binary.stl
deleted file mode 100644
index 47f9f4bd3c0..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shoulder_1_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shoulder_2_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shoulder_2_prt-binary.stl
deleted file mode 100644
index 008fa7fa0e6..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_shoulder_2_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_sole_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_sole_prt-binary.stl
deleted file mode 100644
index 2d65d9d6aac..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_sole_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_thigh_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_thigh_prt-binary.stl
deleted file mode 100644
index c45b96a3c24..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_thigh_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_upper_arm_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_upper_arm_prt-binary.stl
deleted file mode 100644
index 268cc9122d4..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_upper_arm_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_upper_thigh_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_upper_thigh_prt-binary.stl
deleted file mode 100644
index e02013059df..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_upper_thigh_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_wrist_pitch_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_wrist_pitch_prt-binary.stl
deleted file mode 100644
index da3b4d6332f..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_l_wrist_pitch_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_lap_belt_1_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_lap_belt_1_prt-binary.stl
deleted file mode 100644
index 7c9f46b7a79..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_lap_belt_1_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_lap_belt_2_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_lap_belt_2_prt-binary.stl
deleted file mode 100644
index 07807d30054..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_lap_belt_2_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_neck_1_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_neck_1_prt-binary.stl
deleted file mode 100644
index d915b3e3e25..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_neck_1_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_neck_2_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_neck_2_prt-binary.stl
deleted file mode 100644
index 42ab7dfe210..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_neck_2_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_ankle_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_ankle_prt-binary.stl
deleted file mode 100644
index 4abc511731a..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_ankle_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_elbow_prosup_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_elbow_prosup_prt-binary.stl
deleted file mode 100644
index 1f6ce72b504..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_elbow_prosup_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_elbow_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_elbow_prt-binary.stl
deleted file mode 100644
index a94336a9b60..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_elbow_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_foot_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_foot_prt-binary.stl
deleted file mode 100644
index 3ab96ccd799..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_foot_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_forearm_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_forearm_prt-binary.stl
deleted file mode 100644
index bbe3b87187e..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_forearm_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hand_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hand_prt-binary.stl
deleted file mode 100644
index 9ddabd4e81c..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hand_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hip_1_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hip_1_prt-binary.stl
deleted file mode 100644
index 05fd9dce940..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hip_1_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hip_2_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hip_2_prt-binary.stl
deleted file mode 100644
index faa39b82f07..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_hip_2_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shank_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shank_prt-binary.stl
deleted file mode 100644
index c6d697420cf..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shank_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shoulder_1_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shoulder_1_prt-binary.stl
deleted file mode 100644
index 0003327e0b3..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shoulder_1_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shoulder_2_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shoulder_2_prt-binary.stl
deleted file mode 100644
index 4d498564e09..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_shoulder_2_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_sole_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_sole_prt-binary.stl
deleted file mode 100644
index c33705138a0..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_sole_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_thigh_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_thigh_prt-binary.stl
deleted file mode 100644
index a7ab7184753..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_thigh_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_upper_arm_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_upper_arm_prt-binary.stl
deleted file mode 100644
index 5d2e3404ab6..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_upper_arm_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_upper_thigh_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_upper_thigh_prt-binary.stl
deleted file mode 100644
index b5f0e6cb67a..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_upper_thigh_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_wrist_pitch_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_wrist_pitch_prt-binary.stl
deleted file mode 100644
index 749e691f6a0..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_r_wrist_pitch_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_root_link_prt-binary.stl b/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_root_link_prt-binary.stl
deleted file mode 100644
index ed84cccbb25..00000000000
Binary files a/examples/iDynTreeWrappers/meshes/stl/sim_sea_2-5_root_link_prt-binary.stl and /dev/null differ
diff --git a/examples/iDynTreeWrappers/model_uses_stl.urdf b/examples/iDynTreeWrappers/model_uses_stl.urdf
deleted file mode 100644
index b0e96a0af4c..00000000000
--- a/examples/iDynTreeWrappers/model_uses_stl.urdf
+++ /dev/null
@@ -1,3390 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
-
-
- true
-
-
- true
-
-
- true
-
-
- true
-
-
- true
-
-
-
- 0
- 100000
-
- 4
- 18000000
- 100
- 100
- 0.0001
- 1
- 1
- 0 0 0
-
-
-
- 0
- 100000
-
- 4
- 18000000
- 100
- 100
- 0.0001
- 1
- 1
- 0 0 0
-
-
-
- model://iCub/conf/MTB/gazebo_icub_left_leg_mtb.ini
-
-
- model://iCub/conf/MTB/gazebo_icub_right_leg_mtb.ini
-
-
- model://iCub/conf/MTB/gazebo_icub_left_arm_mtb.ini
-
-
- model://iCub/conf/MTB/gazebo_icub_right_arm_mtb.ini
-
-
- model://iCub/conf/MTB/gazebo_icub_torso_mtb.ini
-
-
- model://iCub/conf/gazebo_icub_torso.ini
-
-
- model://iCub/conf/gazebo_icub_head_without_eyes.ini
-
-
- model://iCub/conf/gazebo_icub_left_arm_no_hand_for_no_hand_model.ini
- -0.52 0.52 0 0.785 0 0 0.0
-
-
- model://iCub/conf/gazebo_icub_right_arm_no_hand_for_no_hand_model.ini
- -0.52 0.52 0 0.785 0 0 0.0
-
-
- model://iCub/conf/gazebo_icub_right_leg.ini
-
-
- model://iCub/conf/gazebo_icub_left_leg.ini
-
-
- model://iCub/conf/gazebo_icub_robotname.ini
-
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
- 1
-
-
-
- 1
- 100
-
- child
- child_to_parent
-
-
- model://iCub/conf/FT/gazebo_icub_left_leg_ft.ini
-
-
-
-
-
-
- child
- child_to_parent
-
-
-
-
- 1
- 100
-
- child
- child_to_parent
-
-
- model://iCub/conf/FT/gazebo_icub_right_leg_ft.ini
-
-
-
-
-
-
- child
- child_to_parent
-
-
-
-
- 1
- 100
-
- child
- child_to_parent
-
-
- model://iCub/conf/FT/gazebo_icub_left_foot_ft.ini
-
-
-
-
-
-
- child
- child_to_parent
-
-
-
-
- 1
- 100
-
- child
- child_to_parent
-
-
- model://iCub/conf/FT/gazebo_icub_right_foot_ft.ini
-
-
-
-
-
-
- child
- child_to_parent
-
-
-
-
- 1
- 100
-
- child
- child_to_parent
-
-
- model://iCub/conf/FT/gazebo_icub_left_arm_ft.ini
-
-
-
-
-
-
- child
- child_to_parent
-
-
-
-
- 1
- 100
-
- child
- child_to_parent
-
-
- model://iCub/conf/FT/gazebo_icub_right_arm_ft.ini
-
-
-
-
-
-
- child
- child_to_parent
-
-
-
-
- 1
- 100
- 0.00950000019074 0.133444 0.0093 -1.57079632679 1.57079632679 0.0
-
- model://iCub/conf/gazebo_icub_inertial.ini
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0493308 -0.0125771 -0.115691 -3.14159265359 1.29154404503 3.14159265359
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0493308 -0.0125771 -0.115691 -3.14159265359 1.29154404503 3.14159265359
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0647855001907 0.064043 -0.0647091 3.1415169123 -0.261799309122 0.000292641880255
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0692016001907 0.064548 -0.0635258 3.1415169123 -0.261799309122 0.000292641880255
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0204533001907 0.088063 -0.0641645 3.14159050104 0.261799319819 3.14158433678
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0160371001907 0.087559 -0.0653479 3.14159050104 0.261799319819 3.14158433678
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0230587998093 0.064019 -0.0758985 3.14110916203 0.261100516471 -0.000309071462555
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0186416998093 0.064521 -0.0770785 3.14110916203 0.261100516471 -0.000309071462555
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0621620998093 0.088063 -0.0529887 -3.14159050476 -0.261799319819 3.14158433987
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0665783998093 0.087559 -0.0518054 -3.14159050476 -0.261799319819 3.14158433987
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0607539998093 -0.0017836 0.0442341 0.875167771492 0.116363734392 -1.48597350247
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0457046998093 -0.001846 0.0567427 0.500960084689 0.107313688983 -1.4778325291
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0439036001907 -0.0017841 0.0577221 -0.500959928973 0.107315404248 -1.66376017469
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0594286001907 -0.0018543 0.0457981 -0.875168153475 0.116362025479 -1.65561807505
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0412194 0.029588 0.0295279 1.57079546365 1.57078381225 -2.68257161165
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0430568 0.02868 0.0760604 -1.57079614695 -1.57050350741 0.459021725219
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0430554 0.028681 0.0049922 -1.11177442168 -1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.010593237 0.02835 -0.010738 1.57079632702 -0.000214520362041 2.47803674451
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0768727847342 0.005497 -0.0110479126068 0.26179949998 0.000370413042328 1.57125816863
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0514186150796 0.015786 0.0407521537277 -0.661143946092 0.147825248461 0.092070114703
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0216379956759 0.027924 -0.0132490254018 -1.76682626732 0.261191225646 0.054048344372
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0430554 -0.028681 0.0295279 -1.57079650664 -1.57050350741 2.68257092837
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0412181 -0.029589 0.0760604 -1.57079650664 -1.57050350741 2.68257092837
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0412194 -0.029588 0.0049921 -1.5707971899 -1.57078381225 2.68257161159
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.010592709 -0.028351 -0.0086914 -1.57079632657 0.000214520362042 -2.47803674451
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0768727847342 -0.005483 -0.0110479126068 0.26179949998 0.000370413042328 -1.57033448496
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0514241740607 -0.0180279 0.0407507258436 -0.661143946092 0.147825248461 -3.04952253889
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0220991874996 0.025657 -0.0151174243212 1.76682134218 0.261099829847 3.08752548202
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0125751 0.0404071 -0.040227 1.57079632679 1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0125771 -0.0404069 -0.083407 1.57079632679 1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.013079 0.0404071 -0.035655 1.57079632679 1.57079632679 0.0
-
-
-
-
-
-
-
-
- 1
- 100
- -0.013081 -0.0404069 -0.087979 1.57079632679 1.57079632679 0.0
-
-
-
-
-
-
-
-
- 1
- 100
- 0.043588628 -0.0301949 0.04894 2.52670843803 -1.57044484253 -0.22287382498
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0539467 -0.0064065 0.039056 -3.12940212057 -1.57038181496 -0.273989852569
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0538313 -0.0130214 0.003986 -2.87731085451 -1.5703518031 -0.264281823992
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0322719 0.0422675 -0.005045 -1.87390998809 -1.57025771326 -0.0808589029571
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0538313 0.0164786 0.003986 -2.87731085451 -1.5703518031 -0.264281823992
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0437518 -0.0157594 -0.026565 1.95410275534e-17 1.5703672368 -3.14159265359
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.0437518 0.0162386 -0.026566 0.264252523901 1.57035180662 -2.87734010478
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.043513746 0.0138396 -0.092765 -3.14159265359 -1.35262978345 -8.47684971046e-16
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.044503308 0.0143435 -0.088301 -3.14159265359 -1.35262978345 -8.47684971046e-16
-
-
-
-
-
-
-
-
- 1
- 100
- 0.05362924 -0.0151958 -0.004318 -1.57079699431 -1.5706802101 -1.81514182543
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.05375167 0.0157229 -0.004318 -1.57079629189 -1.57068021044 -1.22173072149
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0278945 -0.0422139 -0.043468 1.83259550627 -1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0164801 0.042249 -0.092958 -1.57079369547 -1.57068021035 -0.261801810497
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.1034794 -0.0008122 -0.001215 1.46487522971e-16 2.22044521133e-16 -1.57079604303
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0784794 -0.0118122 -0.001215 2.22044604925e-16 2.22044604925e-16 -1.57079632679
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.012577 -0.0404072 -0.083407 1.57079632679 1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.012575 0.0404068 -0.040227 -1.57079632679 -1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.013081 -0.0404072 -0.087979 1.57079632679 1.57079632679 0.0
-
-
-
-
-
-
-
-
- 1
- 100
- -0.013079 0.0404068 -0.035655 -1.57079632679 -1.57079632679 0.0
-
-
-
-
-
-
-
-
- 1
- 100
- 0.04200169 0.0315648 0.049132 -1.57079551857 -1.57068021034 -0.733039094713
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.05352115 0.0077657 0.039252 -1.57079638638 -1.57068021039 -1.3089969474
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.053785 0.0150706 0.004182 3.14159265359 -1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.053785 -0.0144294 0.004182 3.14159265359 -1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.03412955 -0.0414999 -0.004858 1.95476889104 -1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.043785 0.017811 -0.026411 -1.57079632679 1.57077431394 1.57079632679
-
-
-
-
-
-
-
-
-
- 1
- 100
- -0.043785 -0.0141918 -0.026411 1.5707963268 1.57064733889 -1.57079632679
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.043513792 0.0113145 -0.092765 -3.14159265359 -1.35262978345 -8.47684971046e-16
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.044503354 0.0118185 -0.088301 -3.14159265359 -1.35262978345 -8.47684971046e-16
-
-
-
-
-
-
-
-
- 1
- 100
- 0.05313353 0.0171841 -0.004318 -2.89724648752 -1.57079632679 0.0
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0544519 -0.0137991 -0.004318 -1.57079636645 -1.57068021044 -1.91986192735
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0259152 0.0427448 -0.043468 -1.57079369547 -1.57068021035 -0.261801810497
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0184593 -0.0417187 -0.092958 1.57079531928 -1.57076999786 0.261800187025
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.1055274 0.0008122 -0.001215 0.0 -0.0 1.57079632679
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0805274 0.0118122 -0.001215 0.0 -0.0 1.57079632679
-
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0065638 -0.0085861 -0.059282 -2.22044604925e-16 2.22044604925e-16 1.57079632679
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0065638 -0.0085861 -0.059282 -2.22044604925e-16 2.22044604925e-16 1.57079632679
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0040001 -0.0086 -0.045282 -2.22044604925e-16 2.22044604925e-16 1.57079632679
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0040001 -0.0086 -0.045282 -2.22044604925e-16 2.22044604925e-16 1.57079632679
-
-
-
-
-
-
-
-
- 1
- 100
- 0.00667 -0.0085248 -0.059282 -2.22044604925e-16 2.22044604925e-16 1.57079632679
-
-
-
-
-
-
-
-
- 1
- 100
- 0.00667 -0.0085248 -0.059282 -2.22044604925e-16 2.22044604925e-16 1.57079632679
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0040002 -0.0086 -0.045282 -2.22044604925e-16 2.22044604925e-16 1.57079632679
-
-
-
-
-
-
-
-
- 1
- 100
- 0.0040002 -0.0086 -0.045282 -2.22044604925e-16 2.22044604925e-16 1.57079632679
-
-
-
-
-
-
-
- 0.0 0.0 0.63 0.0 0.0 3.14
-
-
diff --git a/examples/iDynTreeWrappers/visualizeRobot.m b/examples/iDynTreeWrappers/visualizeRobot.m
index b2c942ebac0..4903e1cb301 100644
--- a/examples/iDynTreeWrappers/visualizeRobot.m
+++ b/examples/iDynTreeWrappers/visualizeRobot.m
@@ -1,29 +1,26 @@
%% This script is an example on how to use the matlab iDynTree visualization
-%% Launch this file from the folder it is contained
-currentFolder=pwd;
-% insert the path where the meshes may be found, it replaces what is required
+% To use insert the path where the meshes may be found, it replaces what is required
% to complete the path inside the urdf visual mesh field.
% Example:
-% The test model has the following mesh file in the URDF
+% If a test model has the following mesh file in the URDF
% 'package://stl/sim_sea_2-5_root_link_prt-binary.stl'
-% The required file is inside the meshes folder in this directory,
-% so to complete the path we are missing meshes as a prefix to the full
-% path starting from this directory.
-meshFilePrefix='meshes/';
-% The model is in this same folder
-modelPath=[currentFolder '/'];
-fileName='model_uses_stl.urdf';
+% The required path is what it takes to reach the stl folder.
+% meshFilePrefix=;
+% It basically replaces the functionality of find Package by inserting the
+% path manually.
+% The path to the model is also required:
+% modelPath=;
% REMARK : If you have installed the URDF models by https://github.com/robotology/icub-models
% You could fill the required variables as follows:
% % Substitute in the following the location of the install prefix of icub-models
-% icubModelsInstallPrefix = "";
-% meshFilePrefix = [icubModelsInstallPrefix '/share']
-% % Select the robot using the folder name
-% robotName=""
-% icubModelPath = [icubModelsInstallPrefix '/share/iCub/robots/' robotName '/']
-% fileName='model.urdf';
+ icubModelsInstallPrefix = [getenv('ROBOTOLOGY_SUPERBUILD_SOURCE_DIR') '/build-linux/install/'];
+ meshFilePrefix = [icubModelsInstallPrefix '/share'];
+% Select the robot using the folder name
+ robotName='iCubGenova04';
+ modelPath = [icubModelsInstallPrefix '/share/iCub/robots/' robotName '/'];
+ fileName='model.urdf';
jointOrder={
'r_hip_pitch';
diff --git a/src/high-level/src/KinDynComputations.cpp b/src/high-level/src/KinDynComputations.cpp
index a1fa3a9a5cf..f32c6836120 100644
--- a/src/high-level/src/KinDynComputations.cpp
+++ b/src/high-level/src/KinDynComputations.cpp
@@ -889,12 +889,12 @@ Transform KinDynComputations::getRelativeTransform(const std::string& refFrameNa
{
int refFrameIndex = getFrameIndex(refFrameName);
int frameIndex = getFrameIndex(frameName);
- if( frameIndex < 0 )
+ if( frameIndex == iDynTree::FRAME_INVALID_INDEX )
{
reportError("KinDynComputations","getRelativeTransform","unknown frameName");
return Transform::Identity();
}
- else if( refFrameIndex < 0 )
+ else if( refFrameIndex == iDynTree::FRAME_INVALID_INDEX )
{
reportError("KinDynComputations","getRelativeTransform","unknown refFrameName");
return Transform::Identity();
@@ -1005,7 +1005,7 @@ Transform KinDynComputations::getRelativeTransformExplicit(const iDynTree::Frame
Transform KinDynComputations::getWorldTransform(std::string frameName)
{
int frameIndex = getFrameIndex(frameName);
- if( frameIndex < 0 )
+ if( frameIndex == iDynTree::FRAME_INVALID_INDEX )
{
return Transform::Identity();
}
@@ -1081,10 +1081,10 @@ std::vector KinDynComputations::getWorldTransformsAsHomogen
{
std::string frameName=frameNames[number];
int frameIndex = getFrameIndex(frameName);
- if( frameIndex < 0 )
+ if( frameIndex == iDynTree::FRAME_INVALID_INDEX )
{
- reportError("KinDynComputations","getWorldTransformsAsHomogeneous", "requested frameName not found in model");
- worldTransforms.push_back(Transform::Identity().asHomogeneousTransform());
+ reportError("KinDynComputations","getWorldTransformsAsHomogeneous", "requested frameName not found in model. Returning empty vector.");
+ return {};
}
else
{