Hey all,
i am doing a university project using the mindstorms kit and lejos whereby i am creating a robot which can play football similar to that of those in the RoboCup Jr. tournament. However this is obviously a more complex project than the robots put forward in the RoboCup Jr competition. I am using an overhead camera to track the position of the robot using the colorlistener method and region of the vision package.
My question relates to the integer that specifies the color the colorlistener is looking for, how do you know which integer relates to which color?
I also need to track the direction the robot is facing as well as the location of the robot, which i thought i could do by placing a triangle on top of the robot and using lejos to track the triangle to find out which way the robot is pointing. However this is proving very difficult, if anyone has any ideas or suggestions on this i would be most grateful!
Cheers
Kyle

