Robotics StackExchange | Archived questions

CLion autocomplete own message type

I created own message following this tutorial.

My folders structure looks like this image description

When I include

#include "message_types/SbotMsg.h"

in sbotpublishernode.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?

Asked by d0d0 on 2017-01-18 12:02:27 UTC

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.

Asked by spmaniato on 2017-01-18 16:08:41 UTC

Answers