rcg2txtのフォーマット


河原林研究室>>rcg2txt>>rcg2txtのフォーマット

rcg2txtのフォーマット

rcg2txtで得たログ情報のフォーマットはlibrcsc-x.x.x/src/rcg2txt.cpp の先頭付近にコメントで書いてある。

以下rcg2txt.cppのコメント部分の一部抜粋

// first line
(Init (goal_width 14.02) (player_size 0.299988)
      (ball_size 0.0849915) (kickable_margin 0.699997)
      (visible_distance 3) (kickable_area 1.08498)
      (catchable_area_l 2) (catchable_area_w 1)
      (half_time 3000) (ckick_margin 1)
      (offside_active_area_size 2.5)
      (offside_kick_margin 9.14999)
      (audio_cut_dist 50))

(Info (state <time> <playmode> <score_l> <score_r>)
      (ball <x> <y> <vx> <vy>)
      (player {l|r} <unum>[ g]
             (position <x> <y>
                       <vx> <vy>
                       <body>   // global body angle (degree)
                       <head>   // global head angle (degree)
             )
             (stamina <sta>)
             { (kick[ fault]) | (dash) | (turn) |
               (catch[ fault]) | (move) | (tackle[ fault]) |
               (none) }
             [(say)]
             [(turn_neck)]
             [(change_view)]
       )
)