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

MAVROS raspberry pi installation error #576

Closed
Jaeyoung-Lim opened this issue Jul 19, 2016 · 14 comments
Closed

MAVROS raspberry pi installation error #576

Jaeyoung-Lim opened this issue Jul 19, 2016 · 14 comments
Labels

Comments

@Jaeyoung-Lim
Copy link
Contributor

I am trying to install mavros on Raspberry Pi 2

Following the instructions of installing mavros from source, I get an error from

rosdep install --from-paths src --ignore-src --rosdistro indigo --os=debian:jessie -y

111

How can I solve this problem?

@vooon vooon added the question label Jul 19, 2016
@vooon
Copy link
Member

vooon commented Jul 19, 2016

Did you install ROS? I mean base system.

Check that guide: http://dev.px4.io/ros-raspberrypi-installation.html

@vooon
Copy link
Member

vooon commented Jul 19, 2016

Also note that debian officially supported starting from Kinetic.

@Jaeyoung-Lim
Copy link
Contributor Author

@vooon I realized that I didn't install the released packages at 4.2
However, I am not being able to install it properly.

Are you suggesting that it is better to install kinetic than indigo? I supposed it was better to follow the tutorial as indigo

@Jaeyoung-Lim
Copy link
Contributor Author

I have reinstalled raspbian(Jessie) and followed the whole process of the guide: http://dev.px4.io/ros-raspberrypi-installation.html

Still have the same error message of not being able to find package for OS [debian]

@vooon
Copy link
Member

vooon commented Jul 21, 2016

Switch to kinetic may help, may don't. Now i don't have access to my RPi2, but i used Ubuntu image.

@Jaeyoung-Lim
Copy link
Contributor Author

Jaeyoung-Lim commented Jul 21, 2016

So I had to use rosinstall_generator to get a bunch of packages which rosdep could not find. These are the packages I had to add to the mavros.install file.

rosinstall_generator geometry_msgs | tee -a /tmp/mavros.rosinstall
rosinstall_generator sensor_msgs | tee -a /tmp/mavros.rosinstall
rosinstall_generator tf | tee -a /tmp/mavros.rosinstall
rosinstall_generator control_toolbox | tee -a /tmp/mavros.rosinstall

rosinstall_generator realtime_tools | tee -a /tmp/mavros.rosinstall
rosinstall_generator nav_msgs | tee -a /tmp/mavros.rosinstall
rosinstall_generator urdf | tee -a /tmp/mavros.rosinstall
rosinstall_generator eigen_conversions | tee -a /tmp/mavros.rosinstall
rosinstall_generator  | tee -a /tmp/mavros.rosinstall
rosinstall_generator urdf | tee -a /tmp/mavros.rosinstall

rosinstall_generator actionlib_msgs | tee -a /tmp/mavros.rosinstall
rosinstall_generator dynamic_reconfigure | tee -a /tmp/mavros.rosinstall
rosinstall_generator diagnostic_msgs | tee -a /tmp/mavros.rosinstall
rosinstall_generator pluginlib | tee -a /tmp/mavros.rosinstall
rosinstall_generator orocos_kdl | tee -a /tmp/mavros.rosinstall
rosinstall_generator visualization_msgs | tee -a /tmp/mavros.rosinstall
rosinstall_generator angles | tee -a /tmp/mavros.rosinstall
rosinstall_generator tf2_py | tee -a /tmp/mavros.rosinstall
rosinstall_generator tf2 | tee -a /tmp/mavros.rosinstall
rosinstall_generator urdf | tee -a /tmp/mavros.rosinstall

rosinstall_generator diagnostic_updater | tee -a /tmp/mavros.rosinstall
rosinstall_generator image_transport | tee -a /tmp/mavros.rosinstall
rosinstall_generator actionlib | tee -a /tmp/mavros.rosinstall

However, rosdep was showing unresolved dependencies

executing command [sudo -H apt-get install -y liburdfdom-dev]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 liburdfdom-dev : Depends: libconsole-bridge-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install -y liburdfdom-dev] failed

Anyway, I tried building anyway but catkin build is not being able to build but urdf wouldn't build without it.

@vooon maybe I should consider using the ubuntu image on my raspberry pi 2

@annesteenbeek
Copy link

"fixed" this by adding --os=ubuntu:trusty

rosdep install --from-paths src --ignore-src --rosdistro indigo --os=ubuntu:trusty -y

was allso missing liburdf packages for mavros-extras, got these from the ubuntu trusty armhf ppa. Installing mavros using binaries still causes problems for me on the RPI3 which kinda sucks since building it from source takes hours.

@Jaeyoung-Lim
Copy link
Contributor Author

@annesteenbeek have you done the rosdep on raspbian Jessie? It's good if it works!

I have fixed the problem by changing running ubuntu 14.04 on Raspberry Pi

@vooon vooon closed this as completed Jul 29, 2016
@annesteenbeek
Copy link

Yes, raspbian jessie lite on RPI3, it did give some errors when starting up, (don't have access to rpi atm else I would post them) but it ran fine. Would like to have installed ubuntu but couldn't find any 14.04 images for RPI3. Do think the wiki tutorial and PX4 tutorial should be updated since both don't work as step by step guides anymore.

@ChrisYin
Copy link

ChrisYin commented Jun 6, 2017

@annesteenbeek hello! I had the same problem in RPI3 when using rosdep. Have you solved this problem? or should I change system into ubuntu 14.04 in RPI3?

@annesteenbeek
Copy link

annesteenbeek commented Jun 6, 2017

If I remember correctly, I solved this by adding some ubuntu ARM repositories. However. I do think the easiest method to solve this is to run Ubuntu on the pi. Be it 14.04 or 16.04. This also helps with overall Ros comparability.

@Jaeyoung-Lim
Copy link
Contributor Author

@ChrisYin In my opinion, changing to ubuntu 14.04 will save you a lot of time. Raspian will keep having compatibility issues using different ROS packages

@chngdickson
Copy link

@Jaeyoung-Lim Hello kind sir, have u actually got it up and running? If so, can u please share me ur solution for this matter?

@Jaeyoung-Lim
Copy link
Contributor Author

Jaeyoung-Lim commented Feb 9, 2018

@chngdickson I ended up giving up on Raspbian and installed Ubuntu 14.04 on RPi2
I think this is a better solution and saves a lot of trouble using other ROS packages too

I have a summary of making it up and running here

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

5 participants