@@ -57,6 +57,16 @@ class SimGamestate(Node):
5757
5858
5959
60+
61+
62+
63+
64+
65+
66+
67+
68+
69+
6070CTRL-C to quit
6171"""
6272
@@ -112,10 +122,9 @@ def loop(self):
112122 else :
113123 game_state_msg .kicking_team = self .team_id
114124 elif key == "s" :
115- self .stopped = not self .stopped
125+ game_state_msg .stopped = not game_state_msg .stopped
116126 elif key == "+" :
117127 game_state_msg .own_score += 1
118- game_state_msg .has_kick_off = self .has_kick_off
119128
120129 sys .stdout .write ("\x1b [A" )
121130 sys .stdout .write ("\x1b [A" )
@@ -127,15 +136,30 @@ def loop(self):
127136 sys .stdout .write ("\x1b [A" )
128137 sys .stdout .write ("\x1b [A" )
129138 sys .stdout .write ("\x1b [A" )
139+ sys .stdout .write ("\x1b [A" )
140+ sys .stdout .write ("\x1b [A" )
141+ sys .stdout .write ("\x1b [A" )
142+ sys .stdout .write ("\x1b [A" )
143+ sys .stdout .write ("\x1b [A" )
144+ sys .stdout .write ("\x1b [A" )
130145 self .publisher .publish (game_state_msg )
131146 print (
132- f"""Penalized: { game_state_msg .penalized }
133- Kicking Team: { game_state_msg .kicking_team }
134- Game Phase: { game_state_msg .game_phase }
135- Play Phase: { game_state_msg .play_phase }
136- Main State: { game_state_msg .main_state }
137- Has Kick Off: { game_state_msg .has_kick_off }
138- Competition Type: { game_state_msg .competition_type }
147+
148+
149+
150+ f"""
151+
152+ Competition Type: { game_state_msg .competition_type }
153+ Game Phase: { game_state_msg .game_phase }
154+ Set Play: { game_state_msg .set_play }
155+ Main State: { game_state_msg .main_state }
156+
157+ Kicking Team: { game_state_msg .kicking_team }
158+
159+ Penalized: { game_state_msg .penalized }
160+ Stopped: { game_state_msg .stopped }
161+
162+ Goals(Own : Rival): { game_state_msg .own_score } : { game_state_msg .rival_score }
139163
140164CTRL-C to quit
141165"""
0 commit comments