
captor03
USA
Asked
— Edited
Hi,
The camera tracking isn't as "right on" as in the tutorial. I'll walk or wave my hand past the robots head, and it will start to follow, but then it will go the other way, then back again. Its definitely not locked in as in the Omnibot tutorial.
The head also will flutter back and forth at times, and the picture is shaky.
Any hints?
Thanks, Den
What is the lighting like in the room you have tested it in? I get phantom faces due to low lighting levels and this can send the head to go haywire.
On the camera control choose Processed video and watch for phantom faces (a box around nothing means it thinks it's a face). You can also adjust brightness and contrast to attempt to get better recognition.
If you have movement tracking on also then you may need to tweak the settings so it doesn't pick up it's own movement.
Is the camera perhaps mounted on any of the movement parts?
Thanks Guys,
This robot has more bugs in it than a bee hive!
The room is well lit. When I look at the screen I get a lot of green when the head is turning on the computer screen.
I built a cradle for the head to sit on, that the servo wheel is connected to on top of the servo. The head goes back, and forth, but won't lock into anything most of the time. Maybe the weight is causing me some trouble?
Another question. In order to have the robot go straight, and turn on its own, do I need to start writing script? I'm not familiar with this?
I have it sitting on a platform, and sometimes the wheels start turning on their own.
One thing at a time I guess!
Den
It shows green when it detects movement. When the head moves to track movement it will detect the movement too causing it to get confused and go haywire. Turn off movement tracking or change the settings to allow for more time before it checks for movement again.
There is an old topic on that, I think it was more about the "noise" on the camera when movement tracking but it turns out it was this issue. When the image received by the camera changes at all it's classed as movement, so if the camera itself moves and the whole image changes then it thinks it's movement.
Hopefully that explained it well enough.
As for roaming around on it's own, it can be done with scripts. Do you have object avoidance? Is there a set path you want it to follow? I have a basic script on my robot which makes him move forwards until it detects an object it will collide with, then it will turn left and move forwards again. The IR Object Avoidance script is in the scripts section and on the Cloud under examples, just adjust it slightly to include the movement commands. You could easily change it so the robot moves forwards at a random speed for a random time, turns in a random direction for a random time, then moves forwards again for a random time, turns again etc.
The wheels shouldn't start turning on their own. What do you have driving it? Modified Servos or a HBridge? My HBridge will sometimes start moving the robot without being asked to but only when powering the robot on, once powered up, connected to ARC and the Movement Panel used it behaves itself.
Thanks! I will definitely give that a shot. I figured the movement of the head is probably at least one cause.
I have a Hbridge running my 2 motors. I'm going to have to learn write scripts for commands. I've never done it before.
I'll give it a shot, and let you know how I made out.
Thanks again, Den
We all start from somewhere, the good thing is EZ-Script is very simple and the manual for the commands is on the right hand side of the interface at all times.
Think of the scripts logically and you will be able to write it.
Say you wanted the robot to move around until the collision sensor detected possible collision. Think how the robot would do this and write it with the commands;
This code is from memory without EZ-Script open and I haven't tested it. My code may be incorrect but you should be able to see what I am getting at.
Also, check the many examples in the cloud, script part of the forum and the examples in ARC for ideas and help on commands.
Tracking people has to do with alot of things ,lighting (witch you can add lights to it) speed of the camera (now much you can do about it ,then get a better camera) ,camera resolution (get better camera like HD camera logitech makes them fairly cheap ,but need a computer on board) and plus speed of your computer to process the data,(video takes of alot of processing speed and memory resources)
Couple ideas ,look for WIFI camera if not using on-board computer ,add light to your robot.remove some programs of your computer or use a seperate computer only for EZB robots can reduce the the size of the camera to process data faster will help some
You people are the BEST!
Den