generated from LCAS/ros2-teaching-ws
-
Notifications
You must be signed in to change notification settings - Fork 6
Implement Inverse Kinematics Part 2
francescodelduchetto edited this page Mar 20, 2025
·
1 revision
- ➡️ 🧑💻 Launch the rviz with
ros2 launch mecharm_moveit_config launch_ik.launch.py
to visualise our robot and the marker to set the target pose of the end-effector (link6
). - ℹ️ ➡️ 🧑💻 This week, I provide a new template for implementing the inverse kinematics problem which contains a few hints and parts of the solutions. Open and complete the script
src/week6/inverse_kinematics_analytic_hints.py
.
Based on the robot definition:
We can derive the following direct kinematics transformations:
➡️ Remember that we have derived the forward kinematics for the robot in the shown configuration in week4 as follows:
T = self.HT('z', 0.136) @ self.HR('z', q1) @ self.HR('x', -np.pi/2) @ self.HR('z', -np.pi/2) @ \
self.HR('z', q2) @ self.HT('x', 0.1) @ self.HR('z', q3) @ self.HT('y', 0.107) @ \
self.HR('x', -np.pi/2) @ self.HR('z', q4) @ self.HR('x', np.pi/2) @ self.HR('z', q5) @ \
self.HR('z', np.pi/2) @ self.HR('y', np.pi/2) @ self.HR('z', q6) @ \
self.HT('z', 0.065)
Parts for the workshops are extracted, edited from and/or inspired by the following sources.
- Official ROS humble tutorials: https://docs.ros.org/en/humble/Tutorials.html
- Elephant Robotics docs: https://docs.elephantrobotics.com/docs/gitbook-en/