Skip to content

Instantly share code, notes, and snippets.

@Ry0
Created February 11, 2017 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ry0/97ca72d24f1b9b7a2ed338c2a230a42c to your computer and use it in GitHub Desktop.
Save Ry0/97ca72d24f1b9b7a2ed338c2a230a42c to your computer and use it in GitHub Desktop.
motoman sia5の最大距離(関節角の総和)を確認するやつ
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