Skip to content

Instantly share code, notes, and snippets.

View jolesinski's full-sized avatar

Jakub Olesiński jolesinski

View GitHub Profile
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Plugin 'gmarik/vundle'
Plugin 'scrooloose/nerdtree.git'
Plugin 'scrooloose/nerdcommenter.git'
Plugin 'Xuyuanp/nerdtree-git-plugin.git'
Plugin 'jeetsukumaran/vim-buffergator.git'
@jolesinski
jolesinski / hough3d.cpp
Last active August 31, 2016 11:47
Hough3dGrouping returns improper rotation matrices
using Pose = Eigen::Matrix4f;
using Poses = std::vector<Pose, Eigen::aligned_allocator<Pose>>;
pcl::Hough3DGrouping<pcl::PointXYZRGBA, pcl::PointXYZRGBA> clusterer;
clusterer.setHoughBinSize (.03);
clusterer.setHoughThreshold (5);
clusterer.setUseInterpolation (true);
clusterer.setUseDistanceWeight (false);
clusterer.setInputCloud (model.keypoints_);
@jolesinski
jolesinski / afterformat.sh
Last active May 5, 2023 04:45
Setup NVIDIA, CUDA, OpenNI2, PCL on Lenovo Y50-70
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y
## NVIDIA
sudo add-apt-repository ppa:graphics-drivers/ppa && sudo add-apt-repository ppa:bumblebee/stable && sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia virtualgl primus -y
sudo apt-get install nvidia-352-updates nvidia-settings-352-updates -y
sudo sed -i -- 's/quiet splash/quiet splash i915.modeset=1/g' /etc/default/grub
sudo sed -i -- 's/^Driver=/Driver=nvidia/g' /etc/bumblebee/bumblebee.conf
sudo sed -i -- 's/nvidia-current/nvidia-352/g' /etc/bumblebee/bumblebee.conf
sudo sed -i -- 's/331/352/g' /etc/modprobe.d/bumblebee.conf
@jolesinski
jolesinski / diff.txt
Created December 22, 2014 11:36
pcl_kinfu_app for NVIDIA Jetson TK1 - git diff to PCL trunk
diff --git a/cmake/pcl_find_cuda.cmake b/cmake/pcl_find_cuda.cmake
index 2f0425e..765f8aa 100644
--- a/cmake/pcl_find_cuda.cmake
+++ b/cmake/pcl_find_cuda.cmake
@@ -35,7 +35,7 @@ if(CUDA_FOUND)
# Find a complete list for CUDA compute capabilities at http://developer.nvidia.com/cuda-gpus
if(${CUDA_VERSION_STRING} VERSION_GREATER "4.1")
- set(CUDA_ARCH_BIN "2.0 2.1(2.0) 3.0" CACHE STRING "Specify 'real' GPU architectures to build binaries for, BIN(PTX) format is supported")
+ set(CUDA_ARCH_BIN "2.0 2.1(2.0) 3.0 3.2 5.0 5.2" CACHE STRING "Specify 'real' GPU architectures to build binaries for, BIN(PTX) format is supported")