Welcome to DOFBOT-Ultra repository
6. MoveIt Inverse Kinematics Design
MoveIt Inverse Kinematics Design
Please ensure that the web control program backend process is not running in the background. To close it, refer to the [Get Started Quickly - 2. Access the Terminal] section in [Disable the Auto-Start Web Control Backend Process]. After closing, please restart DofbotUltra!!!
MoveIt Inverse Kinematics Design1. Usage Environment2. Drive Real Robot2.1. Start Real Robot2.2. Start MoveIt23. Inverse Kinematics DesignLaunch CommandNotes
1. Usage Environment
Motherboard: VMware Workstation virtual machine Ubuntu 22.04 image
ROS2: Humble
2. Drive Real Robot
Driving the real robot is accomplished by subscribing to the MoveIt2 /joint_states topic, converting the joint state information of the arm into control commands for the real robot.
Note: Since the real robot does not have obstacle avoidance functionality, some poses may hit obstacles. Therefore, planned arm motions should be as reasonable as possible and avoid positions with obstacles.
(It is recommended to use preset poses for demonstrating driving the real robot.)
2.1. Start Real Robot
If not driving a real robot, use MoveIt simulation to demonstrate arm motions:
ros2 run dofbot_ultra_driver dofbot_ultra_driver
2.2. Start MoveIt2
xxxxxxxxxxros2 launch dofbot_ultra_moveit demo.launch.py

3. Inverse Kinematics Design
Inverse Kinematics refers to calculating each joint angle of the arm given the end effector pose (spatial coordinates in the world coordinate system). MoveIt then plans to the target pose by itself.
Launch Command
After MoveIt has successfully loaded and You can start planning now! appears, run the following command. The arm will plan to the position by itself.
xxxxxxxxxxros2 run dofbot_ultra_moveit set_target_position

Function Description
Reads the position
(x,y,z)from parameters and converts it to a quaternion.Calls
setPoseReferenceFrame(frame_id)thensetPoseTarget(target_pose), followed byplan()+execute().
Principle / Workflow
Typical end-effector pose IK target: the planner finds a trajectory under pose constraints.
Parameters
xyz: The target point coordinates in the spatial coordinate system to reach.
Example Commands
xxxxxxxxxxros2 run dofbot_ultra_moveit set_target_position --ros-args -p xyz:="[-0.0591, -0.0181, 0.3620]"xxxxxxxxxxros2 run dofbot_ultra_moveit set_target_position --ros-args -p xyz:="[0.1456, 0.046116, 0.18384]"Notes
Since the position of the end effector is difficult to determine, it is recommended that users find a reachable pose using the following method.
Check the pose of Gripping_Link and then replace the target pose in the program. You need to plan and execute the arm to the specified pose for the data to update.
MotionPlanning → Planned Path → Links: Positions, Orientation
