Award
Congratulations Richard R, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here.

Movement Tracking

Assistance Requested

Help bhouston with their question and receive $10 of EZ-Credit to get more robots and parts from our store. The following information was provided about their previous efforts searching tutorials for a resolution.

bhouston claims to have checked these sources:
 
#1

I am trying to get my Wall-E to follow the color red. The problem is when it see's the red object it turns away from the object. I have everything set up as in the Roli exercise. If I uncheck the left/right turn box in the movement tracking, it will follow the object straight ahead.

I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.


Also, consider reviewing the Learn section for informative lessons and activities. Check it out!


#2

Hey Bob,
Are we talking about his pan and tilt head or his actually drive wheels that are turning away from the red object? For pan and tilt, you may need to invert the servos on the x and or y axis in the camera control... If he is driving left to chase the red object when he should drive right then you'll have to adjust this in the Movement Panel (the camera uses the Movement Panel to drive Wall-e left or right when movement tracking)...

#3

The drive wheels are turning away.

#4

Ok, I assume the Movement Panel works correctly when you use it manually? The camera uses the Movement Panel to control wall-e (when chasing the coloured object)... Go back to the camera control and adjust the grid lines to default values... The grid lines should look like a tic tac toe board so to speak... The camera needs to have grid quadrants clearly defined in order to movement track...

#5

@Bob.

I have come across this a couple of times. A couple of power cycles of the EZ-B usually fixed it. And poor ambient lighting or having an object to close to the camera seems to have this effect also. One other thing, did you ever release your servos for some reason at some point, before doing any colour tracking? If so, try resetting the servo speeds.

#6

One other thing I forgot to mention was one of the issues I had with this too. Depending on items in the cameras view and brightness settings, I came across a few false positives. For example, I have some woodern furniture and when testing colour tracking with a red cloth, the brown wood could sometimes be recognised as red (as seen in photo below) which would cause the servos to twich and turn the wrong way. Something to keep in mind.

User-inserted image

#7

Thanks Richard R and Steve G. I deleted the Movement Panel and then set it up again and got it working OK. I haven't used this Wall-E program for a few months and a few scripts don't run properly. I don't understand why, I'm running the current software.
Thanks again for your help.