store informations&video flux from ar adrone 2.0
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 )
Asked by hakimROS on 2017-04-19 11:43:05 UTC
Answers
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.
Asked by rbbg on 2017-04-19 15:19:28 UTC
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 ?
Asked by hakimROS on 2017-04-19 19:52:19 UTC
The publisher should stop when you hit Ctrl + C in the terminal. This should send the INT signal and kill the node.
Asked by rbbg on 2017-04-20 02:20:45 UTC
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 ) ?
Asked by hakimROS on 2017-04-21 10:37:33 UTC
@ 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 ) ?
Asked by hakimROS on 2017-04-21 16:58:06 UTC
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.
Asked by rbbg on 2017-04-23 07:12:10 UTC
Comments