From: Mads B. <mb...@ro...> - 2010-12-09 12:31:57
|
> From: Rich Mattes [jp...@gm...] > Sent: 08 December 2010 20:14 > To: pla...@li... > Subject: Re: [Playerstage-users] Going directly from libplayerc++ to player, around libplayerc > > > -----Original Message----- > > From: Mads Baggesen [mailto:mb...@ro...] > > Sent: Friday, December 03, 2010 3:41 AM > > To: pla...@li... > > Subject: [Playerstage-users] Going directly from libplayerc++ to > > player, around libplayerc > > > > Hi list, > > > > I am developing a new driver/proxy set, and was wondering if I can go > > around creating the playerc driver, and just making a playerc++ proxy, > > which then calls playerc_device_init, playerc_client_write etc. > > directly. > > > > Is there any reason why I need to go through playerc (in which case it > > would probably just be a almost completely transparent driver)? > > > > (I know I will still have to use librarycode from playerc in the final > > application, its just whether I have to write two new proxies, or just > > one...) > > > > Kind Regards/Med venlig hilsen > > > > Mads Baggesen > > M.Sc. Computer Science > > > > Delta 4 > > DK-8382 Hinnerup > > > > www.rogd.dk > > > > Tlf: +45 8764 0884 > > Fax: +45 8764 0844 > > > > I'm a little confused, are you trying to create a new interface here? If > you're creating a new interface, it's probably best to stay consistent with > all of the other interfaces: write the playerc proxy and then wrap it in > playerc++. > > If all you're doing is writing a new driver using the existing interfaces, > you can use playerc++ directly to open a proxy to your driver's provided > interface. There are plenty of examples on how to do so in the examples/ > directory. > > Rich Hi, I am writing a new interface specialized for our robot. Is there any technical reason to do the work in the C proxy? I would prefer to do the real work in the C++ proxy (for convenience when programming). The argument about staying consistent isnt that important for me, as this very specialized driver/interface/proxy will probably not be any good for anybody, so I see no reason to include it in player releases. /Mads |