<div dir="ltr">Hi Jorge,<div><br></div><div>the CMDVel interface [1] only contain the method setCMDVelData(), the method getCMDVelData() implemented in your server don&#39;t exists in the interface. In ardrone_server [2] you have an example in C++.</div><div><br></div><div>regards</div><div><br></div><div>[1]: <a href="https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/interfaces/slice/jderobot/cmdvel.ice">https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/interfaces/slice/jderobot/cmdvel.ice</a></div><div>[2]: <a href="https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/interfaces/cmdveli.cpp">https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/interfaces/cmdveli.cpp</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 4, 2016 at 6:44 PM, AeroCano . <span dir="ltr">&lt;<a href="mailto:jorge.cano.mart@gmail.com" target="_blank">jorge.cano.mart@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi again,<br><br></div>Here you are CMDVel:<br><br><a href="https://github.com/RoboticsURJC-students/2015-tfg-jorge-cano/blob/master/MAVLinkServer/CMDVel.py" target="_blank">https://github.com/RoboticsURJC-students/2015-tfg-jorge-cano/blob/master/MAVLinkServer/CMDVel.py</a><br><br></div>You can also see the ice communication thread (line 1129) and function (line 924) if it can help you:<br><br><a href="https://github.com/RoboticsURJC-students/2015-tfg-jorge-cano/blob/master/MAVLinkServer/MAVLinkServer.py" target="_blank">https://github.com/RoboticsURJC-students/2015-tfg-jorge-cano/blob/master/MAVLinkServer/MAVLinkServer.py</a><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-06-04 17:57 GMT+02:00 Alberto Martin <span dir="ltr">&lt;<a href="mailto:almartinflorido@gmail.com" target="_blank">almartinflorido@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jorge,<div><br></div><div>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)</div><div><br></div><div>regards</div><div><br></div><div>[1]: <a href="https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/interfaces/cmdveli.cpp" target="_blank">https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/interfaces/cmdveli.cpp</a></div><div>[2]: <a href="https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/teleop_twist.cpp" target="_blank">https://github.com/RoboticsURJC/JdeRobot/blob/master/src/stable/drivers/ardrone_server/src/teleop_twist.cpp</a></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sat, Jun 4, 2016 at 5:10 PM, AeroCano . <span dir="ltr">&lt;<a href="mailto:jorge.cano.mart@gmail.com" target="_blank">jorge.cano.mart@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div>Hi,<br><br></div>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:<br><br><span style="color:rgb(68,68,68)"><i>Up pressed <br>Qt has caught an exception thrown from an event handler. Throwing<br>exceptions from an event handler is not supported in Qt. You must<br>reimplement QApplication::notify() and catch all exceptions there.<br><br>terminate called after throwing an instance of &#39;Ice::UnknownLocalException&#39;<br>  what():  Outgoing.cpp:499: Ice::UnknownLocalException:<br>unknown local exception:<br>Operation.cpp:3446: Ice::MarshalException:<br>protocol error: error during marshaling or unmarshaling<br></i></span></div><div><span style="color:rgb(68,68,68)"><i>Abortado (`core&#39; generado)</i></span><br></div><div><br><br></div><div>And MAVlinkServer prints this other error:<br><br><span style="color:rgb(68,68,68)"><i>-! 06/04/16 16:44:00.045 warning: dispatch exception: Operation.cpp:3446: Ice::MarshalException:<br>   protocol error: error during marshaling or unmarshaling<br>   identity: CMDVel<br>   facet: <br>   operation: setCMDVelData<br>   remote host: ::ffff:127.0.0.1 remote port: 58970</i></span><br></div><div><br></div>I inherit CMDVel from jderobot library and i do not redefine any function.<br> I do not know how to handle this error, can someone help me? <br><br></div>Thank you in advance,<br></div>Jorge Cano.<br></div>
<br></div></div>_______________________________________________<br>
Jde-developers mailing list<br>
<a href="mailto:Jde-developers@gsyc.es" target="_blank">Jde-developers@gsyc.es</a><br>
<a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" rel="noreferrer" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Jde-developers mailing list<br>
<a href="mailto:Jde-developers@gsyc.es" target="_blank">Jde-developers@gsyc.es</a><br>
<a href="http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers" rel="noreferrer" target="_blank">http://gsyc.escet.urjc.es/cgi-bin/mailman/listinfo/jde-developers</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>