Skip to content

Instantly share code, notes, and snippets.

View Alabate's full-sized avatar

Aurélien Labate Alabate

View GitHub Profile
@Alabate
Alabate / usb-android-emulator-ubuntu.md
Last active June 20, 2023 10:48
Use custom USB device with Android emulator by using custom built kernel on Ubuntu 18.04

Use custom USB device with Android emulator by using custom built kernel on Ubuntu 18.04

The android emulator doesn't support all usb devices because they are disabled in the kernel. So we need to build it with another configuration. My goal was to build the same version as it was before, but with just configuration modifications.

Find current android version

Start the emulator without modifications, go into

Configuration > System > About emulated device > Android version

@Alabate
Alabate / rosbridge_watcher.py
Created May 1, 2019 19:01
rosbridge watcher
#!/usr/bin/env python3
import rospy
import urllib.request
import urllib.error
import socket
import os
# This is not a param to avoid param injection
# or unexpected programm killed because of a simple rosparam set with a wrong value
@Alabate
Alabate / maplab.diff
Last active December 7, 2017 09:52
ARM hack in ethz-asl/maplab
diff --git a/algorithms/loopclosure/descriptor-projection/CMakeLists.txt b/algorithms/loopclosure/descriptor-projection/CMakeLists.txt
index 3653b75..9770ff0 100644
--- a/algorithms/loopclosure/descriptor-projection/CMakeLists.txt
+++ b/algorithms/loopclosure/descriptor-projection/CMakeLists.txt
@@ -4,11 +4,16 @@ project(descriptor_projection)
find_package(catkin_simple REQUIRED)
catkin_simple()
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon")
+add_definitions("-mfpu=neon")