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
<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> |
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 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) |
NewerOlder