load RTPS msg IDs from a JSON file and remove uorb_rtps_message_ids.py

This commit is contained in:
TSC21
2018-09-01 00:06:08 +01:00
committed by Beat Küng
parent 943bfbf93f
commit a323073456
7 changed files with 377 additions and 115 deletions
@@ -71,6 +71,10 @@ if (NOT "${config_rtps_send_topics}" STREQUAL "" OR NOT "${config_rtps_receive_t
${msg_out_path}/micrortps_client/microRTPS_transport.h
)
# Copy json file to the bin dir to be used by empy on the file generation
configure_file("${PX4_SOURCE_DIR}/msg/tools/uorb_rtps_message_ids.json"
"${CMAKE_CURRENT_BINARY_DIR}/uorb_rtps_message_ids.json" COPYONLY)
add_custom_command(OUTPUT ${topic_bridge_files_out}
COMMAND ${PYTHON_EXECUTABLE} ${PX4_SOURCE_DIR}/msg/tools/generate_microRTPS_bridge.py
--fastrtpsgen-dir $ENV{FASTRTPSGEN_DIR}