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

tum simulator takeoff not working

asked 2017-08-28 06:25:11 -0600

oha gravatar image

Hi all, I installed tum simulator and ardrone_autonomy and I have gazebo launching with a scene and I can see the drone but when I do rostopic pub -1 ardrone/takeoff std_msgs/Empty nothing happens. when I do rostopic list I get:

/ardrone/bottom/camera_info
/ardrone/bottom/image_raw
/ardrone/bottom/image_raw/compressed
/ardrone/bottom/image_raw/compressed/parameter_descriptions
/ardrone/bottom/image_raw/compressed/parameter_updates
/ardrone/bottom/image_raw/compressedDepth
/ardrone/bottom/image_raw/compressedDepth/parameter_descriptions
/ardrone/bottom/image_raw/compressedDepth/parameter_updates
/ardrone/bottom/image_raw/theora
/ardrone/bottom/image_raw/theora/parameter_descriptions
/ardrone/bottom/image_raw/theora/parameter_updates
/ardrone/bottom/parameter_descriptions
/ardrone/bottom/parameter_updates
/ardrone/front/camera_info
/ardrone/front/image_raw
/ardrone/front/image_raw/compressed
/ardrone/front/image_raw/compressed/parameter_descriptions
/ardrone/front/image_raw/compressed/parameter_updates
/ardrone/front/image_raw/compressedDepth
/ardrone/front/image_raw/compressedDepth/parameter_descriptions
/ardrone/front/image_raw/compressedDepth/parameter_updates
/ardrone/front/image_raw/theora
/ardrone/front/image_raw/theora/parameter_descriptions
/ardrone/front/image_raw/theora/parameter_updates
/ardrone/front/parameter_descriptions
/ardrone/front/parameter_updates
/clock
/gazebo/link_states
/gazebo/model_states
/gazebo/parameter_descriptions
/gazebo/parameter_updates
/gazebo/set_link_state
/gazebo/set_model_state
/ground_truth/state
/ground_truth_to_tf/euler
/ground_truth_to_tf/pose
/joint_states
/rosout
/rosout_agg
/tf
/tf_static

When I publish to takeoff and do rostopic list I can see that /ardrone/takeoff gets added rosnode list gives me:

/gazebo
/ground_truth_to_tf
/robot_state_publisher
/rosout

I am using ROS kinetic, but couldn't find good installations for it so I ended up installing indigo things. I didn't manage to install the ardrone_helpers but I understand that it isn't compulsory. Otherwise I did the installation from the ros website. The way I figure it I a publishing but the node for the drone is not subscribed to that topic for some reasen

I have spent more than 10 hourse trying to figure out what I did wrong and I got nothing, any help would be greatly appriciated.

edit retag flag offensive close merge delete

Comments

Where did you install tum_simulator from? The one listed in the wiki is for Hydro. Many packages for Indigo may work on Kinetic but there's no guarantees. You're best bet is to use the correct version of the package for your version of ROS (although I don't know of tum_simulator for Kinetic).

jayess gravatar image jayess  ( 2017-08-28 08:39:22 -0600 )edit
1
jayess gravatar image jayess  ( 2017-08-28 08:40:25 -0600 )edit

I went back through my posts and saw that I forgot to update, so for anyone looking in the future I did end up using: https://github.com/angelsantamaria/tu... which is what was mentioned in jayess's link, Thanks!

oha gravatar image oha  ( 2018-03-13 01:47:31 -0600 )edit

@oha if my answer solved your problem then please click the check mark to mark it as correct.

jayess gravatar image jayess  ( 2018-03-13 01:58:42 -0600 )edit

I cant find a check mark next to a comment.. I only found an up arrow, is that what you meant? I am very sorry about this, I am trying to get better at using forums and contributing but am still struggling a bit..

oha gravatar image oha  ( 2018-03-13 02:03:58 -0600 )edit

No worries. The check mark is next to the answer.

jayess gravatar image jayess  ( 2018-03-13 03:33:01 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-03-13 03:35:02 -0600

jayess gravatar image

The answer in this link may help you: https://answers.ros.org/question/2516...

edit flag offensive delete link more
0

answered 2017-09-18 10:24:26 -0600

mahe_antoine gravatar image

Hi,

It may be a problem with some missing or otherwise not working packages. tum simulator works with the hector packages. It is almost the same problem as this one but with an other package.

After having this sort of issue severals times I installed them all sudo apt install ros-kinetic-hector-* (for ROS kinetic).

To check if your problem is a matter of topic communication you may look at the log. The quadrotor state controller of the tum_simulator write a ros log of level INFO in the callback of its takeoff topic :

[ INFO] [1505746145.506239434, 678.070000000]: 
Quadrotor takes off!!

hope it helps

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-08-28 06:25:11 -0600

Seen: 774 times

Last updated: Mar 13 '18