Skip to content

Instantly share code, notes, and snippets.

@curtkim
curtkim / vscode.md
Created October 29, 2020 02:30
vscode
@curtkim
curtkim / Dockerfile
Created July 19, 2020 23:45
stereo-rcnn
FROM tiangolo/python-machine-learning:cuda9.1-devel-python3.6
RUN conda install pytorch=1.0.0 cuda90 -c pytorch
RUN conda install torchvision -c pytorch
WORKDIR /app
COPY . /app
RUN pip install -r requirements.txt
RUN cd lib && python setup.py build develop
RUN cd /app
@curtkim
curtkim / RouteConfig.h
Created March 29, 2020 03:22
ros dynamic config
//#line 2 "/opt/ros/kinetic/share/dynamic_reconfigure/cmake/../templates/ConfigType.h.template"
// *********************************************************
//
// File autogenerated for the map_manager package
// by the dynamic_reconfigure package.
// Please do not edit.
//
// ********************************************************/
#ifndef __map_manager__ROUTECONFIG_H__
@curtkim
curtkim / gist:1567de47e8937e51891cfaa1ddad9e40
Created March 26, 2020 01:40
source /opt/ros/kinetic/setup.sh
ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/opt/ros/kinetic/share
ROS_MASTER_URI=http://localhost:11311
ROS_PYTHON_VERSION=2
ROS_VERSION=1
LD_LIBRARY_PATH=/opt/ros/kinetic/share/euslisp/jskeus/eus//Linux64/lib:/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu
PATH=/opt/ros/kinetic/share/euslisp/jskeus/eus//Linux64/bin:/opt/ros/kinetic/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ARCHDIR=Linux64
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=kinetic
@curtkim
curtkim / test.py
Created March 8, 2020 21:45
carla
import glob
import os
import sys
try:
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
sys.version_info.major,
sys.version_info.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
except IndexError:
@curtkim
curtkim / node.cc
Last active February 21, 2020 07:58
apollo bridge
#include "modules/drivers/proto/sensor_image.pb.h"
#include "modules/drivers/proto/pointcloud.pb.h"
#include "modules/drivers/gnss/proto/imu.pb.h"
void Node::publish(const std::string& channel, const std::string& data)
{
auto writer = writers.find(channel);
if (writer == writers.end())
{
@curtkim
curtkim / start
Last active February 13, 2020 05:37
apollo
./bazel-bin/cyber/tools/cyber_monitor/cyber_monitor
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/local/Qt5.5.1/5.5/gcc_64/plugins
./bazel-bin/modules/tools/visualizer/cyber_visualizer
@curtkim
curtkim / first.py
Created December 31, 2019 00:17
carla
import carla
import random
import time
def main():
actor_list = []
# In this tutorial script, we are going to add a vehicle to the simulation
# and let it drive in autopilot. We will also create a camera attached to
--- uvc_camera
roscd uvc_camera
roslaunch launch/usb_cam-test.launch
--- play
from https://answers.ros.org/question/72202/how-to-playback-pointcloud-in-rviz-which-was-recorded-using-rosbag/
// BEFORE starting rviz
gst-launch-1.0 videotestsrc
! videoscale add-borders=true envelope=4
! textoverlay text=ABC font-desc="sans bold 30"
! videocrop top=100
! videoflip method=vertical-flip
! videoscale ! video/x-raw,width=178,height=100
! ximagesink
gst-launch-1.0 v4l2src
! videoscale ! video/x-raw,width=800,height=600