From: Vinh <arb...@go...> - 2006-11-13 17:03:43
|
Ok, I found the problem. My CMVision_Register is not called at all. Maybe the player_driver_init is actually getting the implementation from an integrated driver (since I derived mine from the cmvision driver). Changing the class name worked for me now. Thanks everyone for helping!! Vinh On 11/10/06, Vinh <arb...@go...> wrote: > Hi Brian and Jamuraa, > thanks to your tips. It was because some sample code was still located > in the server/drivers folder. > Now however I get this error. The driver is initialized, but then > player says it cannot find the driver even though I'm running a > "CMVision_Register(table);" in "player_driver_init", and > CMVision_Register adds the driver: printf("adding driver.."); > table->AddDriver("roomba_localizer", CMVision_Init); > The weired thing also is that "adding driver..." is never outputed. > Does anyone know what I am doing wrong? I've attached the code to the > email. > > Here's the output: > > roomba@eng051042:~/roombaGPSTest$ player roombaDriver.cfg -d9 > .. > trying to load /home/roomba/roombaGPSTest/./roombaLocalizer... > success > invoking player_driver_init()... > Example driver initializing > Example driver done > success > error : Couldn't find driver "roomba_localizer" > error : failed to parse config file roombaDriver.cfg > roomba@eng051042:~/roombaGPSTest$ > > > On 11/9/06, Brian Gerkey <br...@ge...> wrote: > > > > On Nov 7, 2006, at 12:02 AM, Vinh wrote: > > > > > > > > I have a driver which I just wrote recently. It works fine, however > > > for now it is just compiled with the other drivers and put in the > > > libplayerdriver library. Now I would like to have one separate driver > > > instead, so I don't need to recompile and link all drivers if I make > > > modifications in my own driver. I took the "exampledriver" example and > > > added my code. My driver compiles and I've linked the necessary files. > > > > > > When I try to run, player gives me the following error: > > > ... > > > trying to load /home/roomba/roombaGPSTest/./libexampledriver... > > > success > > > invoking player_driver_init()... > > > Example driver initializing > > > Example driver done > > > success > > > player: symbol lookup error: /usr/local/lib/libplayerdrivers.so.2: > > > undefined symbol: _ZN13CCalcLocationC1Ev > > > .... > > > > > > I am using a class called "CCalcLocation" inside of my driver. I > > > linked it with the libexampledriver in my folder. However I wonder why > > > player is trying to find the implementation in > > > "/usr/local/lib/libplayerdrivers.so.2" ???? > > > > It looks like libplayerdrivers.so still contains references to your > > CCalcLocation class. Be sure that your driver code is removed, then > > re-build libplayerdrivers. Note that the build of libplayerdrivers > > pulls in *.lo in the server/drivers directory, so you really do need > > to remove your code/objects. > > > > brian. > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Playerstage-users mailing list > > Pla...@li... > > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > > > > |