I got this error when I am trying to have variable waypoints. I thought “P” was already defined as pose and can use it this way to shift. Do i need to define p? do i use get_pose?
the “CurrentP” is wrong, i realized with my program the error is never right where it says it is, there are 100 Case, all Copy/pasted and identical and not used. I only edited Case 1, and all the errors show up at about case 23. when i fix things in case 1, the error goes away.
ah, that explains it. I originally had a lowercase, but switched to see if it changed anything. Brackets it is. Following along to a video to learn, screen cap is a bit blurry and tough to tell ( from [
Is there a good resource to learn how to shift features? I am trying to do a repeated movement at 10 or 20 points on a plane. similar to a dispensing pattern. When i try to do palletize or pose_trans, i cant seem to get it right. I have searched the forum and done all the UR classes, still not sure what im missing
Shifting Features is, in my opinion, harder than it needs to be to understand. This is because you can, sometimes, want to shift a Feature along some OTHER Feature’s axis.
Which takes several inputs. The first 3 are just the cartesion shift you want in each direction (make sure to convert it to METERS before passing it in). The next input is “feature” which is the coordinate system you want to apply the shift along. If you want to move with respect to Base, just pass base in. If you want to shift along the current tool’s orientation, pass “get_actual_tcp_pose()” in there. And finally, “poseToShift” is just the pose you want to apply all that shift to. The function returns a Pose that you can then feed into a Move instruction.