Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closed #28 黒ブロックをボーナスサークルに設置後、5と8の間の黒線に移動する #35

Merged
merged 8 commits into from
Sep 26, 2019

Conversation

arimakaoru
Copy link
Contributor

ガレージに駐車するために、黒ブロックをボーナスサークルに設置後、5と8の間の黒線に移動する処理を作成しました。

  1. 走行体の現在地からブロックサークル5,8間の黒線までの経路を求める
  2. 経路から走行体に送信する動作コマンドを作成する

cross_circle_path.pyはaster関数だけ使います。他の部分は一応動く程度です。

Copy link
Member

@korosuke613 korosuke613 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

よく作ったの一言に尽きる
LGTM

Copy link
Member

@Tamiyas Tamiyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK!
お疲れさま

# 現在地から見た場合の次の座標の方角
next_direction = self.get_next_direction(route_58[i-1], route_58[i])
# 現在の方角から次の座標の方角を向くのに必要な回頭角度を取得
rotation_angel = self.get_rotation_angle(robot_direction, next_direction)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rotation_angle?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

回頭する角度です。
具体的には、0,45,90,135,180,-45,-90,-135のいずれかの値です。

if rotation_angel != 0:
commands += self.get_rotation_command(rotation_angel)

if next_direction in [0,2,4,6]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0は北、みたいなコメントがあると読みやすいかも

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントを追加しました。

@korosuke613 korosuke613 merged commit 23055c4 into KatLab-MiyazakiUniv:master Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants