This file contains hidden or 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 script prepares your machine for computer vision challenges (with NVIDIA). | |
# Tested with Ubuntu 20.04 LTS and NVIDIA GeForce GTX 1070 (Aorus Gaming Box enclosure). | |
# Reddit post: https://www.reddit.com/r/eGPU/comments/io94qq/linux_aorus_gaming_box_for_robotics_and_computer/ | |
# | |
# The script does the following: | |
# * Installs NVIDIA driver | |
# * Installs NVIDIA CUDA Toolkit (`nvcc`) | |
# * Installs NVIDIA CUDA Deep Neural Network library (cuDNN) | |
# * Installs OpenCV with CUDA support (WIP) | |
# * Installs TensorFlow with CUDA support |
This file contains hidden or 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
#VRML_SIM R2020b utf8 | |
WorldInfo { | |
info [ | |
"The model of the e-puck 2 robot" | |
] | |
title "e-puck simulation" | |
coordinateSystem "NUE" | |
} | |
Viewpoint { | |
orientation 0.04913069345659068 0.9922428678493876 0.11419398479121845 3.8679 |
This file contains hidden or 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
""" | |
Converts LabelMe annotations to annotations compatible with YOLO. | |
The script does the following: | |
- cleans (!) the output directory and prepare it for training, | |
- splits the dataset on validation and training, | |
- converts all LabelMe annoations (*.json) to YOLO annoations (*.txt) and | |
- creates YOLO metadata (`.data`, `.names`, `train.txt` and `valid.txt`) | |
""" | |
import os |
This file contains hidden or 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
# pip3 install pyserial | |
import time | |
import serial | |
import rclpy | |
import threading | |
from rclpy.node import Node | |
from std_msgs.msg import Int32 | |
This file contains hidden or 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
# Quick start | |
# Install dependencies: pip3 install rosinstall_generator vcstool colcon-common-extensions; sudo -H pip3 install rosdep | |
# Install the script: curl https://gist.githubusercontent.com/lukicdarkoo/d03196b15367b804b27c142dad8644e9/raw/503201cc3b2a86c61dfb4f3cf1cc761cbc096bff/rospm.sh >> $HOME/.bashrc; exec bash | |
rospm-install() { | |
# This tool combines `rosinstall_generator`, `vcs` and `colcon` to | |
# easily install package in a custom ROS workspace | |
# Set default parameters | |
PACKAGE_NAME=$1 |
This file contains hidden or 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
#include <inttypes.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <assert.h> | |
#include <string.h> | |
const char PROPRIETARY = 'P'; | |
const char MANUFACTURER_IDENTIFIER[] = "UWV"; | |
#define NMEA0183_OUT_OF_RANGE -1 |
This file contains hidden or 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
// Reference: https://www.geeksforgeeks.org/hamming-code-in-computer-network/ | |
#include <inttypes.h> | |
#include <stdio.h> | |
#include <assert.h> | |
#define PRINT_BITS(x) \ | |
for (int i = sizeof(x) << 3; i; i--) \ | |
putchar('0' + (((x) >> (i - 1)) & 1)); \ |
This file contains hidden or 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
#include "circbuff.h" | |
void circbuff_init(circbuff_t *circbuff) { | |
circbuff->end_bit = 0; | |
circbuff->end_byte = 0; | |
circbuff->start_bit = 0; | |
circbuff->start_byte = 0; | |
} | |
uint8_t circbuff_size(circbuff_t *circbuff) { |
This file contains hidden or 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
import sys | |
import time | |
import smtplib | |
import logging | |
from pyquery import PyQuery | |
from requests_html import HTMLSession | |
logging.basicConfig(filename='isa.log', format='[%(asctime)s] %(message)s', filemode='w', level=logging.INFO) | |
logger = logging.getLogger('isa') |
This file contains hidden or 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
import re | |
from functools import reduce | |
def nmea0183_create(arguments, proprietary='P', manufacturer_identifier='UWV'): | |
""" | |
Create NMEА0183 sentence | |
Parameters | |
---------- |