Skip to content

Instantly share code, notes, and snippets.

View yossioo's full-sized avatar
🎯
Focusing

Yossi Ovcharik yossioo

🎯
Focusing
View GitHub Profile
@yossioo
yossioo / example.sdf
Created November 13, 2018 20:29
example sdf, mesh uri
<sdf version='1.6'>
<model name='r1'>
<link name='base_link'>
<pose frame=''>0 0 0 0 -0 0</pose>
<inertial>
<pose frame=''>-0.0045 0 0.0234 0 -0 0</pose>
<mass>10</mass>
<inertia>
<ixx>0.136322</ixx>
<ixy>0</ixy>
@yossioo
yossioo / gist:dfa8307551fb0113dec5dcb5172b4f15
Created January 8, 2018 12:36
stepik ImageProcessing task 2.1.5
from skimage.io import imread, imsave
import numpy as np
img = imread('img.png')
cpc = int(np.floor( float(img.shape[0])/2 ))
cpr = int(np.floor( float(img.shape[1])/2 ))
img[cpc, cpr, :] = [102, 204, 102]
imsave('out_img.png',img)