Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I just created the following program:

#include <ros/ros.h>
#include <industrial_msgs/RobotStatus.h>

int main(int argc, char **argv)
{
  return 0;
}

Building succeeded (standard CMakeLists.txt, package.xml declaring dependency on industrial_msgs), no errors.

I'm suspecting some kind of conflict between the other includes in your header and cpp file, and the RobotStatus.h header.

PS: any reason you have some double includes? PPS: I assume there is a #endif in akomips3.h.

I just created the following program:

#include <ros/ros.h>
#include <industrial_msgs/RobotStatus.h>

int main(int argc, char **argv)
{
  return 0;
}

Building succeeded (standard CMakeLists.txt, package.xml declaring dependency on industrial_msgs), no errors.

I'm suspecting some kind of conflict between the other includes in your header and cpp file, and the RobotStatus.h header.

PS: any reason you have some double includes? includes?

PPS: I assume there is a #endif in akomips3.h.