From: Joschka B. <jbo...@un...> - 2006-04-27 13:24:38
|
Dear Yuan, thanks a lot for the bug report. I'm forwarding it to the developers list and I'll try to take a closer look tomorrow. Thanks again! Joschka you wrote: > Dear Joschka, > I think I found a bug in kickeffector: > While the agent both kick with the same kick force, but with > differentdirections, the kick distance will be different! That is, when the > agent act "kick(0,100)" in direction 0(means kickalong x axis), the > distance is about 27m,but, when the agent act "kick(0,100)" in direction > 90(means kick alongy axis), the distance is only about 20m. That's strange! > So, I looked into the source code of kickeffector, > In kickeffector.cpp > 00050 KickEffector::Realize(boost::shared_ptr<ActionObject> action) > 0012600127 const Vector3f > torque(mTorqueFactor*force[1]/salt::g2PI,00128 > mTorqueFactor*force[0]/salt::g2PI,00129 > 0.0);00130 I think it is a bug here, I think the torque added to the ball > should be Vector3f torque(-mTorqueFactor*force[1]/salt::g2PI, > mTorqueFactor*force[0]/salt::g2PI, 0.0); the first paramter > should be "-mTorqueFactor*force[1]/salt::g2PI", right? After change this, I > test again, and the kick distance is onlydetermined by the kick force. Hope > this is useful :-) > > --Best wishes!Xu Yuan |
From: Jan M. <mu...@un...> - 2006-04-27 13:41:51
|
Hi Yuan, |On Thu, 27 Apr 2006 22:35:48 +0900, Joschka Boedecker <jbo...@un...> said: > thanks a lot for the bug report. I'm forwarding it to the developers list and > I'll try to take a closer look tomorrow. > yuan xu wrote: >> Dear Joschka, >> I think I found a bug in kickeffector: >> While the agent both kick with the same kick force, but with >> differentdirections, the kick distance will be different! That is, when the >> agent act "kick(0,100)" in direction 0(means kickalong x axis), the >> distance is about 27m,but, when the agent act "kick(0,100)" in direction >> 90(means kick alongy axis), the distance is only about 20m. That's strange! Did you try to kick in "both directions" along the axes, i.e. along the x-axis "towards opponent goal" and "towards own goal" and along the y-axis to the "top" and to the "bottom" of the field? Did the directions make any differences? Bye, Jan -- Jan Murray + Uni Koblenz + http://www.uni-koblenz.de/~murray/contact.html ________________________________________________________ \"Trusting every aspect of our lives to a giant computer \ was the smartest thing we ever did!" -- Hom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