<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>demura.net: ロボットの開発と教育 &#187; demu</title>
	<atom:link href="http://demura.net/author/demu/feed" rel="self" type="application/rss+xml" />
	<link>http://demura.net</link>
	<description>ロボット達のサッカーW杯RoboCup，つくばチャレンジ，物理計算エンジンＯＤＥと本サイトで開発している３次元描画ライブラリirrDrawStuffなどのロボット開発プラットフォームを開発者の視点で情報発信． なお，ODE本では左下動画のようなロボットシミュレータ作成法を学びます．まずは動画をクリックして体験しよう！</description>
	<lastBuildDate>Wed, 23 May 2012 03:44:27 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/author/demu/feed" />
		<item>
		<title>Windows用Pthreadインストール用メモ</title>
		<link>http://demura.net/misc/7168.html</link>
		<comments>http://demura.net/misc/7168.html#comments</comments>
		<pubDate>Tue, 22 May 2012 21:00:19 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[その他]]></category>

		<guid isPermaLink="false">http://demura.net/?p=7168</guid>
		<description><![CDATA[Linuxで作成したプログラムをWindowsでコンパイルする必要があり，そのときのメモ．開発環境はWindows7,  Codeblocks 10.05 + MinGW. CodeblocksはMinGW付きのパッケー [...]]]></description>
			<content:encoded><![CDATA[<p>Linuxで作成したプログラムをWindowsでコンパイルする必要があり，そのときのメモ．開発環境はWindows7,  Codeblocks 10.05 + MinGW.</p>
<p>CodeblocksはMinGW付きのパッケージを選択できるのでそれを利用．g++,  make, gdbなどの開発環境は入っているが，Pthreadが必要なのでWindows用のものをダウンロードする．それをMinGWのディレクトリにコピーして終わり．以下はその具体的な作業．</p>
<p><span id="more-7168"></span></p>
<ul>
<li>Pthread関係で必要なファイルをsourceforgeの<a href="http://sourceforge.net/projects/mingw/files/">mingwプロジェクト</a>の<a href="http://sourceforge.net/projects/mingw/files/MinGW/Base/pthreads-w32/pthreads-w32-2.8.0-3/">pthreadのページ</a>から次のファイルをダウンロードする．
<ul>
<li>libpthread-2.8.0-3-mingw32-dll-2.tar.lzma</li>
<li>pthreads-w32-2.8.0-3-mingw32-dev.tar.lzma</li>
</ul>
</li>
<li>lzmaで圧縮されているので，7zipを解凍できるソフトで解凍する．<a href="http://www.7-zip.org/">7-zipのサイト</a>にウインドウズ用のソフトがある．</li>
<li>解凍すると以下のファイルができる．
<ul>
<li>libpthread-2.8.0-3-mingw32-dll-2.tar.lzma</li>
<ul>
<li>bin</li>
<ul>
<li>libpthread-2.dll</li>
</ul>
</ul>
<li>pthreads-w32-2.8.0-3-mingw32-dev
<ul>
<li>include
<ul>
<li>pthread.h</li>
<li>sched.h</li>
<li>semaphore.h</li>
</ul>
</li>
<li>lib
<ul>
<li>libpthread.dll.a</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>上記のファイルを以下のディレクトリ（フォルダ）のbin, include, libの中にそれぞれコピーする．
<ul>
<li>64ビットOS</li>
<ul>
<li>c:\Program Files (x86) \CodeBlocks\MinGW\</li>
</ul>
<li>32ビットOS</li>
<ul>
<li>c:\Program Files\CodeBlocks\MinGW\</li>
</ul>
</ul>
</li>
</ul>
<p>終わり</p>
<p style="text-align: right;">でむ</p>
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2Fmisc%2F7168.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=7168&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/misc/7168.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/misc/7168.html" />
	</item>
		<item>
		<title>夢考房ロボカッププロジェクト１８名加入</title>
		<link>http://demura.net/robocup/9632.html</link>
		<comments>http://demura.net/robocup/9632.html#comments</comments>
		<pubDate>Thu, 17 May 2012 02:21:28 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[RoboCup]]></category>
		<category><![CDATA[夢考房]]></category>

		<guid isPermaLink="false">http://demura.net/?p=9632</guid>
		<description><![CDATA[&#160; 先日、私が指導責任者となっているKIT夢考房ロボカッププロジェクトのジェネラルミーティングがあり、新１年生の紹介がありました。今年は、１８名も加入してくれました。ロボカッププロジェクトは国内外の大会で準優勝 [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_9633" class="wp-caption alignnone" style="width: 522px"><a href="http://demura.net/wordpress/wp-content/uploads/2012/05/robocupProject12.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2012/05/robocupProject12.jpg" alt="" title="robocupProject12" width="512" height="276" class="size-full wp-image-9633" /></a><p class="wp-caption-text">夢考房ロボカッププロジェクト新１年生</p></div>
<p>&nbsp;</p>
<p>先日、私が指導責任者となっているKIT夢考房ロボカッププロジェクトのジェネラルミーティングがあり、新１年生の紹介がありました。今年は、１８名も加入してくれました。ロボカッププロジェクトは国内外の大会で準優勝が多く、２００３年のロボカップジャパンオープンで中型ロボットリーグが優勝しただけです。「２位でいいんじゃないですかと？」と聞くと、１年生から「やるからには１番を目指したい！」と力強い言葉が返ってきました。</p>
<p><span id="more-9632"></span></p>
<p>今の夢考房ロボカッププロジェクトは低年齢化が進み、リーダーが学部２年生という班もあります。より長い期間取り組めるように変更しないと１番は厳しいと思います。海外のトップチームは多くのメンバーが４，５年（学部、修士、博士）活動しており、中には１０年以上（ポスドクまで）のメンバーもいます。新１年生には活動を継続して大学院生になっても続けてもらいたいと思います。私の研究室がその受け皿になりますから。</p>
<p>でむ
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2Frobocup%2F9632.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=9632&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/robocup/9632.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/robocup/9632.html" />
	</item>
		<item>
		<title>ODE0.12のインストール法　(Visual C++ 2010 EE）</title>
		<link>http://demura.net/9ode/9619.html</link>
		<comments>http://demura.net/9ode/9619.html#comments</comments>
		<pubDate>Wed, 16 May 2012 06:44:20 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[ODE]]></category>

		<guid isPermaLink="false">http://demura.net/?p=9619</guid>
		<description><![CDATA[ODE0.12のインストール法を説明します．今回は一番ユーザが多いと思われるWindows 7とVisual C++ 2010 Expression Editionを使った場合です． A. Visual C++ 2010 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://demura.net/wordpress/wp-content/uploads/2009/06/odelogo2.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2009/06/odelogo2.jpg" alt="odelogo2" title="odelogo2" width="200" height="62" class="alignnone size-full wp-image-3865" /></a></p>
<p>ODE0.12のインストール法を説明します．今回は一番ユーザが多いと思われるWindows 7とVisual C++ 2010 Expression Editionを使った場合です．</p>
<ul>
<li>A. Visual C++ 2010 Expression Editionのインストール</li>
<li>B. <a href="#a1">ODEのダウンロード</a></li>
<li>C. <a href="#a2">ODEのインストール</a></li>
<li>D. ODE本のサンプルプログラムをビルドする方法</li>
</ul>
<p><span id="more-9619"></span></p>
<hr />
<ul>
<li><strong>A. Visual C++ 2010 Expression Editionのインストール</strong>
<ul>
<li><a href="http://www.microsoft.com/japan/msdn/vstudio/express/">Microsoftのこのページの指示に従ってダウンロード・インストールしてください。</a></li>
</ul>
</li>
</ul>
<hr />
<ul>
<li><a name="a1"></a><strong>B. ODEのダウンロード</strong>
<ol>
<li><a href="http://sourceforge.net/projects/opende/files/ODE/0.12/ode-0.12.tar.gz/download">ode-0.12.tar.gz</a>をダウンロードし，デスクトップへ保存する．</li>
<li><a name="a2"></a>解凍ソフトの準備（持っていない方のみ）</li>
<li><a name="a2"></a>ode-0.12.tar.gzはtarフォーマットで圧縮されていますので解凍できるソフトウェアをインストールしてください．ここでは，私が使っているLhaplusという圧縮・解凍ソフトを使います．<a href="http://www.google.co.jp/" target="_self">Google</a>でLhaplusを検索するとダウンロード先を簡単に見つけることができます．</li>
<li>解凍と移動
<ul>
<li>デスクトップにあるode-0.12.tar.gzをダブルクリックすると、ode-0.12というフォルダーがデスクトップに生成されます。</li>
</ul>
<ul>
<li>ode-0.12フォルダをCドライブのすぐ下に移動する
<ul>
<li>マウスをode-0.12フォルダーに当て、右マウスボタンをクリック、「切り取り(T)」を選択</li>
<li>スタート→(マイ)コンピュータ→ローカルディスク(c)をダブルクリック</li>
<li>マウスの右ボタンをクリックし、「貼り付け（P)」を選択</li>
</ul>
</li>
</ul>
</li>
<li>ビルド（ライブラリの作成）
<ul>
<li>ode-0.12ではpremakeコマンドを使ってVisual C++ 2010用のソリューションファイルを作成できます．</li>
<li>コマンドプロンプトを起動する．<br />
スタート→「プログラムとファイルの検索」窓にcmd.exeと打ち込みEnterキーを押しコマンドプロンプトを起動する．</li>
<li>以下のようにコマンドを打ち込む．カットアンドペースト の場合は以下の文字列を使用し，自分で打ち込む場合は２個の-(マイナス)文字がつながって見えるので，下画像を参照して注意深く打ち込んでください．
<ul>
<li>
<pre> cd  c:\ode-0.12\build</pre>
</li>
<li>
<pre> premake4 --with-demos --with-libccd --only-double --only-static vs2008</pre>
<p>成功するとvs2008というVisual C++2008用のディレクトリが生成される．</li>
</ul>
</li>
<li>Visual C++ 2010 Express Editionを起動</li>
<li>メニューバーから「ファイル(F)」→「開く（O)」→「プロジェクト/ソリューション(P)」を選択</li>
<li>
<pre> c:\ode-0.12\build\vs2008\ode.sln</pre>
<p>を選択</li>
<li>「Visual Studio変換ウィザードへようこそ」ウインドウが開く。バックアップが必要ないので「いいえ(O)」にチェックを入れ、「次へ(N)」をクリック。</li>
<li>「変換準備完了」の画面になるので「完了(F)」をクリック。</li>
<li>「変換の完了」の画面になるので「閉じる」をクリック。</li>
<li>Visual C++ 2010 Expressのメニューバーから「デバッグ(D)」→「ソリューションのビルド(B)」を選択</li>
<li>デモプログラムの実行ファイルは
<ul>
<li><span style="font-family: 'Courier New'; line-height: 18px; font-size: 12px; white-space: pre;"> c:\ode-0.12\lib\Debug <span style="font-family: Georgia; line-height: 19px; white-space: normal; font-size: 13px;">に生成される．</span></span></li>
</ul>
</li>
<li>試しに，demo_basket.exeをダブルクリックして起動すればODEのビルド成功．これで，ODEのインストールは終わりです。</li>
</ul>
</li>
</ol>
</li>
</ul>
<hr />
<ul>
<li><strong>C. ODE本サンプルプログラムのビルド</strong></li>
<li><a href="../../dl">ダウンロードカテゴリー</a>からrobosimu******(******は日付）をダウンロードして，
<pre> c:\ode-0.12</pre>
<p>にコピーし，そこに解凍する．解凍に成功すると</p>
<pre>c:\ode-0.12\roboSimu******</pre>
<p>というディレクトリが生成される．ここで******は日付の数字。</p>
<p><strong><span style="color: #ff0000;">フォルダ名のroboSimu******から******を取り、次のフォルダ名に変更する。 </span></strong></p>
<pre>c:\ode-0.12\roboSimu</pre>
<p>その中にはsrc, texturesフォルダー，premake.exe, premake.lua, Readme.txt, roboSimu.luaファイルががあり，また，srcフォルダーの中にはODE本のサンプルコードがある．</li>
<li>ODEのインストールと同じように，premakeコマンドを使い，ソリューション，プロジェクトファイルを生成する．コマンドプロンプトを起動し，以下のコマンドを実行する．
<ul>
<li>
<pre>cd c:\ode-0.12\roboSimu</pre>
</li>
<li>
<pre>premake  --target  vs2008
 &#60;span style="color: #ff0000;"&#62;&#60;strong&#62;注：targetの前は-(マイナス）が２個連続．&#60;/strong&#62;&#60;/span&#62;</pre>
</li>
</ul>
</li>
<li>Visual C++ 2010 Express Editionを起動</li>
<li>メニューバーから「ファイル(F)」→「開く（O)」→「プロジェクト/ソリューション(P)」を選択
<ul>
<li>
<pre>c:\ode-0.12\roboSimu\src\roboSimu.sln</pre>
<p>を選択</li>
</ul>
</li>
<li>ビルドターゲットをDebugLibとする．<br />
<a href="http://demura.net/wordpress/wp-content/uploads/2012/05/vc2010.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2012/05/vc2010.jpg" alt="" title="vc2010" width="500" height="250" class="alignnone size-full wp-image-9625" /></a></li>
<li>「デバッグ(D)」→「ソリューションのビルド(B)」を選択</li>
<li>サンプルプログラムの実行ファイルはc:\ode-0.12\roboSimu\DebugLibに生成される．</li>
<li>試しに，arm1.exeをダブルクリックして起動すれば成功．お疲れ様でした！</li>
</ul>
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2F9ode%2F9619.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=9619&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/9ode/9619.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/9ode/9619.html" />
	</item>
		<item>
		<title>demura.netチーム　@ホーム初出場</title>
		<link>http://demura.net/robocup/9596.html</link>
		<comments>http://demura.net/robocup/9596.html#comments</comments>
		<pubDate>Fri, 04 May 2012 23:25:00 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[RoboCup]]></category>

		<guid isPermaLink="false">http://demura.net/?p=9596</guid>
		<description><![CDATA[demura.netチームがRoboCup Japan Opne 2012 ＠ホームリーグに初出場しました。 写真は第一種目のRIPS (Robot Inspection and Poster Session)の様子です [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_9602" class="wp-caption alignnone" style="width: 510px"><a href="http://demura.net/wordpress/wp-content/uploads/2012/05/demuranet1205031.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2012/05/demuranet1205031.jpg" alt="" title="demuranet120503" width="500" height="293" class="size-full wp-image-9602" /></a><p class="wp-caption-text">demura.netチーム</p></div><br />
demura.netチームがRoboCup Japan Opne 2012 ＠ホームリーグに初出場しました。<br />
<span id="more-9596"></span><br />
写真は第一種目のRIPS (Robot Inspection and Poster Session)の様子です。音声認識もうまくいき、初めてにしては上出来でした。
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2Frobocup%2F9596.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=9596&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/robocup/9596.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/robocup/9596.html" />
	</item>
		<item>
		<title>RoboCup2013はオランダ</title>
		<link>http://demura.net/robocup/9590.html</link>
		<comments>http://demura.net/robocup/9590.html#comments</comments>
		<pubDate>Tue, 01 May 2012 07:53:22 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[RoboCup]]></category>

		<guid isPermaLink="false">http://demura.net/?p=9590</guid>
		<description><![CDATA[RoboCup2013（ロボカップ世界大会）はオランダのアイントホーフェンで２０１３年６月２４日～３０日に開催されます。]]></description>
			<content:encoded><![CDATA[<p>RoboCup2013（ロボカップ世界大会）はオランダのアイントホーフェンで２０１３年６月２４日～３０日に開催されます。
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2Frobocup%2F9590.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=9590&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/robocup/9590.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/robocup/9590.html" />
	</item>
		<item>
		<title>DARPA ROBOTICS CHALLENGE (DRC)</title>
		<link>http://demura.net/%e6%9c%aa%e5%88%86%e9%a1%9e/9587.html</link>
		<comments>http://demura.net/%e6%9c%aa%e5%88%86%e9%a1%9e/9587.html#comments</comments>
		<pubDate>Fri, 27 Apr 2012 10:03:25 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://demura.net/?p=9587</guid>
		<description><![CDATA[Darpa　Grand Challenge,  Urban Challengeに続く新しいチャレンジ、DARPA ROBOTICS CHALLENGE (DRC)はヒューマノイドロボットを使った災害救助プロジェクト。 2 [...]]]></description>
			<content:encoded><![CDATA[<p>Darpa　Grand Challenge,  Urban Challengeに続く新しいチャレンジ、<a href="http://www.darpa.mil/Our_Work/TTO/Programs/DARPA_Robotics_Challenge.aspx">DARPA ROBOTICS CHALLENGE</a> (DRC)はヒューマノイドロボットを使った災害救助プロジェクト。</p>
<p>2014年12月にはイベント終了。米国はUrban Challengeでロボットカーの技術を獲得し、Robotics Challengeでヒューマノイドロボットの技術獲得を狙う。このチャレンジにより、ヒューマノイドロボットの技術は急速に進歩し、大きな変化が社会に訪れると思います。中国、韓国、タイがこのプロジェクトにどう取り組むか興味深いです。</p>
<p>参考リンク</p>
<ul>
<li><a href="http://www.darpa.mil/Our_Work/TTO/Programs/DARPA_Robotics_Challenge.aspx">DARPA ROBOTICS CHALLENGE (DRC)</a>,  DARPA (Defense Advanced Research Projects Agency)</li>
</ul>
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2F%25e6%259c%25aa%25e5%2588%2586%25e9%25a1%259e%2F9587.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=9587&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/%e6%9c%aa%e5%88%86%e9%a1%9e/9587.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/%e6%9c%aa%e5%88%86%e9%a1%9e/9587.html" />
	</item>
		<item>
		<title>Codeblocksを使ったCプログラムの作り方</title>
		<link>http://demura.net/9ode/8746.html</link>
		<comments>http://demura.net/9ode/8746.html#comments</comments>
		<pubDate>Tue, 24 Apr 2012 02:05:07 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[ODE]]></category>

		<guid isPermaLink="false">http://demura.net/?p=8746</guid>
		<description><![CDATA[CodeblocksでＣ言語のプログラム作成法を説明します．画像をクリックすると拡大表示されます． １．Codeblocksのメニューバーの「ファイル」→「新規」→「プロジェクト&#8230;」を選択してクリック ２．「 [...]]]></description>
			<content:encoded><![CDATA[<p>CodeblocksでＣ言語のプログラム作成法を説明します．画像をクリックすると拡大表示されます．</p>
<p><span id="more-8746"></span></p>
<p>１．Codeblocksのメニューバーの「ファイル」→「新規」→「プロジェクト&#8230;」を選択してクリック</p>
<div id="attachment_8747" class="wp-caption aligncenter" style="width: 310px"><a href="http://demura.net/wordpress/wp-content/uploads/2011/05/cb1.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2011/05/cb1-300x273.jpg" title="cb1" width="300" height="273" class="size-medium wp-image-8747" /></a><p class="wp-caption-text">新規作成</p></div>
<p>２．「Console Application」を選択して，「Go」をクリック</p>
<div id="attachment_8748" class="wp-caption aligncenter" style="width: 310px"><a href="http://demura.net/wordpress/wp-content/uploads/2011/05/cb2.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2011/05/cb2-300x220.jpg" title="cb2" width="300" height="220" class="size-medium wp-image-8748" /></a><p class="wp-caption-text">コンソールアプリケーション</p></div>
<p>３．「Ｃ」を選択して「次へ(N)&gt;」をクリック</p>
<div id="attachment_8749" class="wp-caption aligncenter" style="width: 310px"><a href="http://demura.net/wordpress/wp-content/uploads/2011/05/cb3.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2011/05/cb3-300x242.jpg" title="cb3" width="300" height="242" class="size-medium wp-image-8749" /></a><p class="wp-caption-text">Ｃ言語選択</p></div>
<p>４．プロジェクトを作成するフォルダを選択し，プロジェクトタイトルを決める．ここでは，プロジェクトはC:\ode-0.11.1\myprogの下に作成する．従って、プロジェクトを作成するフォルダはC:\ode-0.11.1\myprogとする。プロジェクトタイトルを入力するとプロジェクトファイル名や出力ファイル名は自動で決まるので打ち込む必要はない。プロジェクトタイトルは半角英数文字にすること。</p>
<div id="attachment_8750" class="wp-caption aligncenter" style="width: 310px"><a href="http://demura.net/wordpress/wp-content/uploads/2011/05/cb4.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2011/05/cb4-300x242.jpg" title="cb4" width="300" height="242" class="size-medium wp-image-8750" /></a><p class="wp-caption-text">プロジェクトの指定</p></div>
<p>５．コンパイラを選択．ここではGNU GCC Compilerを選択．</p>
<div id="attachment_8752" class="wp-caption aligncenter" style="width: 310px"><a href="http://demura.net/wordpress/wp-content/uploads/2011/05/cb51.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2011/05/cb51-300x242.jpg" title="cb5" width="300" height="242" class="size-medium wp-image-8752" /></a><p class="wp-caption-text">コンパイラの指定</p></div>
<p>７．プロジェクト名の下のSourcesをダブルクリックすると，テンプレートファイルが開く．Hello World!と表示する簡単なプログラムが自動的に生成される。このmain関数を自分のプログラムに変更する。</p>
<div id="attachment_8753" class="wp-caption aligncenter" style="width: 310px"><a href="http://demura.net/wordpress/wp-content/uploads/2011/05/cb6.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2011/05/cb6-300x223.jpg" title="cb6" width="300" height="223" class="size-medium wp-image-8753" /></a><p class="wp-caption-text">テンプレートファイルの表示</p></div>
<p>8.　メニューバーの「ビルド(B)」→「ビルドして実行(F9)」を選択、あるいは、歯車と矢印アイコンをクリックしてビルド＆実行する。エラーの場合は下のLogs &amp;othersと表示された場所にエラーメッセージが表示される。成功の場合はウインドウが開く。この例ではHello World!と表示される。　「Press any key to continue.」と表示されているように、何かキーを押すとウインドウが閉じプログラムが終了する。</p>
<div id="attachment_8754" class="wp-caption aligncenter" style="width: 310px"><a href="http://demura.net/wordpress/wp-content/uploads/2011/05/cb7.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2011/05/cb7-300x96.jpg" title="cb7" width="300" height="96" class="size-medium wp-image-8754" /></a><p class="wp-caption-text">実行結果</p></div>
<p>終わり．
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2F9ode%2F8746.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=8746&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/9ode/8746.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/9ode/8746.html" />
	</item>
		<item>
		<title>よくあるエラーメッセージ</title>
		<link>http://demura.net/9ode/9549.html</link>
		<comments>http://demura.net/9ode/9549.html#comments</comments>
		<pubDate>Mon, 23 Apr 2012 03:21:22 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[ODE]]></category>

		<guid isPermaLink="false">http://demura.net/?p=9549</guid>
		<description><![CDATA[Ｃ言語の授業でCodeblocksを使っています。そのコンパイラはgccで英語のエラーメッセージが初心者には難解で意味不明です。ここでは、その意味と解決法をまとめます。 例１ #include #include int  [...]]]></description>
			<content:encoded><![CDATA[<p>Ｃ言語の授業でCodeblocksを使っています。そのコンパイラはgccで英語のエラーメッセージが初心者には難解で意味不明です。ここでは、その意味と解決法をまとめます。</p>
<p><span id="more-9549"></span></p>
<hr />
<p>例１</p>
<pre>#include
#include 

int main()
{
　    printf("Hello world!\n");
    return 0;
}

||=== c1, Debug ===|
C:\myprog\c1\main.c||In function 'main':|
C:\myprog\c1\main.c|6|error: stray '\201' in program|
C:\myprog\c1\main.c|6|error: stray '@' in program|
||=== Build finished: 2 個のエラー、 0 個の警告 ===|</pre>
<ul>
<li>原因：全角空白文字が入っている。Codeblocksのエディタは全角空白文字が見えないので、コメントに日本語を使わないことをお勧めします。</li>
<li>解決方法: エラー行と１行上の行の全ての空白を削除して、空白部分に半角スペースを挿入する</li>
</ul>
<hr />
<p>例2</p>
<pre>int main()
{
    double r,  pi = 3.14
    printf("Input radius:");
    scanf("%lf", &amp;r);  //引数にアドレス演算子&amp;を付ける
    printf("area=%f \n", pi*r*r);  //円の面積を計算
    return 0;
}
C:\myprog\c2\main.c||In function 'main':|
C:\myprog\c2\main.c|7|error: expected ',' or ';' before 'printf'|</pre>
<ul>
<li>訳： printfの前に;(セミコロン）または,(カンマ）が期待される</li>
<li>原因と解決：printfの前にセミコロンがなかったので、挿入する</li>
</ul>
<hr />
<p>例3</p>
<pre>int main()
{
    int i, n = 30;
    double sum = 1.0; // 階乗は42億以上なるのでint型は不可

    four (i = n; i &#62; 0; i--)
    {
        sum *= i;
    }
    printf("Sum is %f\nSum is %e\n", sum,sum);
    return 0;
}</pre>
<pre>C:\myprog\c8\main.c||In function 'main':|
C:\myprog\c8\main.c|9|warning: implicit declaration of function 'four'|
C:\myprog\c8\main.c|9|error: expected ')' before ';' token|
C:\myprog\c8\main.c|10|error: expected ';' before '{' token|
C:\myprog\c8\main.c|7|warning: unused variable 'sum'|
||=== Build finished: 2 個のエラー、 2 個の警告 ===|</pre>
<ul>
<li>原因：forをfourと打ち間違えた</li>
<li>解決法：fourをforに変更</li>
</ul>
<hr />
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2F9ode%2F9549.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=9549&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/9ode/9549.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/9ode/9549.html" />
	</item>
		<item>
		<title>泉丘高校SSHでロボカップジュニア</title>
		<link>http://demura.net/robocup/9534.html</link>
		<comments>http://demura.net/robocup/9534.html#comments</comments>
		<pubDate>Sat, 21 Apr 2012 10:00:53 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[RoboCup]]></category>

		<guid isPermaLink="false">http://demura.net/?p=9534</guid>
		<description><![CDATA[石川県立泉丘高校でロボカップジュニアの講演とDKTロボットスクール生によるデモを実施しました。 泉丘高校はSSH(Super Science High school)の指定校であり、ロボットを研究テーマにしたいという生徒 [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_9544" class="wp-caption alignnone" style="width: 610px"><a href="http://demura.net/wordpress/wp-content/uploads/2012/04/ssh120421d1.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2012/04/ssh120421d1.jpg" alt="" title="ssh120421d" width="600" height="369" class="size-full wp-image-9544" /></a><p class="wp-caption-text">泉丘高校SSHで説明するDKTshootのメンバー</p></div>
<p>石川県立泉丘高校でロボカップジュニアの講演とDKTロボットスクール生によるデモを実施しました。</p>
<p>泉丘高校はSSH(Super Science High school)の指定校であり、ロボットを研究テーマにしたいという生徒のためにロボカップジュニアを説明しました。理数科の１，２年生約６０名が集まりました。</p>
<p>全国大会に出場したDKTshootチームの中学３年生達が自作したロボットの説明とデモを行いました。本日、講演を聞いた生徒の中から日本を背負って立つロボット研究者が誕生することを期待します。本日は、授業の一環ということだったので堅い話を多くしすぎてしまい、ロボカップの楽しさを十分お伝えしきれなかったことが残念です。ビデオやデモでその雰囲気を感じて頂ければうれしく思います。<br />
<span id="more-9534"></span></p>
<p>※本日講演を聞いた泉丘高校の皆さんへ：　質問などがあれば気軽にメールなどで聞いてください。ロボカップジュニアの技術交流会や競技会なども定期的に開催していますので、見学や参加したい場合はご連絡ください。
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2Frobocup%2F9534.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=9534&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/robocup/9534.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/robocup/9534.html" />
	</item>
		<item>
		<title>ロボカップジュニア体験教室：5月13日開催。参加者募集中！</title>
		<link>http://demura.net/robocup/9520.html</link>
		<comments>http://demura.net/robocup/9520.html#comments</comments>
		<pubDate>Thu, 19 Apr 2012 05:53:34 +0000</pubDate>
		<dc:creator>demu</dc:creator>
				<category><![CDATA[RoboCup]]></category>

		<guid isPermaLink="false">http://demura.net/?p=9520</guid>
		<description><![CDATA[石川県在住の小学３年から中学２年を対象に、ロボカップジュニア体験教室(ロボット教室）とその受講者による競技会をKITで行います。募集人員３０名で定員に達し次第締め切ります。ご興味のある方はお早めに！ 日時：２０１２年５月 [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_9034" class="wp-caption alignnone" style="width: 440px"><a href="http://demura.net/wordpress/wp-content/uploads/2011/09/kitsummer11p.jpg"><img src="http://demura.net/wordpress/wp-content/uploads/2011/09/kitsummer11p.jpg" alt="" title="kitsummer11p" width="430" height="323" class="size-full wp-image-9034" /></a><p class="wp-caption-text">MROで放映されたKITノード大会2011の様子</p></div>
<p>石川県在住の小学３年から中学２年を対象に、ロボカップジュニア体験教室(ロボット教室）とその受講者による競技会をKITで行います。募集人員３０名で定員に達し次第締め切ります。ご興味のある方はお早めに！</p>
<p><strong>日時</strong>：<strong>２０１２年５月１３日（日）　１０時～１５時（９時３０分受付開始）</strong><br />
<strong>場所</strong>：K.I.T.金沢工業大学２４号館３０５室<br />
<strong>参加資格</strong>：石川県在住の小学３年生以上中学２年生以下の初心者<br />
<strong>参加料</strong>：１０００円（参加者のみ。見学される方は無料です）<br />
<strong>持ち物</strong>：ロボット,　Windowsノートパソコン、筆記用具、お弁当と飲み物<br />
<strong>※　お持ちでない方はロボット（ダイセン電子工業e-gadget）をお貸しします。<br />
</strong><strong>主催：</strong>ロボカップジュニア石川ブロック<br />
<strong>後援：</strong>金沢市教育委員会（申請中）<strong><br />
</strong><strong>申込方法：　</strong><a href="http://robocupjr-ishikawa.jpn.org/">ロボカップジュニア石川ブロックのウェブサイトから（ここをクリック）<br />
</a> 先着順に受付します（定員３０名）。応募多数の場合は定員になり次第締め切ります。</p>
<p>以上
<div class="fblike_button" style="margin: 10px 0;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdemura.net%2Frobocup%2F9520.html&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:25px"></iframe></div>
<img src="http://demura.net/wordpress/?ak_action=api_record_view&id=9520&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://demura.net/robocup/9520.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://demura.net/robocup/9520.html" />
	</item>
	</channel>
</rss>

