View unanswered posts | View active topics It is currently Sun Nov 23, 2014 5:42 am






Reply to topic  [ 5 posts ] 
NXTCam usage in RCJ 
Author Message
Rookie

Joined: Mon Oct 01, 2007 11:56 am
Posts: 7
Location: England
Post NXTCam usage in RCJ
Hi guys,

Our school has an NXTCam on order, and we are looking to use it in RoboCup Junior rescue to find the pesky green men.

We have looked at NXTCamView, and setting the colours up etc shouldn't be too hard. However, the programming seems slightly more advanced than we are used to.

We need the robot (which will have a 70-90 degree downwards facing NXTCam) to detect the green on a track, which will be navigated by 3 light sensors pointing down to follow a black line round a course. The light sensors work fine at detecting the black and silver, but green, with its likeness at reflecting light like black, is indistinguishable. Even with the HiTechnic Color Sensor we cannot detect it.

So we need to detect green and hopefully silver targets along the track. If you could help us with some code, we would be grateful. :bigthumb:

PS. The robot does not need to follow the green man, merely to detect it when it is in the centre or lower of the frame.


Tue Oct 07, 2008 8:15 am
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Jan 31, 2007 3:39 am
Posts: 299
Location: San Diego, California. USA
Post Re: NXTCam usage in RCJ
Hi Quirkey,

I suggest looking at the RobotC code that has been provided on the mindsensors website, it is a good driver and source files are good to learn from. I also have my modified driver for the NXTcam if you are interested, its very similar to the one on the mindsensors page but I added functions to display the blobs easily on the NXT screen, nice for debugging and understanding what is going on.

http://www.mindsensors.com/index.php?mo ... ment_id=50

If you have any more questions, feel free to ask B-)

_________________
Mmmm Legos B-)

My Robot Projects:
http://www.freewebs.com/robotprojects/


Fri Oct 10, 2008 2:32 pm
Profile WWW
Expert

Joined: Sun Sep 09, 2007 10:12 am
Posts: 116
Post Re: NXTCam usage in RCJ
quirkey wrote:
Hi guys,

Our school has an NXTCam on order, and we are looking to use it in RoboCup Junior rescue to find the pesky green men.

We have looked at NXTCamView, and setting the colours up etc shouldn't be too hard. However, the programming seems slightly more advanced than we are used to.


Hi.

I am also on Rescue Competition, also on Robocup. And also using NXT + ROBOTC.

It's possible to detect the Green Victim, with the camera, and also it's possible to follow the line just using the camera.

I already got that camera and already test it with my students.

The problem now, is that on a open space, like there are on contest, it's very hard to see it well.

The cam resolution is enough, but the green is not very diferent of the black, and with some shadows, even the white could get you problems.

If i successfully can use it , i will tell you something.

By the way, where you from?

_________________
http://www.apcsguarda.com
My Project: http://www.robotc.net/forums/viewtopic.php?f=15&t=712


Mon Oct 13, 2008 5:08 am
Profile
Expert

Joined: Sun Aug 19, 2007 2:43 pm
Posts: 141
Location: New Jersey
Post Re: NXTCam usage in RCJ
Yes, you probably need to play with the Cam view first to ensure it can distinguish between the dark green and black accurately and reliably before dedicating the time in the code. docilio is correct. Dark green under shade...(like people's shadow, or for the fact that it may be in the lower floor of the platform), you can easily misidentify it as the black line. It then turns out to be no difference in using this vs. color sensor. the only difference will be $150 vs $60. :roll:

You will probably have to create some special algorithm like a suspected green vic code. Honestly, talkiing about a real life simulation. It would be like you, as a human rescuer, saw some objects seemingly to be victims, but cannot quite see it. Now, how do you make the right decision? Should you proceed as there are many more victims you need to save in a restrained time frame? Or should you just spend more time just to stay at the same sport to analyze whether it is really a victim? Or perhaps, I, as a human rescuer, will remember there was a supicisous spot that I must go back if I still have time left= after I have saved all others!!! Almost a life lesson instead of technical!

I love the RCJ game a lot more than FLL, or FRC. FLL field is 100% predefined and does not give you much information from its environment so you have to use dead reckoning most of the time. Then, FRC, mostly mechanical. If you are into mechanical engineering, FRC IS wonderful. However, if you are into building intelligence software, RCJ is great!


Thu Feb 05, 2009 10:09 am
Profile WWW
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:44 am
Posts: 440
Location: Pittsburgh, PA
Post Re: NXTCam usage in RCJ
Moved to RCJ forum.

_________________
Vu Nguyen
Software Training Development Team | Webmaster
Need more support? Email ROBOTC Support at support@robotc.net to put in a support ticket

Robotc.net| Robomatter Store | Robotics Academy | CS2N


Mon Feb 09, 2009 9:57 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.