From: Rich M. <jp...@gm...> - 2010-10-09 02:32:18
|
If that's your whole config file then you're missing quite a bit. See simple.cfg (and simple.world) that come with Stage. You'll need to add a driver block that starts Stage, give the path to stageplugin.so, and specify the worldfile you want to start Stage with. Rich On 10/8/2010 6:33 PM, kingwinter wrote: > hi, > I am trying to use the lasersafe to avoid bumping when I send out command > such as position2d:setspeed(). However, I get error message shown below. It > is fine to control the robot without lasersafe. Is there anyone to use such > proxy? Any other simple solution to keep robot safe when use setspeed > command? > > The error message is: > playerc error : failed to get response > terminate called after throwing an instance of 'PlayerCc::PlayerError' > Aborted > > The cfg file is: > driver > ( > name "stage" > provides [ "position2d:1" "laser:0" "speech:0" "graphics2d:0" > "graphics3d:0" "sonar:0"] > model "r0" > ) > > driver > ( > name "lasersafe" > provides ["position2d:0"] > requires ["position2d:1" "laser:0"] > safedistance 0.3 > step 10 > history 1 > ) > > Kingwinter |