alias squeue_job="squeue -o \"%.7i %.9P %.100j %.8u %.2t %.10M %.6D %R\""
This file contains 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 | |
import cv2 | |
img = np.zeros((480,640)) | |
img[(300,100)] = 1 | |
# img[(400,490)] = 1 | |
img_final = img.copy() | |
indices = np.column_stack(np.where(img > 0)) | |
cv2.imshow("img", img) |
[image]
width
640
height
480
[narrow_stereo]
http://answers.ros.org/question/234322/linker-error-on-ros-kinetic-ubuntu-1604/ use clang with ROS kinetic + Ubuntu 16.04
/tmp/ccEiMrO7.s: Assembler messages:
/tmp/ccEiMrO7.s:1533: Error: unknown mnemonic pause' --pause'
/tmp/ccEiMrO7.s:1857: Error: unknown mnemonic pause' --pause'
/tmp/ccEiMrO7.s:2204: Error: unknown mnemonic pause' --pause'
/tmp/ccEiMrO7.s:2679: Error: unknown mnemonic pause' --pause'
/tmp/ccEiMrO7.s:4226: Error: unknown mnemonic pause' --pause'
/tmp/ccEiMrO7.s:5069: Error: unknown mnemonic pause' --pause'
/tmp/ccEiMrO7.s:5320: Error: unknown mnemonic pause' --pause'
/tmp/ccEiMrO7.s:5441: Error: unknown mnemonic pause' --pause'
install ROS -> https://github.com/jetsonhacks/installROSTX2/blob/master/installROS.sh
you need tf, and angle packages http://answers.ros.org/question/191730/how-can-i-get-both-tf-and-tf2-working-in-ros/
sudo apt-get intsall ros-kinetic-tf*
sudo apt-get install ros-kinectic-angles
At some point, you'll get this error
This file contains 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
from keras.models import Sequential | |
from keras.layers.core import Flatten, Dense, Dropout | |
from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D | |
from keras.optimizers import SGD | |
from keras.layers import Activation | |
from keras.layers.normalization import BatchNormalization | |
import cv2, numpy as np | |
def build_model(): | |
model = Sequential() |
mean = [5;5;10];
sigma = [6 -3 0; -3 6 0; 0 0 10];
no_of_samples = 100000;
samples = mvnrnd(mean, sigma, no_of_samples);
covariances = cov(samples);
[v, D, W] = eig(covariances);
v(:,1)
D(1,1)
http://stackoverflow.com/questions/12075371/cmake-find-library-custom-library-location this did it after n number of wasted minutes