obsLoc (vector). \r
location (vector).\r
posObstacle,posSensor (vector).\r
- angulo(double).\r
\r
draw clear.\r
value = 0.0.\r
posObstacle=i get-location.\r
\r
\r
- \r
+ #!\r
if(dot((i get-direction),direction)==0):\r
des1=1.\r
else\r
des1=0.\r
-\r
+ !#\r
\r
des2=0.\r
if(dot(direction,(1,1,1))<0):\r
\r
\r
print "sensor: $id , des1: $des1, des2: $des2, des3: $des3".\r
- if ((des1) && (des2) && (des3)):\r
+ if ((des2) && (des3)):\r
{ \r
draw clear. \r
#print " posObstacle: $posObstacle". \r