I have been following the tutorial automatic-bridge-code-generation in order to get a Client and Agent running on my pixhawk and raspberry pi.
I am taking the Manually Generate Client and Agent Code approach.
I first added set(GENERATE_RTPS_BRIDGE off) to the top of my .cmake file. Then I deleted both:
micrortps_bridge/micrortps_client
micrortps_bridge/micrortps_agent
folders.
Then I ran the following:
python Tools/generate_microRTPS_bridge.py -s msg/sensor_baro.msg -r msg/sensor_combined.msg
According to the tutorial the generated micrortps_client directory should contain:
├── CMakeLists.txt
├── microRTPS_client.cpp
├── microRTPS_client_dummy.cpp
├── microRTPS_client_main.cpp
├── microRTPS_transport.cpp
└── microRTPS_transport.h
This is not the case, the actual generated tree is:
├── microRTPS_client.cpp
├── microRTPS_transport.cpp
└── microRTPS_transport.h
There is no CMakeLists.txt, as a result when running make on px4fmu-
I get the following error:
CMake Error at cmake/nuttx/px4_impl_nuttx.cmake:208 (get_target_property):
get_target_property() called with non-existent target
“modules__micrortps_bridge__micrortps_client”.
Call Stack (most recent call first):
src/firmware/nuttx/CMakeLists.txt:4 (px4_nuttx_generate_builtin_commands)
which is due to the modules/micrortps_bridge/micrortps_client line being present in .cmake.
Reason being this module does not contain a CMakelists.txt file which is not generated.
I guess that some files should be removed. This is not clear from the tutorial.
I will investigate further.