Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the lack of Obstacles.h #10

Open
jameschan002 opened this issue Aug 28, 2018 · 3 comments
Open

About the lack of Obstacles.h #10

jameschan002 opened this issue Aug 28, 2018 · 3 comments

Comments

@jameschan002
Copy link

Hi tysik!
Thanks for your package of obstacle detector.
I've found a problem in file obstacle_extractor.h, line 43 "#include <obstacle_detector/Obstacles.h>". But I can't find this file "Obstacles.h" in corresponding directory. Could you tell me where it is? Thx!

@tysik
Copy link
Owner

tysik commented Sep 1, 2018

Obstacles.h is automatically generated by catkin from messages description files *.msg. You should not edit these header files on your own. Please try to call catkin_make couple of times or comment out obstacle_extractor and tracker from CMakeList.txt for the first build.

@jameschan002
Copy link
Author

Thx very much! btw, can this package be applied to Lidar on vehicles? Just detect the obstacles on road.

@awilhelm
Copy link

awilhelm commented Aug 8, 2019

We found that adding set(catkin_EXPORTED_TARGETS ${catkin_EXPORTED_TARGETS} obstacle_detector_generate_messages_cpp) before # Build libs in obstacle_detector/CMakeLists.txt seems to fix this issue. Now our workspace builds with a single catkin_make call.
And it is said here that you need to add an explicit dependency to the generated headers.

awilhelm pushed a commit to awilhelm/obstacle_detector that referenced this issue Aug 28, 2019
Seems to fix issue tysik#10.

Sometimes, when building with `catkin_make`, we used to get this error:
        In file included from /home/src/obstacle_detector/src/displays/circle_visual.cpp:36:0:
        /home/src/obstacle_detector/include/obstacle_detector/displays/circle_visual.h:39:10: fatal error: obstacle_detector/Obstacles.h: No such file or directory
Now our workspace builds with a single catkin_make call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants