Skip to content

Commit

Permalink
#111 :: Updated constant names after review comment #117 #148
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsenrab authored and Hsenrab committed Mar 23, 2017
1 parent 8ce7aa3 commit 2cf0b41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roboplot/core/camera/camera_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ def translate_camera_points_to_global_points(points):
global_points: The translated points.
"""

global_points = [list(map(operator.add, point, config.camera_offset)) for point in points]
global_points = [list(map(operator.add, point, config.CAMERA_OFFSET)) for point in points]

return global_points
4 changes: 2 additions & 2 deletions testing/test_translate_camera_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class CameraPathTranslationTest(unittest.TestCase):

def testTranslatePoint(self):
config.camera_offset = [2.33, 2.37]
config.CAMERA_OFFSET = [2.33, 2.37]
point = [[2.0, 10.0]]

# Translate Point
Expand All @@ -25,7 +25,7 @@ def testTranslatePoint(self):
self.assertTrue(np.allclose(translated_point, expected_point, atol=1e-3))

def testTranslateListOfPoints(self):
config.camera_offset = [2.33, 2.37]
config.CAMERA_OFFSET = [2.33, 2.37]
points = [[2.0, 10], [3.0, 6.93], [5.78, 8.04], [36.9, 65.23], [34.33, 92.69]]

# Translate Point
Expand Down

0 comments on commit 2cf0b41

Please sign in to comment.