[JdeRobot] Uav-viewer CMDVel

Alberto Martin almartinflorido at gmail.com
Mon Jun 6 19:58:16 CEST 2016


Perfect Jorge!!

great job.

On Mon, Jun 6, 2016 at 7:40 PM, AeroCano . <jorge.cano.mart en gmail.com>
wrote:

> Hi again,
>
> SOLVED! function spects and integer return, i add "return 0" and
> marshaling error disappears.
>
> Thank you!
> Jorge Cano.
>
> 2016-06-06 18:56 GMT+02:00 AeroCano . <jorge.cano.mart en gmail.com>:
>
>> Hi again,
>>
>> I think i understand what you mean, but i am not able to "reproduce" it
>> in python, the part of "*Ice::Int *CMDVelI......" of the function
>> implemented in C++, I do not understand that "Ice" call, and i do not know
>> how to do it in python. I have tried different formulas but they do not
>> work, i still having the same problem.
>>
>> Can you give me piece of information that sentence in order to learn
>> about it?
>>
>> Thank you so much.
>> Jorge Cano.
>>
>> 2016-06-05 11:38 GMT+02:00 Alberto Martin <almartinflorido en gmail.com>:
>>
>>> Hi Jorge,
>>>
>>> the CMDVel interface [1] only contain the method setCMDVelData(), the
>>> method getCMDVelData() implemented in your server don't exists in the
>>> interface. In ardrone_server [2] you have an example in C++.
>>>
>>> regards
>>>
>>> [1]:
>>> https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/interfaces/slice/jderobot/cmdvel.ice
>>> [2]:
>>> https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/interfaces/cmdveli.cpp
>>>
>>> On Sat, Jun 4, 2016 at 6:44 PM, AeroCano . <jorge.cano.mart en gmail.com>
>>> wrote:
>>>
>>>> Hi again,
>>>>
>>>> Here you are CMDVel:
>>>>
>>>>
>>>> https://github.com/RoboticsURJC-students/2015-tfg-jorge-cano/blob/master/MAVLinkServer/CMDVel.py
>>>>
>>>> You can also see the ice communication thread (line 1129) and function
>>>> (line 924) if it can help you:
>>>>
>>>>
>>>> https://github.com/RoboticsURJC-students/2015-tfg-jorge-cano/blob/master/MAVLinkServer/MAVLinkServer.py
>>>>
>>>> 2016-06-04 17:57 GMT+02:00 Alberto Martin <almartinflorido en gmail.com>:
>>>>
>>>>> Hi Jorge,
>>>>>
>>>>> can I see your implementation of CMDVel interface? while, if you want
>>>>> you can see the ardrone_server CMDVel implementation [1] and [2] (see
>>>>> setCMDVel() method)
>>>>>
>>>>> regards
>>>>>
>>>>> [1]:
>>>>> https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/interfaces/cmdveli.cpp
>>>>> [2]:
>>>>> https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/teleop_twist.cpp
>>>>>
>>>>> On Sat, Jun 4, 2016 at 5:10 PM, AeroCano . <jorge.cano.mart en gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am trying to connect MAVlinkServer (a server i have create to
>>>>>> connect a real drone, written in python) with Uav-viewer using Pose3D and
>>>>>> CMDVel interfaces through ICE, I launch Pose3D and CMDVel connections in
>>>>>> different threats in my server. I run it and the connection is ok: i can
>>>>>> see Pose3D changing and my camera and all the stuff, but when I push any
>>>>>> command button of the Uav-viewer the program crashes:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> *Up pressed Qt has caught an exception thrown from an event handler.
>>>>>> Throwingexceptions from an event handler is not supported in Qt. You
>>>>>> mustreimplement QApplication::notify() and catch all exceptions
>>>>>> there.terminate called after throwing an instance of
>>>>>> 'Ice::UnknownLocalException'  what():  Outgoing.cpp:499:
>>>>>> Ice::UnknownLocalException:unknown local exception:Operation.cpp:3446:
>>>>>> Ice::MarshalException:protocol error: error during marshaling or
>>>>>> unmarshaling*
>>>>>> *Abortado (`core' generado)*
>>>>>>
>>>>>>
>>>>>> And MAVlinkServer prints this other error:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> *-! 06/04/16 16:44:00.045 warning: dispatch exception:
>>>>>> Operation.cpp:3446: Ice::MarshalException:   protocol error: error during
>>>>>> marshaling or unmarshaling   identity: CMDVel   facet:    operation:
>>>>>> setCMDVelData   remote host: ::ffff:127.0.0.1 remote port: 58970*
>>>>>>
>>>>>> I inherit CMDVel from jderobot library and i do not redefine any
>>>>>> function.
>>>>>>  I do not know how to handle this error, can someone help me?
>>>>>>
>>>>>> Thank you in advance,
>>>>>> Jorge Cano.
>>>>>>
>>>>>> _______________________________________________
>>>>>> Jde-developers mailing list
>>>>>> Jde-developers en gsyc.es
>>>>>> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Jde-developers mailing list
>>>>> Jde-developers en gsyc.es
>>>>> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Jde-developers mailing list
>>> Jde-developers en gsyc.es
>>> http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers
>>>
>>>
>>
>
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://gsyc.escet.urjc.es/pipermail/jde-developers/attachments/20160606/7f80f49f/attachment.htm 


More information about the Jde-developers mailing list