[JdeRobot] NavData Marshalling exception

Jose Antonio cbyte18 at gmail.com
Sat Jan 21 20:05:30 CET 2017


Solved! the error is in my code (in red in the mail trace)

/ndata = jderobot.NavdataData/

I don't create an object, the right one should be/

ndata = jderobot.NavdataData()
/
Sorry for the noise

El 21/01/17 a las 19:12, Jose Antonio escribió:
>
> Hi all
>
> I'm on serve Navdata over Ice in my develop bay y get a Marshalling 
> exception. I take a lot time finding the error but i can't see the 
> error ¿anyone can help me?
>
> I have this implementation of navData:
>
> /import jderobot class NavdataI(jderobot.Navdata): def __init__(self): 
> self.data = jderobot.NavdataData() def getNavdata(self, current=None): 
> return self.data def setNavdata(self, data): self.data=data/
>
> In my software only I do:
>
> /ndata = jderobot.NavdataData --> ///ndata = jderobot.NavdataData()/ #TODO setear los valores del NavData 
> ndata.batteryPercent = battery_remaining try: ndata.pressure = 
> getattr(scaled_presure, "press_abs") except: print 
> (str(scaled_presure)) try: ndata.temp = getattr(scaled_presure, 
> "temperature")/100 except: print(str(scaled_presure)) try: 
> ndata.windSpeed = getattr(wind, "speed") except: print(str(wind)) try: 
> ndata.windAngle = getattr(wind, "direction") except: print(str(wind)) 
> try: ndata.vx = getattr(global_position, "vx") except: 
> print(str(global_position)) try: ndata.vy = getattr(global_position, 
> "vy") except: print(str(global_position)) try: ndata.vz = 
> getattr(global_position, "vz") except: print(str(global_position)) 
> try: ndata.rotx = getattr(rawIMU, "xgyro") except: print(str(rawIMU)) 
> try: ndata.roty = getattr(rawIMU, "ygyro") except: print(str(rawIMU)) 
> try: ndata.rotz = getattr(rawIMU, "zgyro") except: print(str(rawIMU)) 
> try: ndata.ax = getattr(rawIMU, "xacc") except: print(str(rawIMU)) 
> try: ndata.ay = getattr(rawIMU, "yacc") except: print(str(rawIMU)) 
> try: ndata.az = getattr(rawIMU, "zacc") except: print(str(rawIMU)) 
> try: ndata.magx = getattr(rawIMU, "xmag") except: print(str(rawIMU)) 
> try: ndata.magy = getattr(rawIMU, "ymag") except: print(str(rawIMU)) 
> try: ndata.magz = getattr(rawIMU, "zmag") except: print(str(rawIMU)) 
> self.navdata.setNavdata(ndata)/But I get:
>
>    File "/usr/lib/python3.5/parallelIce/navDataClient.py", line 51, in 
> update navData = self.proxy.getNavdata() File 
> "/usr/lib/python3.5/navdata_ice.py", line 171, in getNavdata return 
> _M_jderobot.Navdata._op_getNavdata.invoke(self, ((), _ctx)) 
> Ice.UnknownLocalException: exception ::Ice::UnknownLocalException { 
> unknown = src/Operation.cpp:3482: Ice::MarshalException: protocol 
> error: error during marshaling or unmarshaling } !! 01/21/17 
> 18:54:38.681 error: communicator not destroyed during global destruction. Thanks
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://gsyc.urjc.es/pipermail/jde-developers/attachments/20170121/e3182294/attachment-0001.html>


More information about the Jde-developers mailing list