From: Joschka B. <jbo...@un...> - 2007-05-01 22:06:28
|
Hi Hedayat, Hedayat Vatankhah wrote: > First of all, sorry for the long delay. > No problem, I know everybody is busy right now. > Anyway, I've written a simple gyro rate sensor. This sensor can be > attached to some part of the robot to receive gyro rate information > (for example, it can be attached to the agent's torso). I've used the > angular velocity of Body which seems to be what is desired. Currently > the output is like this: (gyro (<name> <xrate> <yrate> <zrate>)) > Thanks a lot for the nice work! I submitted your code to the sserver CVS (in the rcssserver3D module) already :-) About the touch sensor: I was thinking that this could be (maybe) derived from the CollisionPerceptor (just overriding the Percept method in a very simple way -- if there are collidees the add a percept "1", if there are no collidees in the list, add a "0") and then using it together with the PerceptorHandler (might have to change a little, but not much I think). This is just a suggestion though and there might be better ways (comments?). Thanks again for helping! Joschka |