CLion autocomplete own message type

asked 2017-01-18 11:02:57 -0500

d0d0 gravatar image

updated 2017-01-18 12:00:20 -0500

I created own message following this tutorial.

My folders structure looks like this image description

When I include

#include "message_types/SbotMsg.h"

in sbot_publisher_node.cpp I get Cannot find 'SbotMsg.h' and include is red, which means error. But when I run catkin_make project is properly builded and run.

This error (no autocomplete) happens only when I am trying to include my own message type, not build-in message type in ROS.

Is there any way how to handle this error?

edit retag flag offensive close merge delete

Comments

I'm not familiar with the CLion editor. But since it can "see" the header files in the ROS installation, maybe you have to build and source your workspace, then relaunch CLion.

spmaniato gravatar image spmaniato  ( 2017-01-18 15:08:41 -0500 )edit