Skip to content

Instantly share code, notes, and snippets.

@Jendker
Jendker / speed_up.py
Last active July 22, 2021 05:38
Speed up videos (x20)
'''
Files are saved in the same folder with suffix *_x<speedup_rate> and MP4 extension (this leads to faster processing)
'''
import os
import glob
import subprocess
from multiprocessing import Pool
import sys
@Jendker
Jendker / ultrasonic_sensor_publisher.c
Last active February 16, 2021 05:29
Arduino Ultrasoninc Sensor HC-SR04 with ROS publisher
// ---------------------------------------------------------------- //
// Arduino Ultrasoninc Sensor HC-SR04 with ROS publisher
// Rewritten by Jedrzej Orbik
// Using Arduino IDE 1.8.13
// ---------------------------------------------------------------- //
#include <ros.h>
#include <std_msgs/Float32MultiArray.h>
const int SENSORS_COUNT = 2;