I want to calculate a position from a teached waypoint. The calculated position should be once shiftet in Z and once in X.
The waypoint is teached not in base feature.
If i calculate the pose, everything is working fine when operating in base feature.
As soon as i use the calculated pose in a diferent feature, its off.
How can i use variable pos in different features?
Hi @l.krenzel,
Actually, each waypoint is stored in the script with reference to the base. If you use a different reference in the polyscope it is simply a transformation of that position by using the pose_trans() function. Neverthless for URcontrol module which execute script - every position is related to base.
So, if you try to combine a little with pose_trans() function you will for sure achieve what you want. Check the script manual for more info about this function.
I’d also recommend you create a program in which you reference several references (not just the base), save it, and take a look at what the .script file of that program looks like - this may help you understand how the pose_trans() function is used.
Hope it helps!
WG
Hi @wojciech.goral
i have already found my solution for my issue. I found a post in the forum which explained very good the usage of “pose_inv” and “pose_trans”. Just didn’t know that its alway reference to base, and how the “pose_trans” hase to be used with feature and so.
I checked the script manual before, but for me the explenation there wasn’t helpful. Anyhow, problem Solved.
1 Like