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

Cannot find mavlink package when compiling mavros on Odroid-U3 #55

Closed
ggregory8 opened this issue Jul 20, 2014 · 9 comments
Closed

Cannot find mavlink package when compiling mavros on Odroid-U3 #55

ggregory8 opened this issue Jul 20, 2014 · 9 comments
Labels

Comments

@ggregory8
Copy link

I had everything running on the Odroid a week ago. Then I update to the latest mavros, which I then needed to update the latest mavlink package. So I built mavlink from source as per the instructions. This lives in ~/packages/mavlink folder.

When I try to compile mavros with catkin_make it cannot find the mavlink package.
CMake Error at mavros/CMakeLists.txt:23 (find_package):
Could not find module Findmavlink.cmake or a configuration file for package mavlink.

How do I add the ~/packages/mavlink folder so CMake can find it? I have added the folder to $ROS_PACKAGE_PATH and it can be found when doing a rospack list.

@mhkabir @TSC21 You guys have mavros working on Odroid?

Any ideas?

@vooon
Copy link
Member

vooon commented Jul 20, 2014

I think better install it to rosdistro path. I not know much cmake, but fast googling shows CMAKE_PREFIX_PATH env var.
But in my installation it CMAKE_PREFIX_PATH=/opt/ros/indigo, so if change it i think it will break other packages.

@ggregory8
Copy link
Author

Thanks for the tip. I couldn't install to the /opt/ros/hydro path due to write permissions and also prefer to keep source built packages seperate.
By copying the mavlink/include and mavlink/share folders to my catkin workspace ~/catkin_ws/devel mavros was able to find the dependencies.

I will investigate the correct way to add a custom location to the $CMAKE_PREFIX_PATH, as I think that would be the best way.

Would be interesting to know how the other guys did this?

@TSC21
Copy link
Member

TSC21 commented Jul 21, 2014

Hi Glenn,

Did "sudo -s" and installed directly onto /opt/ros/hydro ;)

By the way I confirm that changing those parameters related to Z estimate give a more stable pose estimation. We will probably have to do some tweaks till we find some reliable values. Let us know about your progress on the PX4 side. Any help just ask!

@ggregory8
Copy link
Author

@TSC21 I thought I tried sudo without any luck. Maybe I was doing it wrong :)

@voon Just a note on mis-spell on the instructions for building mavlink in the Readme.
rosinstall_generate mavlink | tee rosinstall.yaml
should be (at least it worked for me)
rosinstall_generator mavlink | tee rosinstall.yaml

@TSC21
Copy link
Member

TSC21 commented Jul 21, 2014

Use "sudo -s" and you will be using the command line as root. Then you can install. The other way is using chmod to change the write permissions on /opt/ros/hydro.

Yep I confirm that correction also:
rosinstall_generator mavlink | tee rosinstall.yaml

@tonybaltovski
Copy link
Contributor

I had the same issue. I used sudo bash.

vooon added a commit that referenced this issue Jul 21, 2014
@vooon
Copy link
Member

vooon commented Jul 21, 2014

I couldn't install to the /opt/ros/hydro path due to write permissions and also prefer to keep source built packages seperate.

There is binary distribution ROS for Odroid-3? You can build deb package using dh binary.
Also check #34.

@vooon
Copy link
Member

vooon commented Jul 21, 2014

@tonybaltovski when you use sudo bash (or better sudo -i) you must source /opt/ros/<distro>/setup.bash again.
But sudo -s should work.

@ggregory8
Copy link
Author

Thanks for the comments. I added the package to my catkin workspace devel folder and it worked. Next time I will use sudo -s :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants