Skip to content

Commit

Permalink
Remove TODO if-statement, if there are ros2 members not mapped, it's …
Browse files Browse the repository at this point in the history
…always an error
  • Loading branch information
LoyVanBeek committed Oct 21, 2022
1 parent 9d8639c commit e707c7c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ros1_bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,11 +1131,7 @@ def determine_field_mapping(ros1_msg, ros2_msg, mapping_rules, msg_idx):
break
else:
# if fields from both sides are not mappable the whole message is not mappable
if debug: print("Field from both sides are not mappable, Early return 2")
if TODO: # TODO field is not already in mapping
pass
else:
return None
return None

if debug: print(f"determine_field_mapping: after processing: {mapping}")
return mapping
Expand Down

0 comments on commit e707c7c

Please sign in to comment.