[ros-users] Include sensor_msgs/Imu.h
Leif Christensen
leif.christensen at dfki.de
Wed Apr 7 12:10:53 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I just finished the tutorials and I am now trying to write my first
publisher in c++. I want to use the sensor_msgs/Imu msg in my code, but
I am stuck right at the beginning. Make fails to include sensor_msgs/Imu.h:
#include <sensor_msgs/Imu.h> , whereas
#include <std_msgs/Stringh> as in the Tutorial is working fine.
The stack common_msgs and the package sensor_msgs underneath are there
and can be found via rospack find. The generated include-headers are in
the package folder under
msg_gen/cpp/include/sensor_msgs/ ,
which is different from the location stated in
http://www.ros.org/wiki/roscpp/Overview/Messages . After that document,
the location of generated msgs should be
msg/cpp/sensor_msgs/ ,
and in the manifest.txt only this location is exported as an cpp cflag:
- -I${prefix}/msg/cpp
But even adding -I${prefix}/msg_gen/cpp/include/ and rebuilding doesn't
help.
Perhaps someone can point me in the right direction?
Greetings,
Leif
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAku8dk0ACgkQgrIQzq7NbhFoyQCgyq/tp1WimMos1Aj8IL7aBZ/i
lUMAnip3R1aXMzgvg2x39p7q3yBqIs+9
=ZrZ/
-----END PGP SIGNATURE-----
More information about the ros-users
mailing list