From 871ce7cbbdcc5b7bed5b8667d1878a4dfcacfece Mon Sep 17 00:00:00 2001 From: Harsh Deshpande Date: Tue, 5 May 2020 12:22:17 +0200 Subject: [PATCH] hack for GripperCommand --- ros1_bridge/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ros1_bridge/__init__.py b/ros1_bridge/__init__.py index 1d7269ca..a0ee60f8 100644 --- a/ros1_bridge/__init__.py +++ b/ros1_bridge/__init__.py @@ -83,8 +83,6 @@ def generate_cpp(output_path, template_dir): data.update(generate_actions( rospack, message_string_pairs=message_string_pairs)) - print(data['actions']) - template_file = os.path.join(template_dir, 'get_mappings.cpp.em') output_file = os.path.join(output_path, 'get_mappings.cpp') data_for_template = { @@ -265,7 +263,7 @@ def generate_actions(rospack=None, message_string_pairs=None): actions = determine_common_actions( ros1_actions, ros2_actions, mapping_rules, message_string_pairs=message_string_pairs) - print(actions) + return { 'actions': actions, 'ros2_package_names_actions': ros2_pkgs, @@ -848,7 +846,7 @@ def determine_common_actions( # might not be equal, therefore check the message pairs # the check for 'builtin_interfaces' should be removed once merged with __init__.py # It seems to handle it already - if (ros1_type, ros2_type) not in message_string_pairs and not ros2_type.startswith("builtin_interfaces"): + if (ros1_type, ros2_type) not in message_string_pairs and not ros2_type.startswith("builtin_interfaces") and "GripperCommand" not in ros2_type: match = False break output[direction].append({