Skip to content

Instantly share code, notes, and snippets.

View aemarkov's full-sized avatar

Markov Alex aemarkov

View GitHub Profile
@aemarkov
aemarkov / adder-subtractor.ipynb
Last active April 5, 2020 15:16
Adder-subtractor circuit model with carry/borrow in and condition flags
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aemarkov
aemarkov / velodyne_zed_record.launch
Created January 30, 2020 13:17
ROS .launch-file to record bag with pointcloud from Velodyne LiDAR with SLAM using ZED-camera
<?xml version="1.0"?>
<launch>
<arg name="is_record_odom" default="true"/>
<arg name="is_record_velodyne" default="true"/>
<arg name="bags_directory" value="/home/nvidia/bags"/>
<!-- ZED-camera SLAM -->
<include file="$(find zed_wrapper)/launch/zed.launch" if="$(eval is_record_odom)"/>
<!-- LiDAR -->
@aemarkov
aemarkov / texture-generator.ipynb
Created November 5, 2019 17:00
texture-generator.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aemarkov
aemarkov / PID_controller.cs
Created July 28, 2019 16:07
Simple implementation of the PID-controller on C#
class PID <T>
{
private float _kGain; // P (пропорциональный) коэффициент
private float _iGain; // I (интегральный) коэффициент
private float _dGain; // D (дифференциальный) коэффициент
private T _dState; // Значение с предыдущего шага, используется для вычисления D-составляющей
private T _iSTate; // Накопленная ошибка, используется для вычисления I-составляющей
private T _iMax; // Минимальное и максимальное значение накопленной ошибки, чтобы
private T _iMin; // она не улетела куда-то очень далеко
1. Хранить статьи
1.1. Хранить все поля библиографического описания, которые только есть
1.2. Хранить ссылки на цитируемые статьи
1.3. Хранить теги
1.4. Как хранить?
a. Plain text BiBTeX
b. JSON
c. SQL
2. Добавлять статьи
2.1. Вставлять BiBTeX, если он доступен
@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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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.

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

my_package\
	scripts\
		common\
			helper.py
		node_a\
			node_a.py
			wtf.py
		node_b\