Skip to content

Commit

Permalink
fixed a type inconsistency in feature_viz
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoKresse committed Mar 9, 2014
1 parent 12c4ebb commit e12c8d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feature_constraints_utils/feature_viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,11 @@ def __init__(self, vec1, vec2):
def compute(self):
vec1 = self.vec1.compute()
vec2 = self.vec2.compute()
denom = vec1.Norm() * vec2.Norm()
denom = vec1.dir.Norm() * vec2.dir.Norm()
if denom == 0:
return 0
else:
return kdl.dot(vec1, vec2) / denom
return kdl.dot(vec1.dir, vec2.dir) / denom

def show(self, style=NORMAL):
global _config_
Expand Down

0 comments on commit e12c8d9

Please sign in to comment.