09-23-2024, 10:19 AM
Hello,
I've been using RoboDK for generating programs through the Python API. The approach is as follows:
1. Get points on a surface that resembles a curve put together
2. Follow the curve defined by the points using a spline block
The confusing thing is that the curve seems to be perfectly followed when sending MoveL instructions within the spline block, but when importing the later generated program using these instructions, the robot seems to move entirely different (the curve is not being followed anymore, but rather it just does a straight line from the first to the last point. This makes it very difficult to verify if the generated program is actually correct.
In addition, the pose of the tool also does not match the simulation shown before the generated program is finished. The pose is supposed to orient itself on the normals of the surface (when I add the points with normals info to RoboDK, the normals are shown correctly), but the generated program, after importing it, only has a correct orientation at the beginning and stays perfectly level at the top of the path.
I attached a screenshot to this post as well as the generated program in question.
The yellow lines are the path followed after the generated program is imported and run, the red arrows show how it is supposed to run (and it does do that when the MoveL instructions are running in the spline block, before the generated program is saved to disk).
I hope you can help me out determining if this is an issue on my side or something else!
Spline_Path1to3.src (Size: 35.4 KB / Downloads: 151)
I've been using RoboDK for generating programs through the Python API. The approach is as follows:
1. Get points on a surface that resembles a curve put together
2. Follow the curve defined by the points using a spline block
The confusing thing is that the curve seems to be perfectly followed when sending MoveL instructions within the spline block, but when importing the later generated program using these instructions, the robot seems to move entirely different (the curve is not being followed anymore, but rather it just does a straight line from the first to the last point. This makes it very difficult to verify if the generated program is actually correct.
In addition, the pose of the tool also does not match the simulation shown before the generated program is finished. The pose is supposed to orient itself on the normals of the surface (when I add the points with normals info to RoboDK, the normals are shown correctly), but the generated program, after importing it, only has a correct orientation at the beginning and stays perfectly level at the top of the path.
I attached a screenshot to this post as well as the generated program in question.
The yellow lines are the path followed after the generated program is imported and run, the red arrows show how it is supposed to run (and it does do that when the MoveL instructions are running in the spline block, before the generated program is saved to disk).
I hope you can help me out determining if this is an issue on my side or something else!
