[Jderobot-admin] jderobot-r921 - trunk/src/components/cameraserver

frivas en jderobot.org frivas en jderobot.org
Mar Mayo 28 07:57:00 CEST 2013


Author: frivas
Date: 2013-05-28 07:56:00 +0200 (Tue, 28 May 2013)
New Revision: 921

Modified:
   trunk/src/components/cameraserver/cameraserver.cpp
Log:
solucionado error multicamara


Modified: trunk/src/components/cameraserver/cameraserver.cpp
===================================================================
--- trunk/src/components/cameraserver/cameraserver.cpp	2013-05-27 16:44:09 UTC (rev 920)
+++ trunk/src/components/cameraserver/cameraserver.cpp	2013-05-28 05:56:00 UTC (rev 921)
@@ -263,16 +263,13 @@
 
         int nCameras = prop->getPropertyAsInt("CameraSrv.NCameras");
         cameras.resize(nCameras);
+		Ice::ObjectAdapterPtr adapter =ic->createObjectAdapterWithEndpoints("CameraServer", Endpoints);
         for (int i=0; i<nCameras; i++){//build camera objects
           std::stringstream objIdS;
           objIdS <<  i;
           std::string objId = objIdS.str();// should this be something unique??
           std::string objPrefix("CameraSrv.Camera." + objId + ".");
           std::string cameraName = prop->getProperty(objPrefix + "Name");
-
-          Ice::ObjectAdapterPtr adapter =
-                  ic->createObjectAdapterWithEndpoints(cameraName, Endpoints);
-
           Ice::ObjectPtr object = new cameraserver::CameraI(objPrefix, ic);
 
           adapter->add(object, ic->stringToIdentity(cameraName));



More information about the Jderobot-admin mailing list