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 the ability to override and access clock related methods in ROSIntegrationGameInstance #137

Merged
merged 3 commits into from Sep 15, 2020

Conversation

harveybia
Copy link
Contributor

I had the need to make my own game instance and override the behavior of clock topic published by the ROSIntegrationGameInstance.

Changes:

  • Added virtual to OnWorldTickStart to make it possible for children to override it
  • Changed ClockTopic from private to protected to make it accessible by children

Results:
Tested on UE 4.25.3 and no behavior change is introduced. I created my own GameInstance which inherits the ROSIntegrationGameInstance and I was able to change the clock behavior (manually advance sim time when needed instead of sync with UE frame advance).

- Added virtual to enable dynamic dispatch for OnWorldTickStart so that it could be overridden
- Made ClockTopic protected so it is accessible by children
Merge origin master changes
@harveybia harveybia changed the title Added the ability to override and access clock related methods in ROSIntegrationGameInstance Add the ability to override and access clock related methods in ROSIntegrationGameInstance Sep 7, 2020
@Sanic Sanic merged commit c71c6ad into code-iai:master Sep 15, 2020
@Sanic
Copy link
Contributor

Sanic commented Sep 15, 2020

Thanks for the PR! Congratz on having your first one 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants