Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Combine package name with message namespace in type support struct #268

Merged
merged 3 commits into from
May 8, 2019

Conversation

jacobperron
Copy link
Member

Connects to ros2/ros2#677

@jacobperron jacobperron added the in progress Actively being worked on (Kanban column) label May 6, 2019
type_namespace = std::regex_replace(type_namespace, std::regex("::"), "/");
size_t start = substring_position + substring.size();
std::string type_name = dds_type_string.substr(start, dds_type_string.length() - 1 - start);
return type_namespace + type_name;
Copy link
Member

Choose a reason for hiding this comment

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

Inverting the logic makes the diff more difficult to review. What was the reason to do so?

Copy link
Member Author

Choose a reason for hiding this comment

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

Consistency. The logic now matches the other rmw implementations. I can revert it or break it into two commits if you prefer.

Copy link
Member

Choose a reason for hiding this comment

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

No need it - the change looks good. I just wanted to check.

Signed-off-by: Jacob Perron <[email protected]>
@dirk-thomas dirk-thomas merged commit 2c56ae4 into master May 8, 2019
@delete-merged-branch delete-merged-branch bot deleted the message_namespace branch May 8, 2019 05:47
@dirk-thomas dirk-thomas removed the in progress Actively being worked on (Kanban column) label May 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants