Skip to content

Commit 5f4dc84

Browse files
author
Cornelius Krupp
committed
Update auto_test to use hsl game controller
1 parent c2e8702 commit 5f4dc84

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • src/bitbots_misc/bitbots_auto_test/bitbots_auto_test

src/bitbots_misc/bitbots_auto_test/bitbots_auto_test/auto_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import rclpy
88
import rclpy.executors
99
from bitbots_localization.srv import ResetFilter
10-
from game_controller_hl_interfaces.msg import GameState
10+
from game_controller_hsl_interfaces.msg import GameState
1111
from gazebo_msgs.msg import ModelStates
1212
from geometry_msgs.msg import Pose, Twist
1313
from rclpy.clock import Duration
@@ -269,8 +269,8 @@ def setup_sequence(self):
269269
logger.info(f"Starting Test: id={self.current_test.test_id} name={self.current_test.__class__.__name__}")
270270
gs_msg = GameState()
271271
gs_msg.header.stamp = self.get_clock().now().to_msg()
272-
gs_msg.secondary_state_team = TEAM_ID
273-
gs_msg.game_state = 2 # 2=SET, force robot to stand still
272+
gs_msg.kicking_team = TEAM_ID
273+
gs_msg.main_state = 2 # 2=SET, force robot to stand still
274274
self.gamestate_publisher.publish(gs_msg)
275275

276276
self.get_clock().sleep_for(Duration(seconds=2)) # Let robot react & simulation settle
@@ -279,7 +279,7 @@ def setup_sequence(self):
279279
self.get_clock().sleep_for(Duration(seconds=2)) # Let simulation settle
280280

281281
gs_msg.header.stamp = self.get_clock().now().to_msg()
282-
gs_msg.game_state = 3 # 3=PLAYING, make robot play ball
282+
gs_msg.main_state = 3 # 3=PLAYING, make robot play ball
283283
self.gamestate_publisher.publish(gs_msg)
284284
self.current_test.start_recording()
285285
self.monitoring_node.write_event(

0 commit comments

Comments
 (0)