[ros-users] Include sensor_msgs/Imu.h

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Leif Christensen
Date:  
To: ros-users
Subject: [ros-users] Include sensor_msgs/Imu.h

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