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

Missing BumperState.h #63

Open
JohanneLun opened this issue Nov 1, 2019 · 4 comments
Open

Missing BumperState.h #63

JohanneLun opened this issue Nov 1, 2019 · 4 comments

Comments

@JohanneLun
Copy link

JohanneLun commented Nov 1, 2019

I get the following error when running catkin_make after having downloaded my project to a new computer.

/home/cyborg/catkin_ws/src/rosaria_client/src/print_state.cpp:7:33: fatal error: rosaria/BumperState.h: No such file or directory
compilation terminated.
rosaria_client/CMakeFiles/print_state.dir/build.make:62: recipe for target 'rosaria_client/CMakeFiles/print_state.dir/src/print_state.cpp.o' failed
make[2]: *** [rosaria_client/CMakeFiles/print_state.dir/src/print_state.cpp.o] Error 1
CMakeFiles/Makefile2:5360: recipe for target 'rosaria_client/CMakeFiles/print_state.dir/all' failed
make[1]: *** [rosaria_client/CMakeFiles/print_state.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Invoking "make -j4 -l4" failed

It seems to dissappear after running catkin_make a few times in a row. Sometimes the same thing happens with BatteryState.h from ros-arnl.
I have encountered something similar in another project before and we solved it by changing some of the dependencies in CMakeLists.txt file, but I have not found the right change here.

Here is the issue I created in my own project: thentnucyborg/CyborgRobot#1

@reed-adept
Copy link

reed-adept commented Nov 5, 2019 via email

@JohanneLun
Copy link
Author

JohanneLun commented Nov 5, 2019

It does not appear after running catkin_make --pkg rosaria but does appear after catkin_make --only-pkg-with-deps rosaria.
I'm using ROS Kinetic, and it's cloned from https://github.com/pengtang/rosaria_client, and seems to be on the master branch.

@JohanneLun
Copy link
Author

JohanneLun commented Apr 3, 2020

Solution from thentnucyborg/CyborgRobot#1

Error 1:
No such file or directory - rosaria_client print state, bumperstate.h:
Added add_dependencies(print_state ${catkin_EXPORTED_TARGETS}) to CMakeLists.txt in rosaria_client
https://answers.ros.org/question/206257/catkin-use-ros-message-from-another-package/

Error 2:
rosarnl/BatteryStatus.h: No such file or directory
Added add_dependencies(rosarnl_node rosarnl_gencpp) to CMakeLists.txt in ros-arnl.

@reedhedges
Copy link
Contributor

reedhedges commented May 7, 2020

Would it be better for bumper_state to be in a separate rosaria_msgs package? Or to replace bumper_state with something more standard/generic? I think it's the only rosaria specific message type. (i.e. so client nodes don't have to depend on rosaria)

@reedhedges reedhedges reopened this May 7, 2020
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