Added the possibility to have simulations with multiple UAVs#9
Conversation
|
that is great! but i have a question that how can i controll them. |
|
Publish to topics for each namespace corresponding to what you want each Akila Ganlath
|
|
thank you. But when i put the code in the terminal: rostopic pub -1 /ardrone_1/takeoff std_msgs/Empty ,the adrone_1 can't takeoff. |
|
Hi, Nicola 2016-08-23 7:35 GMT+02:00 sssmile2020 notifications@github.com:
|
|
thank you. you are great. I hope I can keep learning to you. how can i set a goal and path that the drone can accomplish it autonomously? |
|
You will need to design a controller that does this, or use some prebuilt Akila Ganlath
|
|
Thank you. Can i find the controllers and modify the code in the tum_simulator ? |
|
You should contact The University of Munich to verify their license is Akila Ganlath
|
|
It's a good idea. I will have a try. And i have a problem that tum_simulator for indigo doesn't suit for kinetic. what should i do? |
|
You'll need to develop within indigo or make changes to tum_simulator that Akila Ganlath
|
|
I was wondering why this branch hasn't been merged with the original ? |
|
Yes, the implementations are correct (I tested myself). Problably it has not been merged because this project is partially outdated and abandoned. |
|
Thanks for that information @pulver22 , I will try the code myself. Just one more question, could these changes work in ROS kinetic ? |
|
They partially do. Otherwise you can go on my profile and use the repo called QLab, it's basically a reworking of tum_simulator for Kinetic plus a couple of things I needed for myself. |
|
@pulver22 , thanks a lot for that. I will check out your repo soon. |
|
I could spawn multiple drones but cannot control them.They move for a while and later spin and flip randomly. |
|
@basti35 I followed your repository with multiple drones and successfully launched the environment. But, I am not able to get the camera stream from the respective drone cameras. And also, rostopic echo /ardrone_1/camera_ info shows |
|
Hello, I'm having trouble when I recompile the environment after the modifications. A method is not recognized, and shows up this: catkin_ws/src/tum_simulator/cvg_sim_gazebo_plugins/src/quadrotor_state_controller.cpp:65:90: error: ‘class sdf::Element’ has no member named ‘GetValueString’ catkin_ws/src/tum_simulator/cvg_sim_gazebo_plugins/src/quadrotor_simple_controller.cpp:87:90: error: ‘class sdf::Element’ has no member named ‘GetValueString’ Anyone had this problem too? How to resolve? Because I tried to remove that function but gives error too. Also, when I try to takeoff a ardrone for example "rostopic pub -1 /ardrone_2/takeoff std_msgs/Empty", it doesn't takeoff. I have already tried other combinations but it doesn't work too! |
hi , i have the same probleme, and i try everything , it didn't correct, did u figure it out ? |
hi ,for ur problem the GetValueString() replace it with Getstd::string() , shoud work for u |
Hello, thank for ur help! I changed GetValueStrig() for Get < std::string > () and worked! |
I had to use the tum_simulator with more drones, each with its own namespace. Thus I had to change the absolute frame and topic names into relative ones.
There is a demo (cvg_sim_gazebo/launch/testworld_with_three_ardrone.launch) if you want to try it.
Nicola