-
Notifications
You must be signed in to change notification settings - Fork 23
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
ジャイロのデータが遅延してしまう #49
Comments
対応としてimu/data_rawをpublishする処理と
|
ご連絡遅くなりました。ご報告ありがとうございます。 |
こちらでも再現確認できました。 最新データを取得できるかどうかが動作周期(on_publish_timer)に依存していました。 レビュー段階ですが修正版のコードをアップロードしましたので、急ぎの場合はこちらのブランチをご使用ください。 https://github.com/rt-net/rt_usb_9axisimu_driver/tree/fix_to_read_latest_value |
ありがとうございます。 |
対応遅くなりました。 修正版をmainブランチにマージしました。 |
タイトルの通りです。
ros2-develでimu/data_rawをpublishしていますが、IMUを傾けてもデータが0.5秒ぐらい遅延して出力されます。
そのため常に少し前のデータがpublishされています
publish_timer_ = create_wall_timer(10ms, std::bind(&Driver::on_publish_timer, this));
タイマーが早すぎるかと思い、on_publish_timerの頻度を10ms->50msに変更してみましたが、
ここを変更すると更に遅延が増えました。
おそらくバッファが溜まっているような挙動をしているのですが、都度最新のジャイロの値を取得することはできませんか?
The text was updated successfully, but these errors were encountered: