MCPcopy Create free account
hub / github.com/SHAILAB-IPEC/OpenFly-Platform / calculate_distance

Function calculate_distance

train/eval.py:459–462  ·  view source on GitHub ↗
(point1, point2)

Source from the content-addressed store, hash-verified

457 return cur_action
458
459def calculate_distance(point1, point2):
460 return math.sqrt((point2[0] - point1[0])**2 +
461 (point2[1] - point1[1])**2 +
462 (point2[2] - point1[2])**2)
463
464def getPoseAfterMakeAction(new_pose, action):
465 x, y, z, yaw = new_pose

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected