I realized that the occupancy grid is dealing in global coordinates, so I reverted the changes I made to it and modified the GridFilterAgent accordingly