-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rotation_angle?
There was a problem hiding this comment.
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]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0は北、みたいなコメントがあると読みやすいかも
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメントを追加しました。
ガレージに駐車するために、黒ブロックをボーナスサークルに設置後、5と8の間の黒線に移動する処理を作成しました。
cross_circle_path.pyはaster関数だけ使います。他の部分は一応動く程度です。