I have been trying to use the sonar interface with the pioneer2dx robot . However when i try to run ./sonarobstacleavoid after running the simple.cfg file i get an error as
 localhost : 6665
 Segmentation fault

Can any one help me out with this error? The strange thing is if I run both laserobstacleavoid and sonarobstacleavoid on the same robot using the simple.cfg file and shut down laserobstacleavoid after letting it run first. The sonar seems to be working ok.