This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kill -9 $(ps -ef | grep -v grep | grep python | awk '{print $2}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -y libglib2.0-0 libsm-dev libxrender-dev libxext-dev libgl1-mesa-dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ipython notebook --no-browser --port=8080 --ip=0.0.0.0 --allow-root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_CXX_STANDARD 14) | |
find_package(OpenMP) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") | |
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") | |
set(SOURCE_FILES main.cpp) | |
add_executable(main ${SOURCE_FILES}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_CXX_STANDARD 14) | |
find_package(OpenMP) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") | |
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") | |
set(SOURCE_FILES main.cpp) | |
add_executable(main ${SOURCE_FILES}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RosNode(Node): | |
def __init__(self, node_name: str=None): | |
if node_name is not None: | |
self._node_name = node_name | |
super(RosNode, self).__init__(node_name) | |
self.get_logger().info( | |
f'Node: {node_name} registered') | |
@classmethod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
# from: https://stackoverflow.com/questions/37951631/how-to-find-the-intersection-points-of-a-straight-line-and-a-curve-like-set-of-t | |
A = np.random.random((20, 2)) | |
A[:,0] = np.arange(20) | |
A[:,1] = A[:,1] * (7.5 + A[:,0]) # some kind of wiggly line | |
p0 = [-1.0,-6.5] # point 0 | |
p1 = [22.0, 20.0] # point 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appnope | |
attrs | |
autopep8 | |
cached-property | |
coloredlogs | |
cycler | |
decorator | |
humanfriendly | |
ipython | |
ipython-genutils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#! -*- coding: utf-8 -*- | |
import os | |
import sys | |
import random | |
import numpy as np | |
import cv2 as cv | |
from imgaug import augmenters | |
from sklearn.model_selection import train_test_split |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<launch> | |
<arg name="manager" default="local_manager" /> | |
<arg name="depth" default="/camera/depth_registered/image_raw" /> | |
<arg name="camera_info" default="/camera/depth_registered/camera_info"/> | |
<node pkg="nodelet" type="nodelet" args="manager" | |
name="$(arg manager)" output="screen"/> | |
<group ns="head" > |