My problem is that the robot is not moving to the correct position when I select 'Move to target'.
When creating targets, I choose to either make them with respect to the frame of the path, or with respect to the frame of the part. To do so, I set the targets parent to either the path or the part respectively. You can see the path and the part in the images I have attached.
In this instance, the parent of the target, indicated in the 'Target position with respect to:' selection, is the part, and there is an offset of 100mm in the positive Z direction. The correct target position has been circled in green. However, when I move the robot to the target, it's TCP position, which is circled in red, doesn't go to the correct location. It's almost like it is moving to a target position that has a Z offset of 100 to the PATH instead of the PART? Even though a target in this incorrect position doesn't exist in the RoboDK tree at all.
You can also see in the second image that I have moved the target down slightly, and the robot's ghost is in the correct position, but when I select 'Move to target' the real robot goes to the wrong position. Again, like it's relative to the path and not the part.
Any help would be much appreciated.
Coding in C# to add the targets and configure their parents.
When creating targets, I choose to either make them with respect to the frame of the path, or with respect to the frame of the part. To do so, I set the targets parent to either the path or the part respectively. You can see the path and the part in the images I have attached.
In this instance, the parent of the target, indicated in the 'Target position with respect to:' selection, is the part, and there is an offset of 100mm in the positive Z direction. The correct target position has been circled in green. However, when I move the robot to the target, it's TCP position, which is circled in red, doesn't go to the correct location. It's almost like it is moving to a target position that has a Z offset of 100 to the PATH instead of the PART? Even though a target in this incorrect position doesn't exist in the RoboDK tree at all.
You can also see in the second image that I have moved the target down slightly, and the robot's ghost is in the correct position, but when I select 'Move to target' the real robot goes to the wrong position. Again, like it's relative to the path and not the part.
Any help would be much appreciated.
Coding in C# to add the targets and configure their parents.