belinda thom wrote:
How hard would it be to change the color of the trace that's drawn so it
(roughly) indicates which behaviors were controlling which line segments?
Cool idea! We've had to construct such graphs before outside of the
simulator, like this one where we drew a state number:
http://dangermouse.brynmawr.edu/~dblank/images/bringinguprobot-talk/fig4.gif
but that would be quite handy to do dynamically.
I think if you look in pyrobot/simulators/pysim.py and looked at where
.trail was being used, you could do something like:
def addTrail(self, pos, index, robot):
self.trail[pos][index] = robot._gx, robot._gy, robot._ga, robot.state
where .state was the color of the "state" it was in. Then you just need
to change TkSimulator.redraw() to use that color, rather than the color
of the robot or "trail".
Or, how easy would it be to have a callback of some sort reset the stats
when a user drags the robot to a new location with the mouse?
You can define or redefine the mouse clicks in
TkSimulator.addMouseBindings()
-Doug
I have some other high-level Pyro questions too, but I'll include that
in a different email.
--b
_______________________________________________
Pyro-users mailing list
[email protected]
http://emergent.brynmawr.edu/mailman/listinfo/pyro-users