Asked — Edited

Camera Tracking And Robot Following Question

I am in ARC and using only the Camera and Modified servo Movement Panel controls. The camera/horizontal_servo does a fine job of color-tracking a stationary red target. I have forward and left/right movement enabled in the Camera control. I Start forward motion in he Movement Panel, the robot moves forward, the camera tracks the target, but the robot never turns toward target. Just to make sure I also did not command Start (in case the Camera control performed that task) and the robot did not move.

It seems so simple. Am I doing something wrong?


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

PRO
Synthiam
#1  

Post your project file here in a message:)

#2  

File posted in cloud public domain as Track Test.

Category: Examples

United Kingdom
#3  

When testing the tracking on mine yesterday I was having this problem also (plus a bunch of other issues relating to the tracking and incorrectly identifying faces, colours and movement sending the pan/tilt of the camera to go totally crazy!)

Any help on which settings to have turned on and off would be a great help.

#4  

Dicka,

This is the Hardest Section to get working for me. I still have not got that part. All of the other sections are LIGHT YEARS Ahead and work great. I KNOW that it works, because I saw it work in D.J.'s video. But, you have to set all of the items correctly and have good sensors. I have completely re-built my robot and replaced all of the wiring and sensors, but, still have problems. My apartment is just too small and cluttered to really give it a fair test. Also, my lighting is not too good. If you don't have proper lighting or only some types of sensors that don't sense right, it won't work. On another project I did, the robot sensed and worked fine. But, it was made when I have had a proper place for it. I had sonars and IRs because some of them won't work in direct sunlight and some won't work in UV light or with the color black. I had a sofa/couch set that was black and a fireplace screen that was black and they ran right into it. And, it would run into chair legs and table legs before. But, when I placed BOTH IRs and Sonars and did it INdoors, it all worked. I used EZ-Max sonars and Sharp IRs. I have built probably more than a dozen robots and ONLY that little robot Bob which is on my avatar worked. Sadly to say, BOB is no more after 5 years. I took him apart to use the sensors on my EZB project. He was the ONLY robot I built that worked Perfectly.

United Kingdom
#5  

That explains my issues with my sensors, I have black furniture so I guess my robot wont be autonomous after all... Well, not without additional sensors and additional lighting for the camera.

I'm glad it's not just me with this issue but wish I knew about it before, now I have to buy extra items and pay more excessive shipping costs... Does the expense ever end?..

#6  

Unfortunately, robots are like women - you always seem to be spending money on them and never quite get the satisfaction you were hoping for...Moments of extreme happiness and longer time periods of extreme frustration...haha

United Kingdom
#7  

Very true... Although mine didn't complain once about the mess my living room and kitchen were in and is now quietly sat in the spare room... Robot that is, not woman :D

#8  

Not having an extreme amount of time with my setup yet, I too have found camera tracking to be tricky. What I noticed from example code from DJ is that, at least for motion tracking, you need to let the camera "rest" before scanning the next frame. In other words, the camera needs to be still on a target frame for about a second or two in order for the frame to resolve during delta processing. Once that occurs and the frame is "clean" and has resolved the actual moving element, then you can "use" the results. Otherwise, I find that if you try to scan too often and quickly, the frame never resolves and you end up with endless noise that the motion algorithm can't resolve, and thus, the servos go mad chasing ghosts.