2016-11-27から1日間の記事一覧

URDFのチュートリアル

http://wiki.ros.org/urdf/Tutorials

ROSでロボットアームを動かす

test_robot.urdf <robot name="test_robot"> <material name="black"> <color rgba="0.0 0.0 0.0 1.0" /> </material> <material name="orange"> <color rgba="1.0 0.4 0.0 1.0" /> </material> <link name="base"/> <joint name="fixed" type="fixed"> <parent link="base" /> </parent></joint></link></robot>

CUDAを試してみる

http://www.gdep.jp/page/view/251matrix_cpu.c #include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <time.h> /*n正方行列のサイズを定義*/ #define MATRIX_SIZE 1024 int main(int argc, char** argv){ unsigned int col_idx, row_idx, scan_idx; int* matA; int* matB; int* </time.h></malloc.h></stdlib.h></stdio.h>…

連立方程式の反復法(陰解法)について

ヤコビ法 function jacobi % dim = 10; % A = reshape(rand(dim),[dim,dim]); % b = rand(dim,1); A= [10 3 1 2 1 1 19 2 -1 5 -1 1 30 1 10 -2 0 1 20 5 -3 5 1 -2 25]; b = [-22 27 89 -73 22]'; % x = A\b [L,D,U] = decomposeLDU(A); % testLDU(L,D,U); …

macOS SierraでCUDAを使う

kynotebook.xyz/2016/09/21/nvccエラーXcode8ではなく、Xcode7をインストールする必要があるらしい