From 0f1dbba07364942f283d0c3dde3f7d183015cdf0 Mon Sep 17 00:00:00 2001 From: Mikael Arguedas Date: Fri, 10 Aug 2018 14:47:04 -0700 Subject: [PATCH] rule can be a message mapping even if a field mapping is provided as well (#135) --- ros1_bridge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros1_bridge/__init__.py b/ros1_bridge/__init__.py index 727efa1f..6bb03ebf 100644 --- a/ros1_bridge/__init__.py +++ b/ros1_bridge/__init__.py @@ -360,7 +360,7 @@ def __init__(self, data, expected_package_name): 'Mapping for package %s contains unknown field(s)' % self.ros2_package_name) def is_message_mapping(self): - return self.ros1_message_name is not None and self.fields_1_to_2 is None + return self.ros1_message_name is not None def is_field_mapping(self): return self.fields_1_to_2 is not None