Skip to content

Commit

Permalink
Adding todo about race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rishiso committed Jan 29, 2024
1 parent 97f57a1 commit a50a362
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ std::optional<RobotIntent> RobotFactoryPosition::get_task(WorldState& world_stat
return current_position_->get_task(world_state, field_dimensions);
}

// TODO (Rishi and Jack): Make this synchronized across all robots to avoid race conditions

// Get sorted positions of all friendly robots
typedef struct std::pair<int, double> RobotPos; // (robotId, yPosition)

Check warning on line 27 in soccer/src/soccer/strategy/agent/position/robot_factory_position.cpp

View workflow job for this annotation

GitHub Actions / build-and-test

use 'using' instead of 'typedef'

Expand Down

0 comments on commit a50a362

Please sign in to comment.