关节运动和没有stoppi连续路径ng at each position- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) +--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API) +--- Thread: continous paths with joint movements and no stopping at each position (/Thread-continous-paths-with-joint-movements-and-no-stopping-at-each-position) |
关节运动和没有stoppi连续路径ng at each position-stina-10-28-2022 I am new to robodk and struggling with how to make a KUKA robot move in a continuous pattern. I am using the Python API. I am going to test some instruments, and I need to be able to move them continuously along different patterns without the robot taking sudden turns or stopping at each point. And I do also need to change the angles (roll/pitch) along these patterns. I have checked out addMillingProject / add MachiningProject. But it seems to me they can only take a list of xyz points, and no joint angles? If I use MoveJ the robot does not take the shortest path, but might suddenly turn to get a better angle, and it stops for every position. The latter might be solved by lots of points and slow speed, but it does not prevent it from suddenly taking a large turn to change the angles. I read about and tried using the setRounding or setZoneData to smooth the curves, but it seems it does not prevent it from stopping at each position. Do you have any other suggestions on how to achieve this? RE: continous paths with joint movements and no stopping at each position-Albert-10-31-2022 Do you have a list of joint values or Cartesian points? This example shows 5 different ways you can convert a list of points or joint values to a robot program using the RoboDK API: //www.sinclairbody.com/doc/en/PythonAPI/examples.html#points-to-program setRounding with a rounding value greater than 0 is the right instruction to use at the top of your program if you want to have a smooth movement. For example:
Code:
prog = RDK.AddProgram('MyProgramAPI')
For a KUKA robot, this will output the correct C_DIS and C_PTP flags in the linear and joint movements. This will also set the ADVANCE variable to 5 (maximum allowed). |