Skip to content

Commit

Permalink
Properly include visibility headers in protobuf files
Browse files Browse the repository at this point in the history
  • Loading branch information
brakmic-aleksandar committed May 20, 2021
1 parent 7bc7dc2 commit 7483e2d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ else()
endif()
endforeach()

endif()
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def ros_message_functions_header_c(package_name, interface_path):
return f"{include_base}__functions.h"

def ros_message_functions_header_c_from_namespace(namespace, name):
include_parts = namespace;
include_parts = list(namespace)
if CURRENT_DISTRO >= DISTROS["foxy"]:
include_parts += ["detail"]
include_parts += [convert_camel_case_to_lower_case_underscore(name)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# ================================= Apache 2.0 =================================
#
# Copyright (C) 2021 Continental
# Copyright 2016-2018 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,8 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ================================= Apache 2.0 =================================

from rosidl_cmake import generate_files

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ from rosidl_typesupport_protobuf import *

ros_type_ns = ros_type_namespace(package_name, interface_path)
ros_type_name = ros_type_name(message)
ros_type = ros_type(package_name=package_name, interface_path=interface_path, message=message)
proto_type = protobuf_type(package_name=package_name, interface_path=interface_path, message=message)
ros_type = ros_type(package_name, interface_path, message)
proto_type = protobuf_type(package_name, interface_path, message)

system_header_files = [
'string',
Expand Down

0 comments on commit 7483e2d

Please sign in to comment.