pacman_interface::PacmanAction BehaviorKeyboardAgent::getHuntAction(GameInfo game_info) { pacman_interface::PacmanAction action; GameInfo game_info_ = game_info; geometry_msgs::Pose pacman_pose = game_info_.getPacmanPose(); std::map< std::pair<int, int>, int > distances = game_info_.getDistances(pacman_pose.position.x, pacman_pose.position.y); int min_distance = util::MAX_DISTANCE; game_info.printMap(); std::vector< geometry_msgs::Pose > ghosts_poses = game_info_.getGhostsPoses(); std::vector< geometry_msgs::Pose >::reverse_iterator closest_ghost = ghosts_poses.rend(); ROS_INFO_STREAM("Ghost size: " << ghosts_poses.size() << " num: " << game_info_.getNumberOfGhosts(););