Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get distance between two Poses
- def get_distance(self, a, b):
- first = [a.position.x, a.position.y, a.position.z]
- second = [b.position.x, b.position.y, b.position.z]
- return distance.euclidean(first, second)
- # distance.euclidean(a.position, b.position) causes the error "unsupported operand type(s) for -: 'Point' and 'Point'"
- # distance.euclidean(list(a.position), list(b.position)" causes "'Point' object is not iterable"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement