Problem with industrial_msgs/TriState.h
When I run catkin_make(I'm working with rqt). I get this:
[ 97%] Building CXX object guiakomips3/CMakeFiles/guiakomips3.dir/include/guiakomips3/moc_akomips3.cxx.o
In file included from /opt/ros/hydro/include/industrial_msgs/RobotStatus.h:53:0,
from /home/ismael/catkin_workspace/src/guiakomips3/include/guiakomips3/akomips3.h:13,
from /home/ismael/catkin_workspace/src/guiakomips3/src/guiakomips3/akomips3.cpp:1:
/opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected identifier before ‘true’
/opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected ‘}’ before ‘true’
/opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected unqualified-id before ‘true’
/opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected identifier before ‘false’
/opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected ‘}’ before ‘false’
/opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected unqualified-id before ‘false’
/opt/ros/hydro/include/industrial_msgs/TriState.h:85:59: error: ‘ContainerAllocator’ was not declared in this scope
/opt/ros/hydro/include/industrial_msgs/TriState.h:85:77: error: template argument 1 is invalid
/opt/ros/hydro/include/industrial_msgs/TriState.h:85:79: error: template argument 1 is invalid
/opt/ros/hydro/include/industrial_msgs/TriState.h:85:84: error: invalid type in declaration before ‘;’ token
/opt/ros/hydro/include/industrial_msgs/TriState.h:86:59: error: ‘ContainerAllocator’ was not declared in this scope
/opt/ros/hydro/include/industrial_msgs/TriState.h:86:77: error: template argument 1 is invalid
/opt/ros/hydro/include/industrial_msgs/TriState.h:86:84: error: template argument 1 is invalid
/opt/ros/hydro/include/industrial_msgs/TriState.h:86:94: error: invalid type in declaration before ‘;’ token
/opt/ros/hydro/include/industrial_msgs/TriState.h:89:1: error: expected declaration before ‘}’ token
make[2]: *** [guiakomips3/CMakeFiles/guiakomips3.dir/src/guiakomips3/akomips3.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /opt/ros/hydro/include/industrial_msgs/RobotStatus.h:53:0,
from /home/ismael/catkin_workspace/build/guiakomips3/include/guiakomips3/../../../../src/guiakomips3/include/guiakomips3/akomips3.h:13,
from /home/ismael/catkin_workspace/build/guiakomips3/include/guiakomips3/moc_akomips3.cxx:10:
/opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected identifier before ‘true’
/opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected ‘}’ before ‘true’
/opt/ros/hydro/include/industrial_msgs/TriState.h:73:13: error: expected unqualified-id before ‘true’
/opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected identifier before ‘false’
/opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected ‘}’ before ‘false’
/opt/ros/hydro/include/industrial_msgs/TriState.h:78:13: error: expected unqualified-id before ‘false’
/opt/ros/hydro/include/industrial_msgs/TriState.h:85:59: error: ‘ContainerAllocator’ was not declared in this scope
/opt/ros/hydro/include/industrial_msgs/TriState.h:85:77: error: template argument 1 is invalid
/opt/ros/hydro/include/industrial_msgs/TriState.h:85:79: error: template argument 1 is invalid
/opt/ros/hydro/include/industrial_msgs/TriState.h:85:84: error: invalid type in declaration before ‘;’ token
/opt/ros/hydro/include/industrial_msgs/TriState.h:86:59: error: ‘ContainerAllocator’ was not declared in ...
I think we're going to need a little more information than that. Those files are auto-generated, and have not changed for a long time (afaik). They're also used internally by other ROS-Industrial pkgs. Is that the only error you get? Is there no other error before it? Dependencies all properly declared in your manifest?
Also: please indent console output with 4 spaces (do not use quote blocks). It makes things a lot easier to read.
Now I posted 3 new lines before the old code. Yes, the dependences are declared in the manifest
Please update your original question with at least 10 lines around from both
akomips3.h
andakomips3.cpp
where you includeRobotStatus.h
. Or make those files available somewhere.