Trilateration-Based Localization in Known Environments with Object Detection