Created
February 11, 2017 05:26
-
-
Save Ry0/97ca72d24f1b9b7a2ed338c2a230a42c to your computer and use it in GitHub Desktop.
motoman sia5の最大距離(関節角の総和)を確認するやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
s_axis_upper_limit= 179.99999*math.pi/180.0*0.95 | |
s_axis_lower_limit= -s_axis_upper_limit | |
l_axis_upper_limit= 110.0*math.pi/180.0*0.95 | |
l_axis_lower_limit= -l_axis_upper_limit | |
e_axis_upper_limit= 170.0*math.pi/180.0*0.95 | |
e_axis_lower_limit= -e_axis_upper_limit | |
u_axis_upper_limit= 115.0*math.pi/180.0*0.95 | |
u_axis_lower_limit= -90.0*math.pi/180.0*0.95 | |
r_axis_upper_limit= 179.99999*math.pi/180.0*0.95 | |
r_axis_lower_limit= -r_axis_upper_limit | |
b_axis_upper_limit= 110.0*math.pi/180.0*0.95 | |
b_axis_lower_limit= -b_axis_upper_limit | |
t_axis_upper_limit= 179.99999*math.pi/180.0*0.95 | |
t_axis_lower_limit= -t_axis_upper_limit | |
distance = (s_axis_upper_limit-s_axis_lower_limit) + (l_axis_upper_limit-l_axis_lower_limit) + (e_axis_upper_limit-e_axis_lower_limit) + (u_axis_upper_limit-u_axis_lower_limit) + (r_axis_upper_limit-r_axis_lower_limit) + (b_axis_upper_limit-b_axis_lower_limit) + (t_axis_upper_limit-t_axis_lower_limit) | |
print distance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment