Humanoid tic-tac-toe robot

Post your NXJ projects, project ideas, etc here!

Moderators: roger, 99jonathan, imaqine

Humanoid tic-tac-toe robot

Postby wiscu » Mon Nov 12, 2012 4:25 pm

Hallo

First of all we want to thank all the people who have contributed to the Lejos project. You are doing a great job!
But maybe you have to look at the mindsensor motor-multiplexer code - we can't get it to work properly.

Next we want to show our latest project:
http://www.youtube.com/watch?v=XMAZGCRxtwA

So what you see on the video is a tic-tac-toe playing robot. Each arm have 4 degrees of freedom plus a gripper. The head have different mouth expressions, can rotate, and light the hair. The robot is programmed to play tic-tac-toe: robot vs. human, robot vs. robot, and human vs. human. The robot will move the balls in all modes.

If someone want to know more about our project we will provide you with more information when we return to Denmark.

The robot participated in the World robot Olympiad this weekend (9-11. November) in open category senior high.

Wiscu.com
wiscu
New User
 
Posts: 4
Joined: Mon Nov 12, 2012 4:09 pm

Re: Humanoid tic-tac-toe robot

Postby kirkpthompson » Tue Nov 13, 2012 1:23 pm

Hi.
But maybe you have to look at the mindsensor motor-multiplexer code - we can't get it to work properly. 

What class are you referring to?
-K
Leg Godt!
User avatar
kirkpthompson
leJOS Team Member
 
Posts: 285
Joined: Wed Dec 05, 2007 1:27 am
Location: New Mexico, USA

Re: Humanoid tic-tac-toe robot

Postby skoehler » Tue Nov 13, 2012 2:31 pm

wiscu wrote:But maybe you have to look at the mindsensor motor-multiplexer code - we can't get it to work properly.


Don't just try and get frustrated. Let us know if something is broken. We can't know that you're having problems if you don't tell us. Problems don't fix themselves.
skoehler
leJOS Team Member
 
Posts: 1128
Joined: Thu Oct 30, 2008 4:54 pm

Re: Humanoid tic-tac-toe robot

Postby wiscu » Thu Nov 15, 2012 7:10 pm

Hello

We are using Lejos 0.9.1, and the classes involved is: NXMMX, MMXMotor, and MMXRegulatedMotor.

MMXRegulatedMotor. The idea was to use the motor to control the arm so we needed to call rotateTo(angle). But only rotateTo(angle, true) did work, "true" was necessary otherwise the problem would freeze. When we called .rotateTo(angle, true) the motor execute the task well but when we called rotateTo(angle, true) or any other command nothing happened.

MMXMotor. We endend up using the two MMX we had to the pneumatic system in our robot since they are all DC-motors. We did notice some strange behavior. If you call motor.forward() --> motor.stop() --> motor.forward() it will not start second time .forward() is called. Though if you call motor.forward() --> motor.stop() --> motor.backward() there will be no problems. Because of this, the robots compressor will drive different direction each time is start (which actually doesn't matter). The valve for its hands (gripper) will change from open/close and the program will therefore never call .forward() or .backward() two times in a row.

I hope this gave you some information.

Wiscu
wiscu
New User
 
Posts: 4
Joined: Mon Nov 12, 2012 4:09 pm

Re: Humanoid tic-tac-toe robot

Postby kirkpthompson » Thu Nov 15, 2012 8:19 pm

Hi.

The MMX classes have been rewritten after the 0.9.1 release. The new source is in the repository http://sourceforge.net/p/lejos/code/6899/tree/trunk/classes/src_shared/lejos/nxt/addon/. Can you create your own versions of the MMX classes from the source and see if the problems persist?

Best,
-K
Leg Godt!
User avatar
kirkpthompson
leJOS Team Member
 
Posts: 285
Joined: Wed Dec 05, 2007 1:27 am
Location: New Mexico, USA

Re: Humanoid tic-tac-toe robot

Postby wiscu » Fri Nov 16, 2012 1:06 pm

Hey Kirk

Our plan is to evaluate the project and write something down to future use so we don't make the same mistakes two times. We will make some test with the MMX at the same time and see if the problems persist. But we will first start in some weeks because two of us (we are three) have to complete military service.

Wiscu
wiscu
New User
 
Posts: 4
Joined: Mon Nov 12, 2012 4:09 pm


Return to NXJ Projects

Who is online

Users browsing this forum: No registered users and 2 guests

more stuff