ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

"Getting AR.Drone version..."

asked 2017-03-26 16:56:35 -0500

pratledge gravatar image

updated 2017-03-29 19:37:55 -0500

Hi everyone!

I installed Ubuntu Trusty 14.04.5 along with the full version of ROS Indigo named Desktop-Full Install as per http://wiki.ros.org/indigo/Installati... , which uses Gazebo 2.

I then proceeded to add the packages: tum_ardrone, tum_simulator, ardrone_autonomy and ardrone_helpers.

I opened two terminals. In terminal 1 I ran:

source workspace/devel/setup.bash
roscd
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`/ardrone_autonomy
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`/ardrone_helpers
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`/tum_simulator
roslaunch cvg_sim_gazebo ardrone_testworld.launch

In terminal 2 I ran:

source workspace/devel/setup.bash
roscd
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`/ardrone_autonomy
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`/ardrone_helpers
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`/tum_simulator
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:`pwd`/tum_ardrone

Now there are two situations

1. When I run roslaunch tum_ardrone tum_ardrone.launch ROS outputs:

Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://peterhr:43605/

SUMMARY
========

PARAMETERS
 * /rosdistro: indigo
 * /rosversion: 1.11.20

NODES
  /
    drone_autopilot (tum_ardrone/drone_autopilot)
    drone_gui (tum_ardrone/drone_gui)
    drone_stateestimation (tum_ardrone/drone_stateestimation)

ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found
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]
No processes to monitor
shutting down processing monitor...
... shutting down processing monitor complete

It creates those 3 Errors that I am not sure how to fix.

2. Once that failed I tried running "rosrun ardrone_autonomy ardrone_driver" instead which returned the following output on the command line:

Wait authentification
Wait authentification
Wait authentification
===================+> 192.168.1.81
Getting AR.Drone version ...
Getting AR.Drone version ...
Getting AR.Drone version ...

at which point it continuously loops through "Getting AR.Drone version". Anyone has any idea on how to fix this? I have had a read through a few forums but none of the fixes seemed to work.

I have also tried to run the usual takeoff (rostopic pub -1 /ardrone/takeoff std_msgs/Empty ), land, flyfoward, etc commands as specified in section 3.3.2 of the following wiki: http://wiki.ros.org/tum_simulator . But that seems to produce no change on my drone simulation whatsoever.

For those whom may think this is helpful for this issue, when I try to run "telnet 192.168.1.81", I get the following output:

Trying 192.168.1.81...
telnet: Unable to connect to remote host: Connection refused

Please help me out with this, I can't seem to move past this point. Thanks!

tum_ardrone was cloned from https://github.com/dougvk/tum_simulator (indigo-devel branch). tum simulator was retrieved from https://github.com/dougvk/tum_simulator . ardrone_autonomy was installed using the following instructions: http://ardrone-autonomy.readthedocs.i... .

edit retag flag offensive close merge delete

Comments

Are you connected to the AR.Drone's WiFi?

jayess gravatar image jayess  ( 2017-03-26 17:37:42 -0500 )edit

Hi, No I don't think so, as I'm not entirely sure how to do that. But it might be worth pointing out that I'm testing this on a ROS / Gazebo simulation not a physical drone. As that potentially makes a difference...

pratledge gravatar image pratledge  ( 2017-03-26 17:57:20 -0500 )edit

What are using to simulate the drone? ardrone_autonomy will provide you with a means of connecting and controlling the drone but it won't simulate one for you.

jayess gravatar image jayess  ( 2017-03-26 18:15:05 -0500 )edit

Exactly what commands did you run? It's really hard to navigate through slideshare on a phone. Also, note that that slide deck states that it's for ROS Fuerte which was released in 2012.

jayess gravatar image jayess  ( 2017-03-28 11:22:30 -0500 )edit

Hi, I have updated the question hope this time I have provided enough details! I'm sorry for how slow this is going, it's the first time I've tried to write a question on a Q&A Forum.

pratledge gravatar image pratledge  ( 2017-03-29 17:56:48 -0500 )edit

Did you run catkin_make from the root of your workspace after tum_ardrone, tum_simulator, ardrone_autonomy, and ardrone_helpers were added to it? It looks like ROS can't find the executables for the nodes in tum_ardrone.

jayess gravatar image jayess  ( 2017-03-29 20:52:46 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-26 18:47:16 -0500

jayess gravatar image

updated 2017-03-26 18:49:01 -0500

Because ardrone_autonomy stays at Getting AR.Drone version ... and when you try to telnet into a drone (that you apparently don't have a physical version of) you get telnet: Unable to connect to remote host: Connection refused it sounds like you need to either:

  • get a physical AR.Drone 2.0
  • use another ROS package that simulates one

When either of these two conditions are met, then you should be able to start working.

edit flag offensive delete link more

Comments

I am simulating the drone using the package tum_simulator, and I have this simulation running on the first terminal while I attempt to control said drone simulation from a second terminal by running the tum_ardrone package's launch files.

pratledge gravatar image pratledge  ( 2017-03-27 03:32:43 -0500 )edit

I have also attempted to use the comments such as rostopic pub -1 /ardrone/takeoff std_msgs/Empty which says it will send the message in 3 seconds and then stops. It doesn't produce an error or get stuck but it doesn't seem to get the drone moving either. Source: http://wiki.ros.org/tum_simulator

pratledge gravatar image pratledge  ( 2017-03-27 03:34:42 -0500 )edit

Can you please update your question with everything that you're doing (e.g. launch files used) and the results that you're getting (e.g. terminal output)? I'm going to need more to go on here. Are you running tum_simulator then ardrone_autonomy, vice versa, etc?

jayess gravatar image jayess  ( 2017-03-27 09:34:47 -0500 )edit

Also, please add what version of ROS you're using and what versions of the tum_simulator and ardrone_autonomy you're using as well. The more information that's given up front, the better help you can be given (and faster too).

jayess gravatar image jayess  ( 2017-03-27 09:37:06 -0500 )edit

Hi, I have updated the question with the relevant information, please do let me know if I missed out on anything.

pratledge gravatar image pratledge  ( 2017-03-28 11:02:00 -0500 )edit

Question Tools

Stats

Asked: 2017-03-26 16:56:35 -0500

Seen: 1,281 times

Last updated: Mar 29 '17