[[2017a/Member]] Ìܼ¡ #contents *1.²ÝÂê¤Ë¤Ä¤¤¤Æ [#o3b26b97] ¤³¤Î²ÝÂê¤Ï½ñÆ»¥í¥Ü¥Ã¥È¤ÎºîÀ®¤Ç¤¢¤ë([[²ÝÂê1>http://yakushi.shinshu-u.ac.jp/robotics/?2017a%2FMission1]]»²¾È)¡£¾¾ËܤǤÎÂç³ØÀ¸³è¤òɽ¤¹´Á»ú¤ò½ñ¤¯¤È¤¤¤¦¤³¤È¤Ç¡¢Åż֤ˤè¤ëÄ̳ؤ«¤é¼«Å¾¼Ö¤Ë¤è¤ëÄ̳ؤËÊѤï¤ê¼«ÎϤÇÁö¤é¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¯¤Ê¤Ã¤¿¤³¤È¤«¤é¡ÖÁö¡×¤È¤¤¤¦´Á»ú¤òÁª¤ó¤À¡£ *2.¥í¥Ü¥Ã¥È [#ne27fd14] Á´ÂÎÁü #ref(./P_20170519_160248.jpg,50%,ËÜÂÎ) **ËÜÂÎ [#a9170697] ¥ì¥´¥Ö¥í¥Ã¥¯¤Ë¤â¤È¤â¤ÈÆþ¤Ã¤Æ¤¤¤¿ºî¤êÊýÀâÌÀ½ñ¤Ë¤¢¤ë¤â¤Î¤ò´ðËÜ·Á¤È¤·¤Æ¤ª¤ê¡¢ËÜÂΤÏÁ´¤¯Êѹ¹¤ò²Ã¤¨¤Æ¤ª¤é¤º¡¢¥¢¡¼¥à¤«¤éÀè¤òÆÈ¼«¤Ë¤Ä¤¯¤Ã¤¿¡£ #ref(./P_20170519_160641.jpg,50%,ËÜÂÎ) **¥Ú¥óÉÕ¶á [#h4135c7b] ±¦Â¦¤«¤é #ref(./P_20170519_160525.jpg,50%,¥¢¡¼¥à) º¸Â¦¤«¤é #ref(./P_20170519_160303.jpg,50%,¥¢¡¼¥à2) *3.½ñ¤½ç¤È´°À®ÉÊ [#vfe91090] #ref(./P_20170519_161327.jpg,50%,´°À®·Ï) ¡ÖÁö¡×¤È¤¤¤¦´Á»ú¤Ï¼ÂºÝ¤Ë½ñ¤¯¤È£·²è¤¢¤ë¤¬¡¢¥í¥Ü¥Ã¥È¤Ë¤Ï£²²èÌܤÈ4²èÌܤò°ìľÀþ¤È¹Í¤¨¤Æ6²ó¤Îưºî¤Ç½ñ¤«¤»¤¿¡£ #ref(./20170526_155546298.jpg,50%,½ñ¤½ç) *4.¥×¥í¥°¥é¥à [#xd34c34f] **¹©Éפ·¤¿ÅÀ [#d4fd784f] ¡¦¥¢¡¼¥à¤ò±¦Â¦¤Î¥¿¥¤¥ä¤Î¾å¤Ë¼è¤êÉÕ¤±¤¿¤Î¤Ç±¦Â¦¤Ë¶Ê¤¬¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿¡£¤½¤³¤Ç¡¢±¦Â¦¤Î¥¿¥¤¥ä¤Î½ÐÎϤò¶¯¤á¤ë¤³¤È¤Ç¤³¤ì¤ò²þÁ±¤·¤¿¡£ ¡¦º¸±¦¤Ø¤Î²óž¤ò4¼ïÎà¡¢Á°¿Ê¤ò4¼ïÎà¡¢¸å¿Ê¤ò2¼ïÎà¤Ä¤¯¤ê¡¢¤½¤ì¤é¤Ë²Ã¤¨¤Æ¥Ú¥ó¤ò¾å²¼¤Ë¤µ¤»¤ëÉôʬ¤òÁȤ߹ç¤ï¤»¤Æ°ì¤Ä¤Î¥×¥í¥°¥é¥à¤È¤·¤¿¡£ ¢ª¥í¥Ü¥Ã¥ÈËÜÂΤÎÀ©¸æ¤¬´Êñ¤Ë¤Ê¤ê¡¢¥á¥¤¥óÉôʬ¤ËɬÍפÊŤµ¤Î¥µ¥Ö¥ë¡¼¥Á¥ó¤ò»ØÄꤹ¤ë¤À¤±¤Ç¤è¤¤¡£ **º¸±¦¤Ø¤Î²óž(4¼ïÎà) [#o5aebf87] sub turn_r() //±¦ÀÞ(90ÅÙ) { OnFwd(OUT_C,SPEED); OnRev(OUT_B,SPEED2); Wait(TURN_TIME); Off(OUT_BC); } ¡¡ sub turn_l() //º¸ÀÞ(90ÅÙ) { OnFwd(OUT_B,SPEED2); OnRev(OUT_C,SPEED); Wait(TURN_TIME); Off(OUT_B); } sub turn_ll() //º¸ÀÞ(over90ÅÙ) { OnFwd(OUT_B,SPEED2); OnRev(OUT_C,SPEED); Wait(TURN_TIME3); Off(OUT_B); } sub turn_rl() //±¦ÀÞ(over90ÅÙ) { OnFwd(OUT_C,SPEED); OnRev(OUT_B,SPEED2); Wait(TURN_TIME2); Off(OUT_BC); } **Á°¿Ê(4¼ïÎà) [#ce7837a5] sub go_ss() //Á°¿Ê(û) { OnFwd(OUT_C,SPEED); OnFwd(OUT_B,SPEED2); Wait(MOVE_TIME3); Off(OUT_BC); } sub go_sm() //Á°¿Ê(Ãæ) { OnFwd(OUT_C,SPEED); OnFwd(OUT_B,SPEED2); Wait(MOVE_TIME); Off(OUT_BC); } sub go_sl() //Á°¿Ê(Ĺ) { OnFwd(OUT_C,SPEED); OnFwd(OUT_B,SPEED2); Wait(MOVE_TIME4); Off(OUT_BC); } sub go_sll() //Á°¿Ê(ÆÃĹ) { OnFwd(OUT_C,SPEED); OnFwd(OUT_B,SPEED2); Wait(MOVE_TIME6); Off(OUT_BC); } **¸å¿Ê(2¼ïÎà) [#h384b1d6] sub go_bl() //¸å¿Ê(Ĺ) { OnRev(OUT_C,SPEED); OnRev(OUT_B,SPEED2); Wait(MOVE_TIME2); Off(OUT_BC); } sub go_bm() //¸å¿Ê(Ãæ) { OnRev(OUT_C,SPEED); OnRev(OUT_B,SPEED2); Wait(MOVE_TIME5); Off(OUT_BC); } sub pen_u() //¥Ú¥ó¤ò¾å¤²¤ë { OnRev(OUT_A,SPEED2); Wait(MOVE_TIME3); Off(OUT_A); } sub pen_d() //¥Ú¥ó¤ò²¼¤²¤ë { OnFwd(OUT_A,SPEED); Wait(MOVE_TIME7); Off(OUT_A); } **Á´ÂÎ [#f73375a7] #define SPEED 20 #define SPEED2 25 #define TURN_TIME 1200 #define TURN_TIME2 1500 #define TURN_TIME3 1300 #define MOVE_TIME 600 #define MOVE_TIME2¡¡1300 #define MOVE_TIME3 300 #define MOVE_TIME4 1000 #define MOVE_TIME5 800 #define MOVE_TIME6 2000 #define MOVE_TIME7 300 sub turn_r() //±¦ÀÞ(90ÅÙ) { OnFwd(OUT_C,SPEED); OnRev(OUT_B,SPEED2); Wait(TURN_TIME); Off(OUT_BC); } ¡¡ sub turn_l() //º¸ÀÞ(90ÅÙ) { OnFwd(OUT_B,SPEED2); OnRev(OUT_C,SPEED); Wait(TURN_TIME); Off(OUT_B); } sub turn_ll() //º¸ÀÞ(over90ÅÙ) { OnFwd(OUT_B,SPEED2); OnRev(OUT_C,SPEED); Wait(TURN_TIME3); Off(OUT_B); } sub turn_rl() //±¦ÀÞ(over90ÅÙ) { OnFwd(OUT_C,SPEED); OnRev(OUT_B,SPEED2); Wait(TURN_TIME2); Off(OUT_BC); } sub go_ss() //Á°¿Ê(û) { OnFwd(OUT_C,SPEED); OnFwd(OUT_B,SPEED2); Wait(MOVE_TIME3); Off(OUT_BC); } sub go_sm() //Á°¿Ê(Ãæ) { OnFwd(OUT_C,SPEED); OnFwd(OUT_B,SPEED2); Wait(MOVE_TIME); Off(OUT_BC); } sub go_sl() //Á°¿Ê(Ĺ) { OnFwd(OUT_C,SPEED); OnFwd(OUT_B,SPEED2); Wait(MOVE_TIME4); Off(OUT_BC); } sub go_sll() //Á°¿Ê(ÆÃĹ) { OnFwd(OUT_C,SPEED); OnFwd(OUT_B,SPEED2); Wait(MOVE_TIME6); Off(OUT_BC); } ¡¡ sub go_bl() //¸å¿Ê(Ĺ) { OnRev(OUT_C,SPEED); OnRev(OUT_B,SPEED2); Wait(MOVE_TIME2); Off(OUT_BC); } sub go_bm() //¸å¿Ê(Ãæ) { OnRev(OUT_C,SPEED); OnRev(OUT_B,SPEED2); Wait(MOVE_TIME5); Off(OUT_BC); } sub pen_u() //¥Ú¥ó¤ò¾å¤²¤ë { OnRev(OUT_A,SPEED2); Wait(MOVE_TIME3); Off(OUT_A); } sub pen_d() //¥Ú¥ó¤ò²¼¤²¤ë { OnFwd(OUT_A,SPEED); Wait(MOVE_TIME7); Off(OUT_A); } task main() { go_sm(); //¡ ¡¡ pen_u(); go_bl(); turn_r(); go_ss(); turn_l(); go_bm(); pen_d(); go_sl(); //¢ pen_u(); ¡¡go_sl(); turn_r(); go_bm(); go_bl(); pen_d(); go_sll(); //£ pen_u(); go_sm(); go_ss(); turn_l(); go_bl(); pen_d(); go_ss(); //¤ pen_u(); go_sm(); turn_rl(); go_bl(); pen_d(); go_sl(); //¥ pen_u(); go_sm(); turn_ll(); go_bl(); pen_d(); go_sll(); //¦ } ¢¨¿ô»ú¤Ï½ñ¤½ç¤Î¼Ì¿¿¤ËÂбþ ¢¨¿ô»ú¤Ï½ñ¤½ç¤Î¼Ì¿¿¤ÎÈÖ¹æ¤ËÂбþ *5.¤Þ¤È¤á¡¦´¶ÁÛ [#r02e5b82] ¥×¥í¥°¥é¥à¤È¤¤¤¦¤â¤Î¤Ë½é¤á¤Æ¿¨¤ì¤¿Ãæ¤Ç¤¢¤ëÄøÅÙÆÉ¤á¤ë´Á»ú¤ò¥í¥Ü¥Ã¥È¤Ë½ñ¤«¤»¤ë¤³¤È¤¬¤Ç¤¤¿¤Î¤Ï¤è¤«¤Ã¤¿¡£¤·¤«¤·¡¢¥á¥¤¥ó¤ÎÉôʬ¤¬Ä¹¤¯¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿¤³¤È¤¬È¿¾ÊÅÀ¤È¤·¤Æµó¤²¤é¤ì¤ë¡£¥í¥Ü¥Ã¥È¤òư¤«¤¹¤¿¤á¤ËɬÍפʴðËÜÉôʬ¤Ï¿È¤Ë¤Ä¤¤¤¿¤È»×¤¦¤Î¤Ç¡¢È¿¾ÊÅÀ¤Ëµ¤¤ò¤Ä¤±¤Æ¼¡¤Î²ÝÂê¤Ç¤Ï¤â¤¦¾¯¤·"¥«¥Ã¥³¥¤¥¤"¥×¥í¥°¥é¥à¤Ë¤·¤¿¤¤¡£