Skip to content

Commit

Permalink
Updated to include link to tips about affine transforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Shih Cheng committed Feb 4, 2020
1 parent 6103e64 commit ea6ea1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions occupancy3.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ def callback(msg, tfBuffer):
i_centery = msg.info.height/2
# translate by curr_pos - centerxy to make sure the rotation is performed
# with the robot at the center
# using tips from:
# https://stackabuse.com/affine-image-transformations-in-python-with-numpy-pillow-and-opencv/
translation_m = np.array([[1, 0, (i_centerx-grid_y)],
[0, 1, (i_centery-grid_x)],
[0, 0, 1]])
Expand Down

0 comments on commit ea6ea1b

Please sign in to comment.