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

add clock option #1

Merged
merged 5 commits into from Apr 22, 2021
Merged

add clock option #1

merged 5 commits into from Apr 22, 2021

Conversation

mitsudome-r
Copy link
Collaborator

@mitsudome-r mitsudome-r commented Apr 10, 2021

The PR is ready for review. Please test with a rosbag whether clock topic is published when --clock option is added during ros2 bag play.

I'm also concerned whether I should push it to the emersonknapp/backport-latest-to-foxy branch or I should clone it to tier4/main branch.

emersonknapp and others added 5 commits April 10, 2021 02:37
* Add a design dock for rosbag2 handling of clock/simtime

Signed-off-by: Emerson Knapp <eknapp@amazon.com>
…os2#689)

* Initial PlayerClock integration - functionality unchanged

* Create PlayerClock, a pure virtual interface with `now()`, and `sleep_until()` for Player to use to control timing of message playback
* TimeControllerClock implementation of PlayerClock
* Removes time handling from `Player` in favor of using this new class

Signed-off-by: Emerson Knapp <eknapp@amazon.com>
* Add /clock publishing to Player

Signed-off-by: Emerson Knapp <eknapp@amazon.com>
Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>
Signed-off-by: mitsudome-r <ryohsuke.mitsudome@tier4.jp>
@mitsudome-r mitsudome-r changed the base branch from emersonknapp/backport-latest-to-foxy to tier4/main April 22, 2021 08:08
Copy link

@hayato-m126 hayato-m126 left a comment

Choose a reason for hiding this comment

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

このブランチをbuild & sourceして、clockが入っていないbagを

ros2 bag play inbag --clock 40
とすることで/clockが出てくることを確認した。また、--clockをつけないときは/clockが出ないことも確認した。

このplayを使用して、logging_simulator.launchでROS_TIMEが進んで、シミュレーションができるところまで確認出来た。

@hayato-m126 hayato-m126 merged commit 07543f4 into tier4:tier4/main Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants