Added avoid list and distance threshold to base SearchEnergy class rather than only the ClosureEnergy subclass as there was not good way to specify the internal SearchEnergy within the closureEnergy. It was also incredibly easy to pass in a different energy type to the guided or loop planner and have it cast mEnergyCalculator to a closureSearchEnergy and then modify it, doing terrible things and then segfaulting for apparently unrelated reasons.
Added avoid list and distance threshold to base SearchEnergy class rather than only the ClosureEnergy subclass as there was not good way to specify the internal SearchEnergy within the closureEnergy. It was also incredibly easy to pass in a different energy type to the guided or loop planner and have it cast mEnergyCalculator to a closureSearchEnergy and then modify it, doing terrible things and then segfaulting for apparently unrelated reasons.