1st-session key

Similar documents
2) TA Hercules CAA 5 [6], [7] CAA BOSS [8] 2. C II C. ( 1 ) C. ( 2 ). ( 3 ) 100. ( 4 ) () HTML NFS Hercules ( )

,,,,., C Java,,.,,.,., ,,.,, i

Microsoft Word - C.....u.K...doc

Oda

C言語によるアルゴリズムとデータ構造

NO

Jacques Garrigue

CONTENTS Public relations brochure of Higashikawa October No

C C UNIX C ( ) 4 1 HTML 1

J No J. J

導入基礎演習.ppt

/ , ,908 4,196 2, ,842 38, / / 2 33 /

untitled

¥×¥í¥°¥é¥ß¥ó¥°±é½¬I Exercise on Programming I [1zh] ` `%%%`#`&12_`__~~~ alse



超初心者用


pptx

第5回お試しアカウント付き並列プログラミング講習会

IPSJ SIG Technical Report Vol.2016-CE-137 No /12/ e β /α α β β / α A judgment method of difficulty of task for a learner using simple


大学論集第42号本文.indb

1_26.dvi

13 RoboCup The Interface System for Learning By Observation Applied to RoboCup Agents Ruck Thawonmas

‚æ4›ñ

AutoTuned-RB

I 2 tutimura/ I 2 p.1/??

8 / 0 1 i++ i 1 i-- i C !!! C 2

Java updated


ohp03.dvi

Vol.55 No (Jan. 2014) saccess 6 saccess 7 saccess 2. [3] p.33 * B (A) (B) (C) (D) (E) (F) *1 [3], [4] Web PDF a m


A/B (2018/10/19) Ver kurino/2018/soft/soft.html A/B

29 jjencode JavaScript

Sport and the Media: The Close Relationship between Sport and Broadcasting SUDO, Haruo1) Abstract This report tries to demonstrate the relationship be

Informatics 2010.key

tuat1.dvi

Informatics 2014

CM-3G 周辺モジュール拡張技術文書 MS5607センサ(温度、気圧)

1 Table 1: Identification by color of voxel Voxel Mode of expression Nothing Other 1 Orange 2 Blue 3 Yellow 4 SSL Humanoid SSL-Vision 3 3 [, 21] 8 325

FA

273? C


授受補助動詞の使用制限に与える敬語化の影響について : 「くださる」「いただく」を用いた感謝表現を中心に

161 J 1 J 1997 FC 1998 J J J J J2 J1 J2 J1 J2 J1 J J1 J1 J J 2011 FIFA 2012 J 40 56

2006 [3] Scratch Squeak PEN [4] PenFlowchart 2 3 PenFlowchart 4 PenFlowchart PEN xdncl PEN [5] PEN xdncl DNCL 1 1 [6] 1 PEN Fig. 1 The PEN

untitled

r03.dvi


Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

Microsoft Word - PCM TL-Ed.4.4(特定電気用品適合性検査申込のご案内)

自然言語処理16_2_45


1: A/B/C/D Fig. 1 Modeling Based on Difference in Agitation Method artisoc[7] A D 2017 Information Processing




Informatics 2015

きずなプロジェクト-表紙.indd

A Nutritional Study of Anemia in Pregnancy Hematologic Characteristics in Pregnancy (Part 1) Keizo Shiraki, Fumiko Hisaoka Department of Nutrition, Sc

ストリーミング SIMD 拡張命令2 (SSE2) を使用した SAXPY/DAXPY

Otto Friedrich Bollnow,~

Table 1. Assumed performance of a water electrol ysis plant. Fig. 1. Structure of a proposed power generation system utilizing waste heat from factori


YMCA EMC 2


CONTENTS Public relations brochure of Higashikawa February No.748 2

企業の信頼性を通じたブランド構築に関する考察

CX-Checker CX-Checker (1)XPath (2)DOM (3) 3 XPath CX-Checker. MISRA-C 62%(79/127) SQMlint 76%(13/17) XPath CX-Checker 3. CX-Checker 4., MISRA-C CX- Ch

CA HP,,,,,,.,,,,,,.,,,,,,.,,,,,,.,,,,,,.,,,,,,.,,,,,,.,,,,,.,,,,,.,,,,,.,,,,,.,,,,,.,,,,,.,,,,,.,,,,,.,,,,,,.,,,,,.,,,,,,.,,,,,.,,,,,.,,,,,,.,,,,,,.,,

116,/ / - /-, /1 /2 0 / ,, / 3 ing / , 2, 3, , 3,,. ISO. /.. 0 -,. ISO., 0-

12_11B-5-00-omote※トンボ付き.indd

25 Removal of the fricative sounds that occur in the electronic stethoscope

(1) i NGO ii (2) 112


Time Schedule P.7 P.4-6 P.7 P.7 P.9 P.9 P.8 P.8 P.11 P.11 P.9 Time Schedule 1

2 1. Ubuntu 1.1 OS OS OS ( OS ) OS ( OS ) VMware Player VMware Player jp/download/player/ URL VMware Plaeyr VMware

C C C - J TH-D TH-D TH-D C C C C C - J TH-D TH-D TH-D C - J TH-D TH-D TH-D C C C C

_念3)医療2009_夏.indd

<95DB8C9288E397C389C88A E696E6462>

: CR (0x0d) LF (0x0a) line separator CR Mac LF UNIX CR+LF MS-DOS WINDOWS Japan Advanced Institute of Science and Technology

1 OpenCL OpenCL 1 OpenCL GPU ( ) 1 OpenCL Compute Units Elements OpenCL OpenCL SPMD (Single-Program, Multiple-Data) SPMD OpenCL work-item work-group N

double float

2

2

2

情報の分析 1. Linux ツールの活用

Introduction Purpose This training course describes the configuration and session features of the High-performance Embedded Workshop (HEW), a key tool

[1] #include<stdio.h> main() { printf("hello, world."); return 0; } (G1) int long int float ± ±

/ SCHEDULE /06/07(Tue) / Basic of Programming /06/09(Thu) / Fundamental structures /06/14(Tue) / Memory Management /06/1




_Y05…X…`…‘…“†[…h…•

WASEDA RILAS JOURNAL


I. Backus-Naur BNF S + S S * S S x S +, *, x BNF S (parse tree) : * x + x x S * S x + S S S x x (1) * x x * x (2) * + x x x (3) + x * x + x x (4) * *

Taro-リストⅢ(公開版).jtd

Transcription:

1 2013/11/29 Project based Learning: Soccer Agent Program

1 2012/12/9 Project based Learning: Soccer Agent Program

PBL Learning by doing

Schedule 1,2 2013 11/29 Make 2013 12/6 2013 12/13 2013 12/20 2014 1/10, 2014 1/24 ( ) 2014 1/31

Schedule 3,4 2013 12/9 Make 2013 12/16 2014 1/6 2014 1/20 2014 1/23, 2014 1/27 ( ) 2014 2/3

RoboCup

RoboCup

2D 1997

....

http://www.er.ams.eng.osaka-u.ac.jp/user/ogino/ ogiwiki/wiki.cgi/lec2009

Example http://www.er.ams.eng.osaka-u.ac.jp/user/ogino/ lecture/pbl2009a/demo.swf RoboCup2012 Mexico City Soccer Simulation 2D League Final Match. HELIOS2011 (Fukuoka University, Osaka Prefecture University, Japan) vs. WrightEagle (University of Science and Technology of China, China) http://www.youtube.com/watch?v=cdhsjsypvde

(Exercises)

An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through effectors. (Russell & Norvig, 1995)

float root(float A, float B, float C) { /* A*x*x + B*x + C = 0 */ float discriminant = B*B - 4*A*C;// if (discriminant < 0) printf("error: discriminant is less than zero."); return (-B + sqrt(discriminant)) / (2*A); }

Programming an agent is different Agent program: Perceive Act Think

int main() { ecobe_init( "testecobe" ); while (ecobe_update()) {... ecobe_flush(); } ecobe_close(); }

UNIX http://www.k-tanaka.net/unix/ http://www.fse.cs.ritsumei.ac.jp/ ~takayuki/unix.html emacs

Unix ( )

Unix )

hellotest emacs hello.c #include <stdio.h> int main(void) { prin9( Hello World ); return 0; }

bin bin hello

Unix

5 which ls ls which hello 6 bin $PATH export PATH=$PATH:~/bin ( ~ 7. echo $PATH which hello hello

Unix

8. hellotest sleeptest.c #include <stdio.h> int main(void) { sleep(10); prin9( Hello World ); return 0; } 9. killall

Exercises 1. agent 2. 3.

1).profile 2 export PATH=$PATH:/home/toyonaka/share/rc/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ source ~/.profile 2) mkdir ~/.rcssserver cp /home/toyonaka/share/rc/share/server.conf ~/.rcssserver/ 3) rcsoccersim & 4) rcssclient

Exercises 1. first.c agent 2. #include "cinterface.h" int main() { ecobe_init( "happyteam" ); while (ecobe_update()) { ecobe_set_velocity(2,2); ecobe_flush(); } ecobe_close(); } 3. 4.

Makefile It allows creating dependency rules for controlling automatic compilation

Makefile 1- Makefile http://www.er.ams.eng.osaka-u.ac.jp/user/ogino/ lecture/pbl2009a/makefile 2- Makefile 3- first make first CC=gcc LFLAGS=-lpthread DEPS = ecobetrilearn.so %: %.c $(DEPS) $(CC) -o $@ $^ $(LFLAGS)

Vector Arithmetics A/2 Vectors are relative Sum Subtract Scale Unit vector: V / V A 2A unit(a) A+B B A -B for any V, always: unit(v) = 1 A-B

Vector Arithmetics Example 1: can kick if Vrb < dr+db rr Vrb rb

Kicking to goal Task: compute V in the C program Download A A/2 C Vrgl B Vrgr rb D rb = 0.085 rr = 0.3 A= Vrgr - Vrgl Vrb V B= Vrgl + A/2 C= B - Vrb D= unit(c) rr V= Vrb + D

cinterface.h struct strct_vector { float length; float angle; }; struct strct_robot { int id; struct strct_vector position; }; struct strct_goal { struct strct_vector pole1; struct strct_vector pole2; }; int ecobe_init(char *team_name); void ecobe_close(); int ecobe_update(); void ecobe_flush();

cinterface.h /* sum(p1,p2) returns the sum of two given vectors p1 and p2 * */ struct strct_vector ecobe_sum(struct strct_vector p1, struct strct_vector p2); struct strct_vector ecobe_subtract(struct strct_vector p1, struct strct_vector p2); /* scale: * scales a strct_vector by multiplying it's lenght with a float scale value */ struct strct_vector ecobe_scale(struct strct_vector p, float scalar); /* normalize: * normalizes a strct_vector by setting it's lenght to 1 */ struct strct_vector ecobe_unit(struct strct_vector p); /* get_ballpos: * gives you a vector pointing towards the ball */ struct strct_vector ecobe_get_ballpos(); struct strct_goal ecobe_get_leftgoal(); struct strct_goal ecobe_get_rightgoal();

Exercise 1 http://www.er.ams.eng.osaka-u.ac.jp/user/ogino/lecture/pbl2009a/ exercise-1.pdf

Exercise 2, 3