How to use vrep to simulate the movement of the end of the UR5e manipulator along a known path? How to set up the inverse kinematics of the robotic arm?
Table of contents
2. Move dummy to the end point of the planned path
5. Change the copied dummy to target
9. Change each joint setting to the one shown in the image below:
11. Make the end of the robotic arm move along the path
Double-click the code and enter the following codeEdit
Click the simulation button, it is successful
reference connection
1. Add dummy
2. Move dummy to the end point of the planned path
3. Rename dummy to tip
4. Duplicate a dummy
5. Change the copied dummy to target
6. Connect the two dummy
7. Drag the tip to the relationship between the end of the robot arm (that is, the end you want to move)
8. Set up inverse kinematics
9. Change each joint setting to the one shown in the image below:
10. Click the run button to start the simulation, click the translation button to drag the target to check the inverse kinematics
11. Make the end of the robotic arm move along the path
Add path path
Add code on target
Double-click the code and enter the following code
path = sim.getObjectHandle('Path')
target = sim.getObjectAssociatedWithScript(sim.handle_self)
sim.followPath(target,path,3,0,0.5,0.2)