I am compiling an app that will use PX4 headers. This is a two-part question. Feel free to answer one or both.
My app is a test app. it is structured as a combination of the ATLFlight HelloWorld (https://github.com/ATLFlight/HelloWorld) and the PX4 HelloSky apps. I am including the PX4 header directories so that I may use uORB. I am then building this app in a way that modifies the ATLFlight HelloWorld cmake/makefiles. Upon building (see ATLFlight HelloWorld app for more details on the build process), I am met with the error:
fatal error: uORB/topics/sensor_combined.h: No such file or directory #include <uORB/topics/sensor_combined.h>
This file is not in the PX4 Firmware source tree, so I trust that this is not a completely weird error.
The first question is: does building this app using PX4 headers assume that the px4 app is running and that this app will run on top of it? I.e. will it not work if I merely use the PX4 headers and don't build with some extra stuff specified by building a PX4 app as a PX4 module?
The second question is: how can I include the file
<uORB/topics/sensor_combined.h>? I see that the
sensor_combined.msg file is in the
msg directory. Is this similar to ROS, where messages are auto-generated into source code at some point in the build process?