ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Okay I finally found the solution to generate .h files.

In my Cmakelist.txt file,

catkin_package(
#INCLUDE_DIRS include 
CATKIN_DEPENDS ...
#DEPENDS system_lib
)

If I uncomment #INCLUDE_DIRS include, then I have to create a folder called include in your src/pkg_name. Once I did that, you could compile it but the header file still wouldnt appear there. Apparently, it is built inside devel/include/hola. So I just left the INCLUDE_DIRS include part commented.

To compile it, I had to do #include <hola parsedpointcloud.h=""> and instantiate it with hola::ParsedPointCloud obj1; to be able to use it.

Thank you gvdhoorn for letting me know that these header files are generated and shouldn't be created by the user.

Okay I finally found the solution to generate .h files.

In my Cmakelist.txt file,

catkin_package(
#INCLUDE_DIRS include 
CATKIN_DEPENDS ...
#DEPENDS system_lib
)

If I uncomment #INCLUDE_DIRS include, then I have to create a folder called include in your src/pkg_name. Once I did that, you could compile it but the header file still wouldnt appear there. Apparently, it is built inside devel/include/hola. So I just left the INCLUDE_DIRS include part commented.

To compile it, I had to do #include <hola parsedpointcloud.h=""> and instantiate it with hola::ParsedPointCloud obj1; to be able to use it.

Thank you gvdhoorn for letting me know that these header files are generated and shouldn't be created by the user. user.

Okay I finally found the solution to generate .h files.

In my Cmakelist.txt file,

catkin_package(
#INCLUDE_DIRS include 
CATKIN_DEPENDS ...
#DEPENDS system_lib
)

If I uncomment #INCLUDE_DIRS include, then I have to create a folder called include "include" in your my src/pkg_name. Once I did that, you could compile it but the header file still wouldnt appear there. Apparently, it is built inside devel/include/hola. (I didnt know that) So I just left the INCLUDE_DIRS include part commented.

To compile it, I had to do #include <hola parsedpointcloud.h=""> and instantiate it with hola::ParsedPointCloud obj1; to be able to use it.

Thank you gvdhoorn for letting me know that these header files are generated and shouldn't be created by the user.

click to hide/show revision 4
No.4 Revision

Okay I finally found the solution to generate .h files.

In my Cmakelist.txt file,

catkin_package(
#INCLUDE_DIRS include 
CATKIN_DEPENDS ...
#DEPENDS system_lib
)

If I uncomment #INCLUDE_DIRS include, then I have to create a folder called "include" in my src/pkg_name. Once I did that, you could compile it but the header file still wouldnt appear there. Apparently, it is built inside devel/include/hola. (I didnt know that) So I just left the INCLUDE_DIRS include part commented.

To compile it, I had to do #include <hola parsedpointcloud.h=""> <hola/ParsedPointCloud.h> and instantiate it with hola::ParsedPointCloud obj1; obj1; to be able to use it.

Thank you gvdhoorn for letting me know that these header files are generated and shouldn't be created by the user.