[solved] Python Remap: How to access current a,b and c positions?

More
01 Mar 2020 16:19 - 07 Mar 2020 07:59 #158898 by Aciera
I'd like to do a remap for a 6-axis robot.

I'm using this code

Warning: Spoiler!


old_x = self.current_x
old_y = self.current_y
old_z = self.current_z

which works. But

old_a = self.current_a
old_b = self.current_b
old_c = self.current_c

does not. Giving 'attributeError: ' Interp' object has no attribute ' current_a'
same for b and c.

How do I acces the current a,b and c positions?
Last edit: 07 Mar 2020 07:59 by Aciera.

Please Log in or Create an account to join the conversation.

More
02 Mar 2020 02:09 #158927 by thang
Try AA_current instead of current_a.
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

More
02 Mar 2020 06:26 #158942 by Aciera
Thanks thang!

I wonder where this sudden change of pattern comes from. Is there a documentation for this? I feel like I've looked just about everywhere but nothing worked.

Please Log in or Create an account to join the conversation.

More
02 Mar 2020 06:45 #158946 by thang
maybe here:https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/rs274ngc/interpmodule.cc
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum