This function is not consistent with the rest of the API in PlanningScene. Can you point me to where it is used? Maybe we can do things differently.