-
Notifications
You must be signed in to change notification settings - Fork 1
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
無限シュートのテストを移植 #152
無限シュートのテストを移植 #152
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.
コメント入れてくれ〜
def shoot_to_their_test(robot_id: int): | ||
operation = OneShotOperation().move_to_pose(TargetXY.ball(), TargetTheta.look_ball()) | ||
operation = operation.with_shooting_to(TargetXY.their_goal()) | ||
operator_node.operate(robot_id, operation) |
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.
これは何をする関数なのかコメント入れてほしいな
できたら各行何してるのかも書いてあるとベスト
arg_parser.add_argument('-robot_id', default=0) | ||
args = arg_parser.parse_args() |
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.
-robot_id
の省略系がほしい
例えば--robot_id
にしておいて省略系を-id
にするとか
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.
コメントいれた
arg_parser.add_argument('-id', default=0) | ||
args = arg_parser.parse_args() |
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.
arg_parser.add_argument('-id', default=0)
→arg_parser.add_argument('--robot_id', '-id', type=int, default=0)
みたいにするのがいいかな
args.robot_id
でひっぱってこれる
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.
コメントいれました
try: | ||
shoot_to_their_test(int(args.robot_id)) |
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.
int()
でキャストしなくてOK
ロボットIDをコマンドで指定できるようにしてある