Skip to content

Instantly share code, notes, and snippets.

View michalpelka's full-sized avatar

Michał Pełka michalpelka

View GitHub Profile
#include <iostream>
#include <helper_image.h>
#include <cuda_runtime.h>
#include <cuda.h>
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <helper_cuda_gl.h>
unsigned int width=0;
# Copyright (c) 2011-2014 NVIDIA CORPORATION. All Rights Reserved.
#
# This is the minimal configuration necessary to use the Tegra driver.
# Please refer to the xorg.conf man page for more configuration
# options provided by the X server, including display-related options
# provided by RandR 1.2 and higher.
# Disable extensions not useful on Tegra.
Section "Module"
cmake_minimum_required(VERSION 2.8.3)
project(testproject)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
# Find the QtWidgets library
find_package(Qt5Widgets)
float dd0 = v0[0]*v0[0]+v0[1]*v0[1]+v0[2]*v0[2];
float dd1 = v1[0]*v1[0]+v1[1]*v1[1]+v1[2]*v1[2];
float dd2 = v2[0]*v2[0]+v2[1]*v2[1]+v2[2]*v2[2];
float fi0 = atan2f(tr->tv0[1],tr->tv0[0]);
float fi1 = atan2f(tr->tv1[1],tr->tv1[0]);
float fi2 = atan2f(tr->tv2[1],tr->tv2[0]);
f=mp4 hq=1 acodec=libmp3lame ab=128k ar=48000 pix_fmt=yuv420p vcodec=libx264 minrate=0 b=4000k b_strategy=1 subcmp=2 cmp=2 coder=1 flags=+loop flags2=dct8x8 qmax=51 subq=7 qmin=10 qcomp=0.6 qdiff=4 trellis=1 aspect=%dar threads=0 crf=22
#include <boost/asio/serial_port.hpp>
#include <boost/asio.hpp>
using namespace boost;
#include <boost/asio/serial_port.hpp>
#include <boost/bind.hpp>
#ifndef WINDOWS
#include <termios.h>
cmake_minimum_required(VERSION 2.8)
#SET(CMAKE_BUILD_TYPE Debug)
PROJECT(boost_serial_test)
#########################################################
# FIND BOOST
#########################################################
find_package(Boost COMPONENTS system thread filesystem date_time locale REQUIRED)
link_directories(${Boost_LIBRARY_DIRS})
from math import sin, cos, atan2, pi, fabs
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse
def ellipe_tan_dot(rx, ry, px, py, theta):
'''Dot product of the equation of the line formed by the point
with another point on the ellipse's boundary and the tangent of the ellipse
at that point on the boundary.
'''
return ((rx ** 2 - ry ** 2) * cos(theta) * sin(theta) -

Resolved problems

Cheap shit-like ST-link 💩

  • In Debug Configuration please set 'Reset Mode' to value 'Software System Reset'

KSZ8863FLL

import rosbag
from tqdm import tqdm
from os.path import basename
bagFileName="3velo_2018-07-28-10-00-18_nocam.bag"
bagIn = rosbag.Bag(bagFileName, 'r')
bagOut = rosbag.Bag(basename(bagFileName)+"_noekf.bag", 'w')
tot = bagIn.get_message_count()
for topic, msg, t in tqdm(bagIn.read_messages(), total=tot):