Can't locate node ardrone_driver node in ardrone_autonomy package.
Although this has been asked here before, there was no solution.
Background: I am using a real-drone ( not ROS simulation ) I have been trying to follow this tutorial ( I'm not using a VM ) for which I need to install the ardrone_autonomy package by -
installing binary directly using
sudo apt-get install ros-kinetic-ardrone-autonomy
.Cloning source from github (
git clone https://github.com/tum-vision/ardrone_autonomy.git
) and then./build_sdk.sh
didn't build due to some errors.Since method 2) didn't build, after I used method 1) and ran the command (
roslaunch ardrone_tutorials keyboard_controller_outdoor.launch
) from the tutorial I got the following error -ERROR: cannot launch node of type [ardrone_autonomy/ardrone_driver]: can't locate node [ardrone_driver] in package [ardrone_autonomy]
The issue: I can't seem to find the ardrone_driver file anywhere. ( I tried using linux find
). There are other few other errors too (unrelated hence not shown above, just mentioning for completeness).
System specs: Ubuntu Xenial and ROS kinetic.
Please help.
Thanks!
Update:
rospack find ardrone_autonomy
gives /home/malhar/catkin_ws/src/ardrone_autonomy
Did you install the
ardrone_autonomy
package? That tutorial (which is quite old!) uses theardrone_autonomy
package to connect with the drone. Also, do you have the actual drone or are you using a simulator?Thanks for replying @jayess , yes I used
apt-get
to installardrone_autonomy
( I have also updated the question )Where did you search for it? Please update your question with the result of
rospack find ardrone_autonomy
.Are you sourcing your
setup.bash
?rospack find ardrone_autonomy
gives the correct file path (/home/malhar/catkin_ws/src/ardrone_autonomy
) to the package folder.I'm not certain why you want me to find the ardrone_autonomy package. As mentioned in the question, I am unable to find the ardrone_driver node,
That location is actually not the correct directory if you used
apt
to install the package. It should be in your/opt/ros/kinetic/share
directory. If you plan on using theapt
installed version. Try deleting this one, recompile, andsource
yoursetup.bash
.Ok thanks, I understand. I removed the github source installations from my catkin_ws. However, now
rospack
cannot find theardrone_autonomy
package.Do I have to be connected to the drone wifi for rospack to be able to find ardrone_autonomy ? ( I don't think so but would like to confirm )
If you haven't already, delete the
~/catkin_ws/build
and~/catkin_ws/devel
directories and rebuild usingcatkin_make
or whatever build tool you're using.