aldebaran / jnaoqi

Other
11 stars 10 forks source link

ALMotion.moveto wrong Returntype #2

Open ExpertExcrementExpeditor opened 7 years ago

ExpertExcrementExpeditor commented 7 years ago

The Returntype of ALMotion.moveto is void. According to the NaoQI 2.5.5.5 API it should be Boolean instead: http://doc.aldebaran.com/2-5/naoqi/motion/control-walk-api.html#ALMotionProxy::moveTo__floatCR.floatCR.floatCR I also understand the NaoQI API being intended for C++, however AFAIK, JNaoQI should use identical types if possible.

tcruzcast commented 7 years ago

Hello, Jnaoqi hasn't been updated for a while, but at the end this is just a wrapper. I'd recommend using directly libqi-java: https://github.com/aldebaran/libqi-java The same call would look like this:

AnyObject motion = session.service("ALMotion");
boolean result = motion.<Boolean>call("moveTo", x, y, theta).get();

Hope this helps.