Skip to content

Commit

Permalink
hack for GripperCommand
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Deshpande <harshavardhan.deshpande@ipa.fraunhofer.de>
  • Loading branch information
hsd-dev committed Jun 4, 2020
1 parent 3a0b59c commit 3ec0444
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ros1_bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 3ec0444

Please sign in to comment.