@@ -36,8 +36,8 @@ Defense::State Defense::update_state() {
3636 return IDLING;
3737 }
3838
39- if (client_handles_->markingClient ->am_i_member () &&
40- client_handles_->markingClient ->am_i_marking ()) {
39+ if (client_handles_->marking ->am_i_member () &&
40+ client_handles_->marking ->am_i_marking ()) {
4141 return MARKING;
4242 } else {
4343 return IDLING;
@@ -98,8 +98,8 @@ Defense::State Defense::update_state() {
9898 }
9999 break ;
100100 case MARKING:
101- if (!client_handles_->markingClient ->am_i_member () ||
102- !client_handles_->markingClient ->am_i_marking ()) {
101+ if (!client_handles_->marking ->am_i_member () ||
102+ !client_handles_->marking ->am_i_marking ()) {
103103 next_state = IDLING;
104104 }
105105 break ;
@@ -110,7 +110,7 @@ Defense::State Defense::update_state() {
110110 sent_join_marking_group_request_ = true ;
111111 request_time_ = RJ::now ();
112112
113- client_handles_->markingClient ->join_group (
113+ client_handles_->marking ->join_group (
114114 [this ](const bool is_member) {
115115 if (is_member) {
116116 pending_marking_state_ = true ;
@@ -122,7 +122,7 @@ Defense::State Defense::update_state() {
122122 // reset flag
123123 sent_join_marking_group_request_ = false ;
124124 // ensure not in coordinator group
125- client_handles_->markingClient ->leave_group ();
125+ client_handles_->marking ->leave_group ();
126126 SPDLOG_INFO (" Robot {}: Timeout on join group, IDLING now" , robot_id_);
127127 next_state = IDLING;
128128 }
@@ -200,7 +200,7 @@ std::optional<RobotIntent> Defense::state_to_task(RobotIntent intent) {
200200 return intent;
201201 } else if (current_state_ == MARKING) {
202202 rj_geometry::Point targetPoint =
203- last_world_state_->get_robot (false , client_handles_->markingClient ->who_am_i_marking ())
203+ last_world_state_->get_robot (false , client_handles_->marking ->who_am_i_marking ())
204204 .pose .position ();
205205
206206 rj_geometry::Point ballPoint = last_world_state_->ball .position ;
0 commit comments