Fixing a bug in visualizing robots movement and vector field