From: jayesh <jay...@us...> - 2002-07-13 00:47:09
|
Hi all, I have been using Player Stage for multi agent problem simulations= =2E I am using the 1.2 version. Brian, and Andrew had given information about= the syntax for vision device in the world file, which I now saw in the 1.2.3 = stage document. I used the following syntax: ---------------------------------------------------------- ptz( lens "wide" vision (channels ["red" "green" "blue" "yellow"]) ) ---------------------------------------------------------- When I started stage I got the following error: ---------------------------------------------------------- $stage -tp 40000 -ep 40001 check.world ** Stage v1.2 ** stage: worldfile.cc:1347: const char * CWorldFile::GetPropertyValue(int, int): Assertion 'index < pproperty->value_count ' failed Aborted (core dumped) $ ---------------------------------------------------------- I also tried the following syntax (written in the 1.2.3 manual): ptz( lens "wide" vision (channels ["red", "green", "blue", "yellow"]) ) but it was reported as a syntax error. ---------------------------------------------------------- My second question is whether the vision device can give the distance fro= m the robot to a blob it sees. Presently, I consider the puck to be laser_retur= n "visible". I then use, the "x" (bearing) attribute of blob in the visiondevice, and laserdevice data to indirectly get the distance. ---------------------------------------------------------- I also use the gripper device to pick up pucks in my program. I just used= the same code, that is used in forage.cc, since I did not understand the attributes of the gripper, mentioned in the manual. I wanted to know, if the code in forage.cc is fine, and also is their som= e way to know when the robot has picked something using the gripper. (Counting = how many things (pucks) on board or something?) For example, I want the robot to stop after it picks a particular colour = of puck among many coloured pucks. Thanks a lot, Jayesh |