Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelarguedas committed Jan 3, 2017
1 parent ac19378 commit 3d8843b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,7 @@ foreach(_idl_file ${rosidl_generate_interfaces_IDL_FILES})
list(APPEND _generated_msg_c_files
"${_output_path}/${_parent_folder}/_${_module_name}_s.c"
)
foreach(_typesupport_impl ${_typesupport_impls})
list_append_unique(_generated_extension_files "${_output_path}/_${PROJECT_NAME}_s.ep.${_typesupport_impl}.c")
list_append_unique(_generated_extension_${_typesupport_impl}_files "${_output_path}/_${PROJECT_NAME}_s.ep.${_typesupport_impl}.c")
endforeach()
elseif(_parent_folder STREQUAL "srv")
foreach(_typesupport_impl ${_typesupport_impls})
list_append_unique(_generated_extension_files "${_output_path}/_${PROJECT_NAME}_s.ep.${_typesupport_impl}.c")
list_append_unique(_generated_extension_${_typesupport_impl}_files "${_output_path}/_${PROJECT_NAME}_s.ep.${_typesupport_impl}.c")
endforeach()
if("_${_module_name}_s.c" MATCHES "(.*)__response(.*)" OR "_${_module_name}_s.c" MATCHES "(.*)__request(.*)")
list(APPEND _generated_srv_c_files
"${_output_path}/${_parent_folder}/_${_module_name}_s.c"
Expand Down Expand Up @@ -97,6 +89,12 @@ if(NOT _generated_srv_py_files STREQUAL "")
)
endif()

if(NOT _generated_msg_c_files STREQUAL "" OR NOT _generated_srv_c_files STREQUAL "")
foreach(_typesupport_impl ${_typesupport_impls})
list(APPEND _generated_extension_${_typesupport_impl}_files "${_output_path}/_${PROJECT_NAME}_s.ep.${_typesupport_impl}.c")
list(APPEND _generated_extension_files "${_generated_extension_${_typesupport_impl}_files}")
endforeach()
endif()
set(_dependency_files "")
set(_dependencies "")
foreach(_pkg_name ${rosidl_generate_interfaces_DEPENDENCY_PACKAGE_NAMES})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def generate_py(generator_arguments_file, typesupport_impls):
data.update(functions)
generated_file = os.path.join(
args['output_dir'], generated_filename % args['package_name'])
print('***generated file: %s' % generated_file)
expand_template(
template_file, data, generated_file,
minimum_timestamp=latest_target_timestamp)
Expand Down

0 comments on commit 3d8843b

Please sign in to comment.