トピックの送信周期を早くするため、loop内のdelayの削除と、spine_someのタイムアウト時間を削減した #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this implement/fix?
loop関数内で
rclc_executor_spin_some(&g_executor, RCL_MS_TO_NS(100))
とdelay(10)
を実行するため、毎回110 msの待ち時間が発生しています。
※cmd_velトピックが来ればspin_someは早く終了します
これらの待ち時間を削減して、トピックの送信周期を早くします。
Does this close any currently open issues?
いいえ
How has this been tested?
Pi:Coのサンプルを実行し、
joint_statesトピック送信周期が約5Hzから約37 Hzまで早くなったことを確認しました。
RViz上のロボットモデルがなめらかに更新されることを確認しました。
wheel.-2023-06-15_14.47.31.mp4
Any other comments?
Checklists