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 sessionId to serverInfo #153

Merged
merged 4 commits into from
Feb 8, 2023
Merged

Add sessionId to serverInfo #153

merged 4 commits into from
Feb 8, 2023

Conversation

achim-k
Copy link
Collaborator

@achim-k achim-k commented Feb 8, 2023

Public-Facing Changes

  • Add sessionId to serverInfo

Description

serverOptions.supportedEncodings = {"cdr"};
serverOptions.metadata = {{"ROS_DISTRO", std::getenv("ROS_DISTRO")}};
serverOptions.sendBufferLimitBytes = send_buffer_limit;
serverOptions.sessionId = std::to_string(std::time(0));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should we make this configurable via a ROS param?

Copy link
Contributor

Choose a reason for hiding this comment

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

I vote no, I don't think it opens up any new use cases. It's too bad ROS 2 lost the concept of /run_id.

Co-authored-by: John Hurliman <jhurliman@jhurliman.org>
@achim-k achim-k merged commit 78cfc8e into main Feb 8, 2023
@achim-k achim-k deleted the achim/session_id branch February 8, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants