tum-vision / tum_ardrone

Repository for the tum_ardrone ROS package, implementing autonomous flight with PTAM-based visual navigation for the Parrot AR.Drone.
http://wiki.ros.org/tum_ardrone
GNU General Public License v3.0
226 stars 192 forks source link

[rosrun] Couldn't find executable named drone_gui #39

Open cyliangmin opened 9 years ago

cyliangmin commented 9 years ago

Hello! I'm from China and I have met a problem when I used tum_ardrone. I install the ROS hydro on Ubuntu 12.04 LTS. I successfully implemented the catkin_make command, but when I run command roslaunch tum_ardrone tum_ardrone.launch, there was an error: ERROR: cannot launch node of type [tum_ardrone/drone_stateestimation]: can't locate node [drone_stateestimation] in package [tum_ardrone] ERROR: cannot launch node of type [tum_ardrone/drone_autopilot]: can't locate node [drone_autopilot] in package [tum_ardrone] ERROR: cannot launch node of type [tum_ardrone/drone_gui]: can't locate node [drone_gui] in package [tum_ardrone]

And I also used the command rosrun tum_ardrone drone_stateestimation (actually I type the drone_stateestimation by myself because it didn't auto complete when I press tab-key), and there was an error like: [rosrun] Couldn't find executable named drone_gui below /home/lmin/Documents/ros/catkin_ws/src/tum_ardrone

I have searched the answer on google but it seemed that only few people had met this problem, so I decided to ask you! Thank you and sorry for my poor English.

cyliangmin commented 9 years ago

Hello, I have solved the problem. The files drone_stateestimation, drone_autopilot and drone_gui had been generated under directory catkin_ws/devel/lib/tum_ardrone and should be copied to directory catkin_ws/src/tum_ardrone.

himanshisyadav commented 9 years ago

I have stateestimation, autopilot and some UINode folders in my catkin_ws/src/tum_drone/src folder. And it still gives the above error. What is a possible solution?

cipri-tom commented 8 years ago

@Himanshirocks the stateestimation you're mentioning is a folder, not a ros package. I am facing the same issue. I believe the mentioned packages are not build, for some reason.

ok, the reason was that tum_drone is made to be built with catkin, rather than rosbuild. So if you built with rosmake then it won't do anything, since they're not the same thing. Strange, since the tutorial on ros website says it should work with rosmake.

To solve it, I made a catkin workspace, copied tum_ardrone in catkin_ws/src, made sure the ROS_PACKAGE_PATH is up to date, ran rosupdate install tum_ardrone as instructed in the README and then ran catkin_make. Lastly, I sourced the file in catkin_ws/devel and everything worked.

hil-team commented 8 years ago

Hi, I had similar issue during the catkin_make, I was getting error $ /usr/bin/ld: cannot find -lglut so I installed glut library $ sudo apt-get install freeglut3-dev and everything worked fine

sean-duffy commented 7 years ago

@cipri-tom Hi, I ran into a similar problem so I followed all the steps you've described but I'm still getting messages like this:

[rosrun] Couldn't find executable named drone_stateestimation below /home/seanduffy/catkin_ws/src/tum_ardrone

When I run catkin_make it says Built target drone_stateestimation etc but the binaries still aren't found. I'm not sure what you mean by your last step with sourcing a file, perhaps this is my downfall?

cipri-tom commented 7 years ago

@sean-duffy umm, IIRC, there are 2 types of 'releases' for catkin: devel and release (or something along those lines). By default, it is set up to use 'release' whereas the drone_stateestimation is compiled for the devel. So that's why you need to source ~/catkin_ws/devel . This will append the correct folder to your PATH, where the development libraries reside. To check it: echo $PATH and you should see that path there.

If you want this to be persistent and available in all terminals, you have add the source command to your ~/.bashrc file.