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

Do not remove interface namespaces #6

Merged
merged 1 commit into from
Oct 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rosidl_runtime_py/get_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_message_interfaces(package_names: Iterable[str] = []) -> List[str]:
filtered_interfaces = {}
for package_name, interface_names in interfaces.items():
message_interfaces = list({
interface_name[4:-4]
interface_name[:-4]
for interface_name in interface_names
if '_' not in interface_name and
interface_name.startswith('msg/') and
Expand Down Expand Up @@ -114,7 +114,7 @@ def get_service_interfaces(package_names: Iterable[str] = []) -> List[str]:
filtered_interfaces = {}
for package_name, interface_names in interfaces.items():
service_interfaces = list({
interface_name[4:-4]
interface_name[:-4]
for interface_name in interface_names
if '_' not in interface_name and
interface_name.startswith('srv/') and
Expand Down Expand Up @@ -142,7 +142,7 @@ def get_action_interfaces(package_names: Iterable[str] = []) -> List[str]:
filtered_interfaces = {}
for package_name, interface_names in interfaces.items():
action_interfaces = list({
interface_name[7:].rsplit('.', 1)[0]
interface_name.rsplit('.', 1)[0]
for interface_name in interface_names
if '_' not in interface_name and
interface_name.startswith('action/') and
Expand Down