
Jayutmb
USA
Asked
— Edited
Question, I am still working on my 1:1 R2 and I will be using saber tooth controller with my EZb. I am really wanting R2 to follow me at a certain distance when he is on auto (able to switch to my control at will as well) I have the EZ camera ( if that helps ) .. Has anyone out there mastered the way to do this ( bot follow..ect ) with switch to control via mobile ez app ( for iphone when it comes out ) ?
You can easily do this with colour tracking (wearing a red shirt or another colour of your choice)... Then in the camera control you would enable movement tracking (which allows the camera to control your sabertooth movement panel)... when R2 sees red he will drive towards it... You could also use a ping to monitor distance so he can be programmed to stop if he gets too close....
Camera would be easiest as the control is already there.
Ping may work but could get complicated and have far more false positives (or wind up sitting looking at a wall).
Sound could be another option but, again, would be less accurate and more work than camera.
Thx guys, I was a bit uncertain as to how the camera would work with moving forward and following but that seems to be the way to go.. and then I am guessing some kind of code to swap over to mobile control for movement ?
One of the things I want to try when I get my kit (just left Hong Kong a few hours ago....) is to see if color tracking will follow an IR LED. I think putting a small bike light I have, swapping out the white LED for an IR one and wearing it on my ankle or wrist would be fairly unobtrusive (if it works, I would do a custom housing to make it even more subtle).
You can always take over manually just by using the movement panel, but once you stop, the automatic tracking will take back over, which may not be what you want. but a couple of buttons on the mobile interface to execute stop and start tracking scripts would be simple to implement.
Alan
thx Alen
i have done this using the Color tracker as indicated above. with the addition of a ping sensor so the robot will stop when it is so close. Using only the follow by color causes the robot to run into the object it was tracking.
I hope that helps. If you do need a script post again and when I'm done with the script I'm working on , I can help more.
thanks Luis
You could either do color tracking, or you could attach qr codes to the back of your legs and back. Then have r2 stop based on a ping sensor reading.