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

無限シュートのテストを移植 #152

Merged
merged 5 commits into from
Jan 4, 2024
Merged

Conversation

Yamam0t0
Copy link
Contributor

ロボットIDをコマンドで指定できるようにしてある

Copy link
Contributor

@uchikun2493 uchikun2493 left a comment

Choose a reason for hiding this comment

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

コメント入れてくれ〜

Comment on lines 31 to 34
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)
Copy link
Contributor

Choose a reason for hiding this comment

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

これは何をする関数なのかコメント入れてほしいな
できたら各行何してるのかも書いてあるとベスト

Comment on lines 47 to 48
arg_parser.add_argument('-robot_id', default=0)
args = arg_parser.parse_args()
Copy link
Contributor

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にするとか

Copy link
Contributor

@uchikun2493 uchikun2493 left a comment

Choose a reason for hiding this comment

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

コメントいれた

Comment on lines 50 to 51
arg_parser.add_argument('-id', default=0)
args = arg_parser.parse_args()
Copy link
Contributor

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でひっぱってこれる

Copy link
Contributor

@uchikun2493 uchikun2493 left a comment

Choose a reason for hiding this comment

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

コメントいれました

Comment on lines 68 to 69
try:
shoot_to_their_test(int(args.robot_id))
Copy link
Contributor

Choose a reason for hiding this comment

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

int()でキャストしなくてOK

@uchikun2493 uchikun2493 merged commit f062dd4 into main Jan 4, 2024
1 check passed
@uchikun2493 uchikun2493 deleted the refactor_shoot_to_their branch January 4, 2024 09:12
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.

2 participants