diff --git a/ros1_bridge/__init__.py b/ros1_bridge/__init__.py index 3fd23be9..604ef70c 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, @@ -851,7 +849,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({