[Jderobot-admin] jderobot-r884 - trunk/src/components/gazeboserver

ahcorde en jderobot.org ahcorde en jderobot.org
Mar Mar 12 10:59:00 CET 2013


Author: ahcorde
Date: 2013-03-12 10:58:00 +0100 (Tue, 12 Mar 2013)
New Revision: 884

Modified:
   trunk/src/components/gazeboserver/laser.cc
Log:
[ahcorde] Modifico el laser porque se representaba al reves


Modified: trunk/src/components/gazeboserver/laser.cc
===================================================================
--- trunk/src/components/gazeboserver/laser.cc	2013-03-10 16:46:50 UTC (rev 883)
+++ trunk/src/components/gazeboserver/laser.cc	2013-03-12 09:58:00 UTC (rev 884)
@@ -82,7 +82,7 @@
 			laserData->distanceData.resize(sizeof(int)*laserData->numLaser);
 			
 			//Update laser values
-			for(int i = 0 ; i < laserData->numLaser; i++){
+			for(int i = laserData->numLaser-1 ; i > 0; i--){
 			   laserData->distanceData[i] = laser->laserValues[i]*1000;
 			}
 			pthread_mutex_unlock (&laser->mutex); 



More information about the Jderobot-admin mailing list