Jaime Lopez Carvajal wrote:
Hi friends,
I am wondering how can I got the robot current position, in a way the
robot moves taking this into account.
I want to try different brains (fuzzy logic, neural net, ga, etc) on
just one world at time, to compare which one drives more efficient (lest
moves) and fast (least time) the robot from one initial point to a final
(goal) point.
I think to try this as a project course to AI students.
Any suggestion will be welcome.
Thanks in advance.
Jaime,
You can ask any robot where it thinks it is by simply looking at robot.x
and robot.y. But that is not where it actually is. Real robots have no
way of knowing that, but you can ask a simulated robot through the
simulation device:
>>> robot.simulation[0].getPose("RedPioneer")
(4.9, 1.32, 6.28)
Hope that helps,
-Doug
--
Jaime Lopez
Universidad del Valle
Colombia
------------------------------------------------------------------------
_______________________________________________
Pyro-users mailing list
Pyro-users@pyrorobotics.org
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users
_______________________________________________
Pyro-users mailing list
Pyro-users@pyrorobotics.org
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users