Skip to content

Commit

Permalink
refacotr: コメント修正, いらない処理削除
Browse files Browse the repository at this point in the history
  • Loading branch information
kawano committed Nov 9, 2023
1 parent e84cc38 commit 3ec9bcb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions rear_camera_py/src/block_de_treasure_hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ def hunt(self, is_left_course):
Args:
is_left_course (bool): Lコースであるかどうか
"""
# コース情報取得
# TODO: ここから、マージする際に差し替える
length = 4
block_map = np.zeros((length, length))
dummy_block_coords = [(3, 3), (0, 3)]
treasure_block_coord = (0, 0)
for (y, x) in dummy_block_coords:
block_map[y][x] = 1
block_map[treasure_block_coord[0], treasure_block_coord[1]] = 2
# TODO: ここまで、マージする際に差し替える

# ブロックエリア情報の取得
image_name = "BlockDeTreasure.png"
image_dir_path = os.path.join(PROJECT_DIR_PATH, "image_data")
Expand Down
2 changes: 1 addition & 1 deletion rear_camera_py/src/get_area_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def predict_block_locate(self, block_coordi) -> (int, int):
return row, min_index # min_index(=column)

def get_area_info(self, isL=True) -> None:
"""画像を6色画像に変換する関数.
"""画像からコース情報を取得する関数.
Args:
game_area_img (np.ndarray): ゲームエリア画像
Expand Down

0 comments on commit 3ec9bcb

Please sign in to comment.