Skip to content

Commit 483fbf1

Browse files
authored
Merge pull request #162 from resibots/franka_eef
[robots]: Add EE frame in Franka
2 parents c746670 + 3ba8909 commit 483fbf1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

robots/franka/franka.urdf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,20 @@
222222
<inertia ixx="0.3" ixy="0.0" ixz="0.0" iyy="0.3" iyz="0.0" izz="0.3" />
223223
</inertial>
224224
</link>
225+
<!-- Fixed Joint from link 8 to EE -->
226+
<joint name="panda_ee_joint" type="fixed">
227+
<parent link="panda_link8" />
228+
<child link="panda_ee" />
229+
<origin rpy="0 0 -0.785398163397" xyz="0 0 0.103" />
230+
</joint>
231+
<!-- Panda EE (official) -->
232+
<link name="panda_ee">
233+
<inertial>
234+
<origin rpy="0 0 0" xyz="0 0 0" />
235+
<mass value="1e-10" />
236+
<inertia ixx="1e-6" ixy="0.0" ixz="0.0" iyy="1e-6" iyz="0.0" izz="1e-6" />
237+
</inertial>
238+
</link>
225239
<!-- Fixed Joint Hand from link 8 to hand -->
226240
<joint name="panda_hand_joint" type="fixed">
227241
<parent link="panda_link8" />

src/examples/franka.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ int main()
1414

1515
// add a PD-controller to the arm
1616
// set desired positions
17-
Eigen::VectorXd ctrl = robot_dart::make_vector({0., M_PI / 4., 0., -M_PI / 4, 0., M_PI / 2., 0., 0.});
17+
Eigen::VectorXd ctrl = robot_dart::make_vector({0., M_PI / 4., 0., -M_PI / 4., 0., M_PI / 2., 0., 0.});
1818

1919
// add the controller to the robot
2020
auto controller = std::make_shared<robot_dart::control::PDControl>(ctrl);

0 commit comments

Comments
 (0)