Skip to content

Instantly share code, notes, and snippets.

View Manojbhat09's full-sized avatar

Manoj Bhat Manojbhat09

View GitHub Profile
@Manojbhat09
Manojbhat09 / VTK_build_in_ec2_ubuntu.sh
Last active May 3, 2020 02:16
Building VTK is sometimes difficult, and finding the right flags is cumbersome. This is a general quick build gist
sudo apt install cmake libavcodec-dev libavformat-dev libavutil-dev libboost-dev libdouble-conversion-dev libeigen3-dev libexpat1-dev libfontconfig-dev libfreetype6-dev libgdal-dev libglew-dev libhdf5-dev libjpeg-dev libjsoncpp-dev liblz4-dev liblzma-dev libnetcdf-dev libnetcdf-cxx-legacy-dev libogg-dev libpng-dev libpython3-dev libqt5opengl5-dev libqt5x11extras5-dev libsqlite3-dev libswscale-dev libtheora-dev libtiff-dev libxml2-dev libxt-dev qtbase5-dev qttools5-dev zlib1g-dev
git clone https://gitlab.kitware.com/vtk/vtk.git VTK
cd vtk
git checkout v8.2.0
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/vtk-inst \
-DCMAKE_INSTALL_RPATH=$HOME/vtk-inst \
-DVTK_Group_Qt=ON \
-DVTK_QT_VERSION=5 \
@Manojbhat09
Manojbhat09 / convert_argo_to_kitti.py
Created April 29, 2020 19:29
Convert Argoverse format to KITTI
# Converting the ply files into the bin files
import sys
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages')
print("removed ros")
import pyntcloud
import numpy as np
import glob
import pdb