Skip to content

Commit

Permalink
Rotate tag by 90 to align x-axis with pr2 gripper
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroIshida committed Dec 14, 2024
1 parent 4bd716c commit abd847b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jsk_pr2_robot/jsk_pr2_accessories/pr2_hand_apriltag/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ build/tag_plate.stl: tag_plate.scad
openscad -o $@ $<
echo "Generated $@"

build/tag_with_margin.png: add_margin.py
build/tag_with_margin.png: rotate_and_add_margin.py
mkdir -p build
python3 ./add_margin.py tag41_12_00000.png $@
python3 ./rotate_and_add_margin.py tag41_12_00000.png $@
echo "Generated $@"

build/april_tag_print.pdf: april_tag_print.tex build/tag_with_margin.png
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def main():
args = parser.parse_args()

img = Image.open(args.input)

img = img.rotate(90)

if img.width != img.height:
raise ValueError("Input image must be square")

Expand Down

0 comments on commit abd847b

Please sign in to comment.