edit some codes in staticobstacle and dynamicobstacle