Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. nx, ny, nz = ax5, ay5, az5
  2.  
  3. n_length = math.sqrt(nx ** 2 + ny ** 2 + nz ** 2)
  4. distance = 50
  5. nx, ny, nz = nx / n_length * distance, ny / n_length * distance, nz / n_length * distance
  6.  
  7. ur.send_command_movel([x5 + nx, y5 + ny, z5 + nz, ax5, ay5, az5], v=speed_set, r=radius)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement