-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
100 changed files
with
2,355 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
src/drone_driver/test_dataset | ||
src/drone_driver/training_dataset | ||
src/drone_driver/prueba | ||
src/drone_driver/src/car | ||
src/drone_driver/profiling | ||
src/drone_driver/utils/*.tar | ||
src/drone_driver/src/plotFunctions/positionRecords | ||
src/drone_driver/networks | ||
drone_sim_driver/data | ||
drone_sim_driver/models | ||
drone_sim_driver/results | ||
|
||
tello_driver/data | ||
tello_driver/models | ||
tello_driver/results |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
title: "Semana 20 - Piloto remoto" | ||
categories: | ||
- Registro Semanal | ||
tags: | ||
- ROS2 | ||
- Aprendizaje Automático | ||
--- | ||
|
||
## Índice | ||
|
||
--- | ||
|
||
Durante esta semana se desarrolló un piloto remoto para poder controlar adecuadamente el drone. | ||
|
||
## Preparación de drivers para mando de ps4 | ||
|
||
1. Se instaló el driver para el mando: | ||
|
||
```bash | ||
sudo apt install ds4drv | ||
``` | ||
|
||
2. Se conectó el mando al ordenador siguiente la siguiente [página](https://ros-developer.com/2017/12/14/ps4-controller-bluetooth-ubuntu/). | ||
|
||
3. Clonamos el siguiente [repositorio](https://github.com/naoki-mizuno/ds4_driver) | ||
|
||
4. Desarrollo del controlador para la teleoperación. | ||
|
||
--- | ||
|
||
## Distribución de los botones del mando | ||
|
||
<figure class="align-center" style="width:60%"> | ||
<img src="{{ site.url }}{{ site.baseurl }}/assets/images/post20/controller.png" alt=""> | ||
<figcaption>Controles</figcaption> | ||
</figure> | ||
|
||
--- | ||
|
||
## Controlador | ||
|
||
Para programar el piloto remoto se aprovechó la facilidad de aerostack2 para intercambiar entre mundo real y mundo simulado y se desarrolló este mismo en simulación. Permitiendo desarrollar el programa mas agilmente además de poder visualizar y controlar situaciones que podrían haber puesto en peligro al drone real añadiendo mas robustez y seguridad al programa. | ||
|
||
Adiccionalmente se añadió la posibilidad de grabar y detener grabaciones de rosbags desde el mando para facilitar el control del dataset. | ||
|
||
## Filtros | ||
|
||
Al ver que el filtro de paso bajo daba buenos resultados se investigaron mas tipos de filtros para poder añadir una mayor robustez al sistema: | ||
|
||
1. **Filtro de paso bajo:** Permite el paso de frecuencias por debajo de cierto punto de corte mientras atenúa las frecuencias más altas | ||
2. **Filtro de paso Alto:** Permite el paso de frecuencias por encima de cierto punto de corte mientras atenúa las frecuencias mas bajas | ||
3. **Filtro de paso de Banda:** Permite el paso de frecuencias dentro de un rango específico. | ||
4. **Filtro de rechazo de banda:** Atenua las frecuencias dentro de un rango específico mientras permite el paso de frecuencias fuera de ese rango | ||
5. **Filtro Noch:** Suprime una frecuencia específica o un rango de frecuencias dejando pasar las que están por encima o por debajo | ||
6. **Filtro de Retaso de grupo constante:** Asegura que todas las componentes de frecuencia de una señal se retrasen por el mismo tiempo. | ||
|
||
## Drone real | ||
|
||
Ya que el código en simulación se hizo con aerostack2 se trató de seguir con este middleware. Aprovechando el cambio de plataforma se puede manejar el mismo script en distintos drones. Sin embargo al usar la plataforma surgió un fallo el cual queda reflejado en el siguiente [issue](https://github.com/aerostack2/aerostack2/issues/447). | ||
|
||
|
||
## Estandarización | ||
|
||
Otro aspecto importante es la estandarización del repositorio para que sea adecuadamente reutilizable. En el siguiente [medium](https://medium.com/analytics-vidhya/folder-structure-for-machine-learning-projects-a7e451a8caaa) se muestra esta misma estructura. | ||
|
||
<figure class="align-center" style="width:60%"> | ||
<img src="{{ site.url }}{{ site.baseurl }}/assets/images/post20/controller.png" alt=""> | ||
<figcaption>Estructura</figcaption> | ||
</figure> | ||
|
||
Dejando las siguientes mejoras a realizar en el repositorio: | ||
|
||
- [ ] References folder | ||
- [ ] Reports folder | ||
- [ ] requirements.txt | ||
- [ ] setup.py | ||
- [ ] Licencia |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
from launch import LaunchDescription | ||
from launch_ros.actions import Node | ||
from launch.substitutions import LaunchConfiguration | ||
from launch.actions import DeclareLaunchArgument | ||
|
||
namespace= "drone0" | ||
|
||
env_vars = { | ||
'AEROSTACK2_SIMULATION_DRONE_ID': namespace | ||
} | ||
|
||
def generate_launch_description(): | ||
|
||
# Arguments | ||
out_dir = DeclareLaunchArgument( | ||
'out_dir', | ||
default_value="." | ||
) | ||
|
||
trace_arg = DeclareLaunchArgument( | ||
'trace', | ||
default_value="false", | ||
description="Enable trace" | ||
) | ||
|
||
network_path = DeclareLaunchArgument( | ||
'network_path', | ||
default_value="." | ||
) | ||
|
||
filterImage = Node( | ||
package='drone_sim_driver', | ||
executable='image_filter_node.py', | ||
arguments=[ | ||
'--output_directory', LaunchConfiguration('out_dir'), | ||
'--trace', LaunchConfiguration('trace') | ||
], | ||
) | ||
|
||
control = Node( | ||
package='drone_sim_driver', | ||
executable='droneNeuralPilot.py', | ||
output='screen', | ||
arguments=[ | ||
'--output_directory', LaunchConfiguration('out_dir'), | ||
'--network_directory', LaunchConfiguration('network_path') | ||
], | ||
) | ||
|
||
return LaunchDescription([ | ||
out_dir, | ||
trace_arg, | ||
network_path, | ||
filterImage, | ||
control, | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>drone_driver</name> | ||
<name>drone_sim_driver</name> | ||
<version>1.0.0</version> | ||
<description>TODO: Driver package for drone Tello </description> | ||
<maintainer email="[email protected]">adrian</maintainer> | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.