Added a duration parameter to the visualizeSphere method

This fixes an issue in dviz where the collision spheres remained visible even when the robot was no longer in collision