MAVROS raspberry compile error

asked 2017-11-24 04:15:04 -0500

MaximeRector gravatar image

Hi,

I'm trying to compile code some on my raspberry that uses the MAVROS package, on my computer the exact same code compiles perfect, but on my raspberry pi I get following error.

fatal error: mavros_msgs/CommandBool.h: No such file or directory

I have no idea what i did wrong, maybe I installed the package wrong, idk.

Specs:

  • Computer : ROS kinetic, ubuntu 16.04
  • Raspberry : ROS kinetic, Rasbian

Thanks!

edit retag flag offensive close merge delete

Comments

How do you build the package?

l4ncelot gravatar image l4ncelot  ( 2017-11-24 04:21:31 -0500 )edit

I could find a proper way, so i did it this this way. I have no idea how i did it on my computer, it has been months since I builded it.

MaximeRector gravatar image MaximeRector  ( 2017-11-24 04:37:34 -0500 )edit

Try to clone the mavros repository again from here and follow these install instructions.

l4ncelot gravatar image l4ncelot  ( 2017-11-24 05:45:13 -0500 )edit

If i try rosdep install mavros after cloning the repository, I get following error:

ERROR: Rosdep cannot find all required resources to answer your query
Missing resource mavros/
ROS path [0]=/opt/ros/kinetic/share/ros
ROS path [1]=/home/pi/masterproef/DetectieVanLandingsplatformV
MaximeRector gravatar image MaximeRector  ( 2017-11-24 06:07:45 -0500 )edit
1

How did you install ROS on rpi? If you've built it from source like described here you can add mavros package to rosinstall_generator command. Look at section 4 of the guide. This is how I did it on my rpi.

l4ncelot gravatar image l4ncelot  ( 2017-11-24 06:25:54 -0500 )edit

After a weekend off and installing a fresh copy of raspbian I was finally able to install mavros. What is the best way to install ros packages? Because doing it with rosinstall_generater and the other steps in section 4, for every package takes ages.

MaximeRector gravatar image MaximeRector  ( 2017-11-28 01:48:19 -0500 )edit

Idk what the best way is, but I do it this way. It takes some time to compile but it's just a few commands and script will do it for you.

l4ncelot gravatar image l4ncelot  ( 2017-11-28 02:06:57 -0500 )edit

Some time, an hour or two :o.

MaximeRector gravatar image MaximeRector  ( 2017-11-28 02:26:26 -0500 )edit