ethz-asl / rovio

Other
1.12k stars 506 forks source link

Vanilla aproach not working (for me) #171

Open arnwik opened 6 years ago

arnwik commented 6 years ago

Hi,

this is probably a noob error from my side but I am stuck and hoping for some help. I did the vanilla installation of ROS and did the beginner_tutorial. Then I came to this site to install rovio. I follow this approach (I am running kinetic) https://github.com/ethz-asl/rovio/issues/160 but I have issues running the "catkin build rovio" command: Here's the output: image

The issue probably that I have not created a package for rovio, but if I create the package before I clone rovio from git I get one issue, and if I create the rovio package after I clone rovio from git I get another issue. By the way; I create the package this way: user@user-Virtualbox:~catkin_ws/src$ catkin_create_pkg rovio std_msgs rospy rpscpp

Best regards Arne

ZacharyTaylor commented 6 years ago

Your catkin workspace is a bit messed up. You seem to have created a catkin workspace inside the rovio package. For reference when I run catkin build I get:

z@z-work:~/catkin_ws/src$ catkin build rovio

Profile: default Extending: [explicit] /opt/ros/kinetic Workspace: /home/z/catkin_ws

Source Space: [exists] /home/z/catkin_ws/src Log Space: [exists] /home/z/catkin_ws/logs Build Space: [exists] /home/z/catkin_ws/build Devel Space: [exists] /home/z/catkin_ws/devel Install Space: [unused] /home/z/catkin_ws/install DESTDIR: [unused] None

Devel Space Layout: merged Install Space Layout: None

Additional CMake Args: -DCMAKE_BUILD_TYPE=Release Additional Make Args: None Additional catkin Make Args: None Internal Make Job Server: True Cache Job Environments: False

Whitelisted Packages: None Blacklisted Packages: None

Workspace configuration appears valid.

Note that the source space etc doesn't go into the rovio folder. If you only have the rovio package in your workspace it might be easiest just to start clean. Delete catkin_ws and set it up again by going:

source /opt/ros/kinetic/setup.bash mkdir -p ~/catkin_ws/src cd ~/catkin_ws catkin init catkin config --extend /opt/ros/kinetic catkin config --merge-devel # this is important, otherwise you may get weird linking errors cd src git clone https://github.com/ethz-asl/rovio.git git clone https://github.com/ethz-asl/kindr.git #needed dep cd rovio git submodule update --init --recursive catkin build rovio