I have a feature as reference and I want to move relative to it at a direction + angle. By reading the documentation, forums and the simple vision example I get the impression that I need to use pose_trans .
But a simple test doesn’t do what I expect. With a reference at x=0,y=300 and an offset at x=0,y=100 and rz=90deg. I expect the resulting pose to be at x=100 and y=300. But as seen on this screenshot that is not near what I get
Also - make use of the features screen under the installation tab. When you define your reference point here you can see which way the axes are pointing and get a better idea of which way your offset is going to go.
A key point to not getting what you expect here is that the rotation on the offset only affects the final orientation of the tool, it doesn’t change the orientation of the reference frame - the example you followed wasn’t very clear on this.
Hope this is enough to allow you to better know what to expect out of pose_trans().
Ok, if it is actually your intention to change the reference frame you could do one pose_trans() first with just the rotation component, then another pose_trans() on the result with the linear offset.