Skip to content

Instantly share code, notes, and snippets.

View LimHyungTae's full-sized avatar
๐ŸŽฏ
Focusing on the next paper!

Hyungtae Lim LimHyungTae

๐ŸŽฏ
Focusing on the next paper!
View GitHub Profile
#include <pcl/filters/random_sample.h>
pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud_;
pcl::PointCloud<pcl::PointXYZRGB>::Ptr track_cloud(new pcl::PointCloud<pcl::PointXYZRGB>);
pcl::RandomSample <pcl::PointXYZRGB> random;
random.setInputCloud(cloud_);
random.setSeed (std::rand ());
random.setSample((unsigned int)(100));
@phausamann
phausamann / complementary_filter.py
Created November 19, 2018 09:41
IMU orientation estimation with complementary filter
import numpy as np
from scipy.signal import filtfilt, butter
from quaternion import quaternion, from_rotation_vector, rotate_vectors
def estimate_orientation(a, w, t, alpha=0.9, g_ref=(0., 0., 1.),
theta_min=1e-6, highpass=.01, lowpass=.05):
""" Estimate orientation with a complementary filter.
Fuse linear acceleration and angular velocity measurements to obtain an
@dongbum
dongbum / cmake-tutorial.md
Created September 25, 2019 17:38 — forked from luncliff/cmake-tutorial.md
CMake ํ• ๋•Œ ์ชผ์˜ค์˜ค๊ธˆ ๋„์›€์ด ๋˜๋Š” ๋ฌธ์„œ

CMake๋ฅผ ์™œ ์“ฐ๋Š”๊ฑฐ์ฃ ?
์ข‹์€ ํˆด์€ Visual Studio ๋ฟ์ž…๋‹ˆ๋‹ค. ๊ทธ ์ด์™ธ์—๋Š” ์ „๋ถ€ ์‚ฌ๋„(้‚ช้“)์ž…๋‹ˆ๋‹ค ์‚ฌ๋„! - ์ž‘์„ฑ์ž

์ฃผ์˜

  • ์ด ๋ฌธ์„œ๋Š” CMake๋ฅผ ์ฃผ๊ด€์ ์œผ๋กœ ์„œ์ˆ ํ•ฉ๋‹ˆ๋‹ค
  • ์ด ๋ฌธ์„œ๋ฅผ ํ†ตํ•ด CMake๋ฅผ ์‹œ์ž‘ํ•˜๊ธฐ์—” ์ ํ•ฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค
    https://cgold.readthedocs.io/en/latest/ 3.1 ์ฑ•ํ„ฐ๊นŒ์ง€ ๋”ฐ๋ผํ•ด๋ณธ ์ดํ›„ ๊ธฐ๋ณธ์‚ฌํ•ญ๋“ค์„ ์†์„ฑ์œผ๋กœ ์ตํžˆ๋Š” ๊ฒƒ์„ ๋•๊ธฐ์œ„ํ•œ ๋ณด์กฐ์ž๋ฃŒ๋กœ์จ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค
@p3jitnath
p3jitnath / install-docker.sh
Last active December 21, 2024 09:19
Docker and Nvidia Docker installation in Ubuntu 20.04 LTS
# WARNING : This gist in the current form is a collection of command examples. Please exercise caution where mentioned.
# Docker
sudo apt-get update
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
docker --version
@LimHyungTae
LimHyungTae / ubuntu_setup.sh
Last active April 20, 2024 14:43
2023 version of ubuntu 20.04 setting (only Korean Available)
# First, CUDA and its driver should be installed
# for saving time
# 1. Set off the nouveau
# (reference: https://support.huawei.com/enterprise/de/doc/EDOC1100165479/93fe5683/how-to-disable-the-nouveau-driver-for-different-linux-systems)
a) Create the /etc/modprobe.d/blacklist-nouveau.conf file and add the following information to the file.
```
blacklist nouveau
options nouveau modeset=0
```