Skip to content

Instantly share code, notes, and snippets.

View aemarkov's full-sized avatar

Markov Alex aemarkov

View GitHub Profile
@aemarkov
aemarkov / planner.md
Created June 18, 2017 23:21
Вероятностный планер грубой оценки

Вероятностный планер грубой оценки

Планировщик маршрута для антропоморфного робота в условиях неизвестного окружения.

Проблема

Необходимо прокладывать маршрут в условиях более сложных, чем просто ровный пол и препятствия. Для антропоморфных роботов тут предлагают различные footstep-планнеры, которые прокладывают маршрут в виде набора шагов. По ряду причин этот метод не всегда подходит и просто не очень мне нравится:

  • Требуют от РТС возможности совершать именно эти запланированные шаги
  • Каждый следующий шаг зависит от предыдущего, если выполнение не точное, то погрешность растет
  • ???

Решение

@aemarkov
aemarkov / LoRa.md
Created September 5, 2017 06:08
Описание протокола LoRa вместе с библиотекой для модулей SX1278

Модуляция и кодирование

LoRa имеет линейную частотную модуляцию. Это означает, что частота сигнала линейно возрастает от начальной частоты f0 до конечной f1. Разность частот - bandwidth. Отдельный сигнал называется chirp (чирп).

Установка bandwidth:

void LoRa_SetSignalBandwidth(enum LoRa_Bandwidth sbw);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aemarkov
aemarkov / sparse-checkout.md
Created September 29, 2018 13:14
git sparase-checkout cheatshit

Ok, you have GIT repository somewhere with some separated parts. You want to commit them separately, maybe from different computer. So, how you can do this?

GIT SPARSE CHECKOUT, MOTHERFUCKER!

Assume your repo have some example structure:

\my_fucking_repo
  \part1
 \part2
@aemarkov
aemarkov / build_opencv_ARM_cross.md
Last active November 10, 2018 07:11 — forked from hrshovon/build_opencv_ARM_cross
Cross compile opencv3.3.0 for your raspberry pi and similar ARM devices with python support

This is a note on how to cross compile opencv for pretty much any ARM device(HardFP supported in this case) and deploy. Native compiling in ARM devices can be painfully slow and they seem to hang often during build(mine got stuck at 43%). So if you happen to have a desktop/laptop/server running ubuntu or similar linux distro, u can build opencv in fractionth of the time taken for native compiling without any issues. Building opencv3 with TBB and NEON and VFP support can boost opencv performance. Thanks to Adrian at pyimagesearch for pointing that out. Both my PC and target machine aka orange pi zero are running ubuntu 16.04 with python2.7 and python 3.5. Let us use the term "build machine" for your PC where you are building opencv and "target machine" for the ARM single board computer.

1.Run the following commands in both machines(I think installing these in target machine only would do) to install the necessary libraries etc.(mine worked with them,so they should be enough

@aemarkov
aemarkov / .zshrc
Last active November 25, 2018 11:42
export ZSH=$HOME/.oh-my-zsh
#ZSH_THEME="robbyrussell"
ZSH_THEME="agnoster"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

Короче, ты хочшеь сделать пакет ROS, где есть Python. И хочешь переиспользовать некий общий код.

my_package\
	scripts\
		common\
			helper.py
		node_a\
			node_a.py
			wtf.py
		node_b\
@aemarkov
aemarkov / motion_planner.ipynb
Last active March 12, 2019 23:36
Motion planner description
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aemarkov
aemarkov / killer_bath.txt
Created June 16, 2019 22:33
E2 script for Garry's Mod killer bath
# This is an advanced KILLER BATH
# Features:
# - precise player targeting with PID-controller
# - rotation control
# - OPTIONAL: teleport though obstacles (using ranger)
# - OPTIONAL: explode when close to the player
# (to kill players with no-clip)
@name killer_bath
@inputs
@outputs Detonate Arm TeleportPos:vector Jump Freeze