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

store informations&video flux from ar adrone 2.0

asked 2017-04-19 11:43:05 -0600

hakimROS gravatar image

Hello everyone ,

my project consist to communicate an ardrone 2.0 with ROS robot , so i am using ardrone_autonomy driver (i installed the sdk) , for the moment i can fly and control the drone also i can run the frontal camera , but i want to know how it's possible to store video flux of the drone , and store a different informations given from drone sensors , like altitud wheater , temperature ...ect into a different files for after that i will send it to robot .

can someone help me please , (sorry for my bad english )

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-04-21 16:58:06 -0600

hakimROS gravatar image

@ rbbg : when i hit ctrl+C in the terminal nothing is happen for the drone , it's stange , there is another method to use rostopic command for flying up or any other mouvement by way it's will take just 3 secondes ( like when we use command for takeoff or land ) ?

edit flag offensive delete link more

Comments

I am guessing this is happening because the drone remembers the last command and continues with that. To stop it you should probably publish a twist with all values set to 0.

rbbg gravatar image rbbg  ( 2017-04-23 07:12:10 -0600 )edit
0

answered 2017-04-19 15:19:28 -0600

rbbg gravatar image

I am not entirely sure this is what you need, but the standard tool for recording and playing back data from rostopics is rosbag. Please take a look at the rosbag tutorials tutorials for some pointers on how to use it.

I hope this answers your question.

edit flag offensive delete link more

Comments

thank you , that help me a lot , just another question : when i use rostopic commands in terminal like : rostopic pub -r 10 /cmd_vel geometry_msgs/Twist '{linear: {x: 0.0, y: 0.0, z: 1.0}, angular: {x: ....} for flying up , there are a way to stop this command ?

hakimROS gravatar image hakimROS  ( 2017-04-19 19:52:19 -0600 )edit

The publisher should stop when you hit Ctrl + C in the terminal. This should send the INT signal and kill the node.

rbbg gravatar image rbbg  ( 2017-04-20 02:20:45 -0600 )edit

when i hit ctrl+C in the terminal nothing is happen for the drone , it's stange , there is another method to use rostopic command for flying up or any other mouvement by way it's will take just 3 secondes ( like when we use command for takeoff or land ) ?

hakimROS gravatar image hakimROS  ( 2017-04-21 10:37:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-19 11:43:05 -0600

Seen: 138 times

Last updated: Apr 21 '17