Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

How to write distance of spawn python

#1
How to write distance of spawn python
RANDOMIZE_DISTANCE = True
POSITION_MAX = 0


if RANDOMIZE_DISTANCE:
       distance =random.uniform(-DISTANCE_MAX, DISTANCE_MAX)
       pose = robomath.RelTool(         )
#2
You can calculate a pose relative to another along the Z axis by applying this formula:
Code:
pose = robomath.RelTool(pose_ref, 0,0, distance)
You can find more information about the RelTool function here:
https://robodk.com/doc/en/PythonAPI/robo...th.RelTool
  




Users browsing this thread:
1 Guest(s)