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

Can not find "PositionWithCovarianceStamped.h" #39

Open
TingruW opened this issue Sep 1, 2015 · 2 comments
Open

Can not find "PositionWithCovarianceStamped.h" #39

TingruW opened this issue Sep 1, 2015 · 2 comments

Comments

@TingruW
Copy link

TingruW commented Sep 1, 2015

Hi Stephan,
I am really fascinated by your work and want to see if it is possible to be transplanted on mobile phone.
But when I finished downloading and using catkin_make to do the compilation, this error appeared
fatal error: ssf_updates/PositionWithCovarianceStamped.h: No such file or directory
#include <ssf_updates/PositionWithCovarianceStamped.h>
Is there anything missing? How could I continue the compilation.

Thanks in advance.
Tingru

@stephanweiss
Copy link
Contributor

This seems to be a missing message type. Please verify that you have the file PositionWithCovarianceStamped.msg in the msg folder of ssf_updates (should be in there by default, otherwise, download the latest version). If the error still occurs, this means that something is wrong with the CMakeLists.txt file or with your Catkin build environment (i.e. the messages are not built correctly: PositionWithCovarianceStamped.h will be created by the build system from PositionWithCovarianceStamped.msg).

Best,
Stephan


From: TingruW [notifications@github.com]
Sent: Tuesday, September 01, 2015 6:07 AM
To: ethz-asl/ethzasl_sensor_fusion
Subject: [ethzasl_sensor_fusion] Can not find "PositionWithCovarianceStamped.h" (#39)

Hi Stephan,
I am really fascinated by your work and want to see if it is possible to be transplanted on mobile phone.
But when I finished downloading and using catkin_make to do the compilation, this error appeared

fatal error: ssf_updates/PositionWithCovarianceStamped.h: No such file or directory
#include
Is there anything missing? How could I continue the compilation.

Thanks in advance.
Tingru


Reply to this email directly or view it on GitHubhttps://github.com//issues/39.

@adamjardim
Copy link

This might be reviving the dead a bit, but I also encountered this issue, stumbled upon this thread hoping for a solution, but didn't find one here! For those who are looking to build this package and encounter this issue, my solution was to add:

add_dependencies(position_sensor ssf_updates_generate_messages_cpp)

to the ssf_updates CMakelist (ethzasl_sensor_fusion/ssf_updates/CMakeLists.txt) just after the add_executable and set_property lines for position_sensor.

Should look something like this:

add_executable(position_sensor src/main.cpp src/position_sensor.cpp)
set_property(TARGET position_sensor PROPERTY COMPILE_DEFINITIONS POSITION_MEAS)
add_dependencies(position_sensor ssf_updates_generate_messages_cpp) <================
target_link_libraries(position_sensor ${catkin_LIBRARIES})

It looks like the build machines they're running probably built those files first, but a less capable machine (like mine) doesn't have the ability to work as in parallel as theirs. As such, explicitly adding that line makes it buildable for me.

Hope this helps!

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