Skip to content

Instantly share code, notes, and snippets.

View Kyungpyo-Kim's full-sized avatar
๐Ÿ˜

Kyungpyo Kim Kyungpyo-Kim

๐Ÿ˜
View GitHub Profile
@Kyungpyo-Kim
Kyungpyo-Kim / webots_tutorial.md
Last active May 12, 2018 00:24
Webots environment setup tutorial

Webots Tutorial

Reference

์ค€๋น„๋ฌผ

  • Webots
@Kyungpyo-Kim
Kyungpyo-Kim / env.md
Created May 10, 2018 07:11
#! /usr/bin/env python ์— ๋Œ€ํ•œ ์„ค๋ช…
@Kyungpyo-Kim
Kyungpyo-Kim / webots_simulation.md
Last active May 17, 2018 05:15
Webots simulation

Webots simulation ์‚ฌ์šฉ๋ฐฉ๋ฒ•

  • ๊ฐœ๋ฐœ ํ™˜๊ฒฝ Setup

    source $HOME/webots_ros/devel/setup.bash
    
  • Simulation node ์‹คํ–‰

@Kyungpyo-Kim
Kyungpyo-Kim / make_dir.md
Last active May 12, 2018 00:16
WINDOWS/UNIX์—์„œ ๋””๋ ‰ํ† ๋ฆฌ ์•Œ์•„์„œ ์ƒ์„ฑํ•ด์ฃผ๋Š”(PATH๋งŒ ๊ฐ€์ง€๊ณ ) ์ฝ”๋“œ

์œˆ๋„์šด ๋ฒ„์ „

code

void MakeDirectory(char *full_path)
{
   char temp[256], *sp;
   strcpy(temp, full_path);    // ๊ฒฝ๋กœ๋ฌธ์ž์—ด์„ ๋ณต์‚ฌ
   sp = temp;                  // ํฌ์ธํ„ฐ๋ฅผ ๋ฌธ์ž์—ด ์ฒ˜์Œ์œผ๋กœ
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
from sensor_msgs.msg import PointCloud2
import sensor_msgs.point_cloud2 as pc2
class SubscribePointCloud(object):
def __init__(self):
@Kyungpyo-Kim
Kyungpyo-Kim / python_ver_chage.md
Created May 18, 2018 10:21
Python version change in Ubuntu
@Kyungpyo-Kim
Kyungpyo-Kim / catkin_make_error.md
Last active September 21, 2018 01:22
ROS ๊ด€๋ จ
@Kyungpyo-Kim
Kyungpyo-Kim / check_polygon_intersection.py
Last active August 5, 2018 11:21
Check intersection of the polygons
# numpy
import numpy as np
# matplotlib
import matplotlib.pyplot as plt
# test case
@Kyungpyo-Kim
Kyungpyo-Kim / union_find.py
Created August 5, 2018 08:08
Union-Find in Python
class UnionFind:
"""Weighted quick-union with path compression.
The original Java implementation is introduced at
https://www.cs.princeton.edu/~rs/AlgsDS07/01UnionFind.pdf
>>> uf = UnionFind(10)
>>> for (p, q) in [(3, 4), (4, 9), (8, 0), (2, 3), (5, 6), (5, 9),
... (7, 3), (4, 8), (6, 1)]:
... uf.union(p, q)
@Kyungpyo-Kim
Kyungpyo-Kim / PCL_Installation.md
Created August 16, 2018 05:15
PCL installation

PCL 1.7.2 and Ubuntu16.04 (use Debian package)

Install PCL Module.?

sudo apt-get update -y

sudo apt-get install build-essential devscripts

dget -u https://launchpad.net/ubuntu/+archive/primary/+files/pcl_1.7.2-14ubuntu1.16.04.1.dsc