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

ログファイルのマルチインスタンス化 #158

Closed
Tracked by #156
tmori opened this issue Feb 15, 2024 · 2 comments
Closed
Tracked by #156

ログファイルのマルチインスタンス化 #158

tmori opened this issue Feb 15, 2024 · 2 comments

Comments

@tmori
Copy link
Contributor

tmori commented Feb 15, 2024

調査結果

ログ管理は以下の通り。

  • CsvLoggerクラスのインスタンスがログファイルを一元管理している
  • CsvLoggerクラスのadd_entry()で、出力対象ログファイル名を決めている

なので、add_entry()で、ログファイルの出力先がインスタンス毎に異なっていればOKということになる。

add_entry()の呼び出しもとは以下の通り。

  • aircraft_factory.cpp
    • 機体のインスタンス毎にログ出力先のファイルパスを機体パラメータから取得しているため問題なし。
  • hako_bypass.cpp
    • これはバイパス機能なので、対象外。
  • px4sim_thread_receiver.cpp
    • TODO 受信スレッドごとにファイルパスを切り替える必要がある。
  • px4sim_thread_sender.cpp
    • TODO 送信処理毎にファイルパスを切り替える必要がある。
@tmori
Copy link
Contributor Author

tmori commented Feb 15, 2024

ひとまず、機体のインスタンス管理ができるようになってから対応したほうが良さそう。

@tmori
Copy link
Contributor Author

tmori commented Feb 16, 2024

受信スレッドも送信処理も、ログ出力先をパラメータで切り替えできるようになっていたので、クローズ。

@tmori tmori closed this as completed Feb 16, 2024
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

No branches or pull requests

1 participant