Dynamic Movement Primitives: Volumetric Obstacle Avoidance Using Dynamic Potential Functions