eclipse unresolved inclusion like ros/ros.h, ros/time.h

asked 2016-06-20 09:44:31 -0500

ZYS gravatar image

I source setup.bash and then start the eclipse in the terminal by using command

bash -i -c "eclipse"

And I have checked the include paths and symbols, things like /opt/ros/hydro/include have been added. however, the unresolved inclusion problems still occur. Most importantly, the unresolved inclusion header files are all ros header files such as

ros/ros.h
ros/time.h
nav_msgs/Odometry.h
std_msgs/Float64MultiArray.h
sensor_msgs/Imu.h
underwater_sensor_msgs/DVL.h.

Any suggestion? Thanks so much.

edit retag flag offensive close merge delete

Comments

When you go to the menu Project -> Properties -> C/C++ Include Path and Symbols, make sure you have "/opt/ros/kinetic/include", replacing kinetic with your distro. And you may need some other include paths.

Cyril_J gravatar imageCyril_J ( 2018-04-20 13:30:10 -0500 )edit