From: Jenny O. <jo...@cs...> - 2010-02-18 10:43:12
|
In swarm.world do you have a model which you've named hc1 that has a fiducial finder attached to it? Maybe in the world file, you've described a model hc1 but haven't actually declared any instances of it. /playerc error : got NACK from request /usually means that there's a problem connecting your cfg to the world, or your code to the cfg. So does your .cfg file declare a driver or a model that isn't actually in the world? Does your code try and declare or use a proxy that isn't in the cfg? The code you've included looks ok, so I would guess the problem is in swarm.worlds somewhere. Jenny Vladimir wrote: > Hi player/stage developer team! > I have a problem when I try to request any property from simulationProxy. > > In worldfile I create object: > > /hc_blue > ( > name "hc1" > pose [ -5 2 0 180 ] > fiducial_return 1 > )/ > > In cfg file I connect proxies to world and objects: > > /driver > ( > name "stage" > provides [ "localhost:6665:simulation:0" ] > plugin "stageplugin" > > # load the named file into the simulator > worldfile "swarm.world" > )/ > /driver > ( > name "stage" > provides [ "localhost:6664:fiducial:1" ] > model "hc1" > )/ > > When I try to set or request properties from object like this: > / > PlayerClient polygon ("localhost", 6665); > simProxy = new SimulationProxy(&polygon,0); > int ret; > simProxy->GetProperty("hc1", "_mp_color", &ret, sizeof(ret));/ > > I got: > > /playerc error : got NACK from request/ > > But > /simProxy->GetPose2d(robot[i].name, robot[i].initialPos.x, > robot[i].initialPos.y, robot[i].initialPos.yaw);/ > works fine! > > What should I do to request or set properties from objects? > > Thank you for cooperation! > -- > Best regards, > Vladimir Aleksandrov > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ------------------------------------------------------------------------ > > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |