-
Notifications
You must be signed in to change notification settings - Fork 0
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
close #KLI-80 コマンド(CSV)で動作を指定し、動作できる #19
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.
Logger 関連のところで少しだけ🙏
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.
細かい箇所1点だけ。
test/AreaMasterTest.cpp
Outdated
areaMaster.run(); | ||
string output = testing::internal::GetCapturedStdout(); // キャプチャ終了 | ||
|
||
// find("str")はstrが見つからない場合string::nposを返すß |
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.
ß ← エスツェット文字っていうのが入ってたから、一応気になったので修正お願いします。
// find("str")はstrが見つからない場合string::nposを返すß | |
// find("str")はstrが見つからない場合string::nposを返す |
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.
@YKhm20020 と似た指摘もいくつかあります。意見も聞きたい部分も。
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.
遅くなってすまんが頼むー
FILE* fp = fopen(commandFilePath, "r"); | ||
// ファイル読み込み失敗 | ||
if(fp == NULL) { | ||
snprintf(buf, LARGE_BUF_SIZE, "%s file not open!\n", commandFilePath); |
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.
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.
LGTM
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です。LGTM!
チェックリスト
変更点
etrobocon2024/module/下に,コマンドで動作を指定し、実行するための以下のファイルを追加.
etrobocon2024/module/common/下に,コマンドパースに必要な以下のファイルを追加.
etrobocon2024/下に, 実行したいコマンド一覧を記載したcsvファイルを配置するためのディレクトリである、datafilesを作成.
テストのため, datafiles下に仮エリア「AreaMaster」を攻略するための以下のcsvファイルを追加.
testディレクトリで実行する際と、etrobocon2024.cppでファイルパスを指定する際で、カレントディレクトリが異なるため、パスの相違を避けるために、etrobocon2024/test/gtest/gtest_build.shの一部コメントアウトをはずした.
動作テスト
https://www.notion.so/uom-katlab/CSV-62877770d0404b27a7c2b366845cdaad?pvs=4
実験結果
コマンドで指定した動作を実機上で実行することが出来た.
備考
昨年まででコマンドを作成していた動作のうち、現在mainブランチにマージされているものは、自分の確認では、回頭動作のみでした。
そのため、一旦回頭動作のみのコマンドを作成し、その他のコマンドの処理部分は、コメントアウトしてあります。
(コマンド自体の定義は、コメントアウトしていません。)
そのため、実機テスト、gtestも回頭動作のみ、コマンドを作成して実行できるか試しました。