Help programming a simulation in stageros.
Hi, I want to program a simulation with stage, where I'd like a robot to move forward till he detects an obstacle, and then, turn until he can continue forward. For that I know I have to subscribe to scan topic and to publish to cmd_vel to make the robot move (thanks, Martin Günther!). But I don't know how to interact with stage itself. I think I could manage to write the subscribe and publish algorithms with what I learnt from the publisher's and subscriber's tutorials, but once that is done, I'm at a loss as to how execute the simulation. I read some of this link, but I'm still really lost. Any suggestions?
Thanks!