If others are interested in using the raspberry pi with hexy I should clarify the “slow/jerky” movements I referred to aren’t awful it’s just I could tell the difference compared to running off my mac…
I was concerned partly because my hope has been to use the pi on the hexy, hopefully with the soon to be released camera (http://www.wired.co.uk/news/archive/2013-03/06/raspberry-pi-camera-released), running OpenCV (doing face recognition?) at the same time controlling hexy… Or maybe voice commands which I’ve seen e.g. http://www.youtube.com/watch?v=_U_v9tRD68k
With the rougher movements I was wondering if doing all that may turn out too much for the pi…
I did try a little to analyze things by running the top command while PoCoMo was also driving hexy.
I couldn’t see that memory was low (my concern partly since I have the 256MB pi not the 512MB).
And PoCoMo itself didnt seem to be using much cpu.
But I did notice X Windows was using between 25-50% of the cpu all by itself.
So one thought I had was that I shouldn’t be running X Windows at all.
To test the theory I thought about hacking PoCoMo to add an option where it wouldn’t even start the TK gui but would instead just let me control it using the keyboard.
That way there’d be less taxing the pi cpu (plus I wouldn’t have to worry about the GUI not fitting on the screen!)
The only other thought I had was to maybe play with the “stepPerS” setting when running PoMoCo on the pi?
From robot.py:
# Modifies how smoothly the servos move.
# Smoother means more processing power, and fills the serial line.
# Lower if movements start to slow down, or get weird.
# Anything higher than 50 is pointless ( faster than the maximum refresh of standard servos ).
stepPerS = 5
If anybody has any thoughts I’d love to hear…