Difference between revisions of "AR Drone 2/Mapping"
Koudshoorn (talk | contribs) (new page about the mapping approach with the AR.Drone2) |
Koudshoorn (talk | contribs) m (typo corrections) |
||
Line 3: | Line 3: | ||
== Storing the map== | == Storing the map== | ||
For storing the map, we believe [http://octomap.sf.net/ Octomap] ([http://ais.informatik.uni-freiburg.de/publications/papers/wurm10octomap.pdf paper) | For storing the map, we believe [http://octomap.sf.net/ Octomap] ([http://ais.informatik.uni-freiburg.de/publications/papers/wurm10octomap.pdf paper]) to be a good solution. It's a datastructure to store a 3D map that is updateable, flexible and compact. One minor setback was that it was implemented in C++ instead of C. At first this seemed like a problem, but after some research it was concluded that this should be no problem. C code can easily use C++ code if a wrapper is used to link C++ methods to C ([http://stackoverflow.com/questions/199418/using-c-library-in-c-code link]). This was also tested with a smal l program: a C program that increments a number using a method of a C++ program. With this it was confirmed that it really shouldn't be a problem to use Octomap within paparazzi. | ||
== Exploring the area== | == Exploring the area== | ||
Since the AR.Drone2 will only have point measurement sensors to measure distance to objects it might be best to approach the exploring as a 2D problem and solve this at different heights. A popular approach is [http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=613851 Frontier-Based Exploration]. A summary: you store free and occupied cells, other cells are unknown, you try to find the largest frontier (the border between free and unknown cells) with the shortest travel distance from your current position. There are also variations for 3D ([http://www.informatik.uni-freiburg.de/~ki/papers/dornhege_etal_ssrr11.pdf | Since the AR.Drone2 will only have point measurement sensors to measure distance to objects it might be best to approach the exploring as a 2D problem and solve this at different heights. A popular approach is [http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=613851 Frontier-Based Exploration]. A summary: you store free and occupied cells, other cells are unknown, you try to find the largest frontier (the border between free and unknown cells) with the shortest travel distance from your current position. There are also variations for 3D ([http://www.informatik.uni-freiburg.de/~ki/papers/dornhege_etal_ssrr11.pdf paper]). But this is based on a wide range sensor (kinect) and therefore less suitable for the AR.Drone2. | ||
== Avoiding objects== | == Avoiding objects== | ||
To be able to avoid object, you need to know your surroundings. That's why the object avoidance function is closely related to mapping. Therefore it will probably be developed simultaneously. | To be able to avoid object, you need to know your surroundings. That's why the object avoidance function is closely related to mapping. Therefore it will probably be developed simultaneously. |
Revision as of 05:46, 5 December 2012
One of the functions that the AR.Drone2 should have is to be able to map a certain area (starting off with a room). In order to do this the AR.Drone2 needs to be able to: measure distance to objects, keep track of it's own position, yaw and pitch and avoid crashing into objects. The first two things are needed to create a map from measurements during flight, the third is to maintain flight. It would also be usefull to make an algorithm for the AR.Drone2 to explore the area and store the map in the most efficient way.
Storing the map
For storing the map, we believe Octomap (paper) to be a good solution. It's a datastructure to store a 3D map that is updateable, flexible and compact. One minor setback was that it was implemented in C++ instead of C. At first this seemed like a problem, but after some research it was concluded that this should be no problem. C code can easily use C++ code if a wrapper is used to link C++ methods to C (link). This was also tested with a smal l program: a C program that increments a number using a method of a C++ program. With this it was confirmed that it really shouldn't be a problem to use Octomap within paparazzi.
Exploring the area
Since the AR.Drone2 will only have point measurement sensors to measure distance to objects it might be best to approach the exploring as a 2D problem and solve this at different heights. A popular approach is Frontier-Based Exploration. A summary: you store free and occupied cells, other cells are unknown, you try to find the largest frontier (the border between free and unknown cells) with the shortest travel distance from your current position. There are also variations for 3D (paper). But this is based on a wide range sensor (kinect) and therefore less suitable for the AR.Drone2.
Avoiding objects
To be able to avoid object, you need to know your surroundings. That's why the object avoidance function is closely related to mapping. Therefore it will probably be developed simultaneously.