i found that when the sensor was modifying the object returned from this, it would actually move the robot! so i switched it to a deep copy