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

Setting Minimum distance from object

#2
You are using add/subract/multiply operators on a 3-dimensional list of values (3D vectors). You should use the required functions to perform these operations on 3D vectors.

Example:
Code:
delta_vector = subs3(tool_pose_global.Pos(), object_pose.Pos())
direction = mult3(delta_vector, 1.0/distance)
More information here:
//m.sinclairbody.com/doc/en/PythonAPI/robo...math.subs3


Messages In This Thread
RE: Setting Minimum distance from object - byAlbert- 02-20-2023, 12:16 PM



Users browsing this thread:
1 Guest(s)