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

RSDK-3324 - Refactor carto_grpc_server to move initialization into IO-bound and non-IO-bound functions #112

Closed
wants to merge 10 commits into from
Closed

Conversation

kkufieta
Copy link
Contributor

@kkufieta kkufieta commented May 31, 2023

Ticket: https://viam.atlassian.net/browse/RSDK-3324

Done:

  • Move non IO bound / non expensive initialization logic from main.cc into SLAMServiceImpl::Init(...)
  • Move IO bound / expensive initialization logic from main.cc into SLAMServiceImpl::Start()

@viambot viambot added the safe to test This pull request is marked safe to test from a trusted zone label May 31, 2023
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Jun 1, 2023
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Jun 1, 2023
@kkufieta kkufieta requested a review from nicksanford June 1, 2023 18:11
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Jun 1, 2023
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Jun 1, 2023
@EshaMaharishi
Copy link
Collaborator

Removing myself from the review since Nick will review (feel free to leave me off for project PR's!)

@EshaMaharishi EshaMaharishi removed their request for review June 1, 2023 19:26
@@ -37,7 +37,7 @@ DEFINE_bool(use_live_data, false,
DEFINE_bool(aix_auto_update, false, "Automatically updates the app image");

void ParseAndValidateConfigParams(int argc, char** argv,
SLAMServiceImpl& slamService) {
SLAMServiceImpl* slamService) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did this function need to change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great question - I realize I didn't need to make this change after all. Reverted it.

@@ -141,55 +141,55 @@ void ParseAndValidateConfigParams(int argc, char** argv,
OverwriteCartoConfigParam(slamService, carto_param);
}

void OverwriteCartoConfigParam(SLAMServiceImpl& slamService,
void OverwriteCartoConfigParam(SLAMServiceImpl* slamService,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did this function need to change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great question - I realize I didn't need to make this change after all. Reverted it.

@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Jun 1, 2023
@viambot viambot added safe to test This pull request is marked safe to test from a trusted zone and removed safe to test This pull request is marked safe to test from a trusted zone labels Jun 1, 2023
@kim-mishra kim-mishra removed their request for review June 6, 2023 17:47
@nicksanford nicksanford closed this Jul 5, 2023
@kkufieta kkufieta deleted the kk/rsdk-3144-initialization branch August 29, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test This pull request is marked safe to test from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants