Author Topic: programming target tracking in roborealm  (Read 2501 times)

0 Members and 1 Guest are viewing this topic.

Offline maverick monkTopic starter

  • Robot Overlord
  • ****
  • Posts: 204
  • Helpful? 0
programming target tracking in roborealm
« on: January 08, 2009, 06:42:15 PM »
Ok, its science fair time of year again and i am, once again, over my head (nextyear im growing beanplants, i swear to god im done w/ the stress, robotics will just be a hobby).

im attempting to do target tracking with roborealm and a pololu serial 8 servo controller. I am using an old webcam and the servo;s are mounted on a pan& tilt base.

ok, i cant get my servo's to turn more than a few degree's without the red 'fatal error (the best kind)' light showing up, i can only pick ranges between about 87 and 157 instead of 0-255. I also do not know how to get this code to work:

psuedo code:
if COG_X < center of camera then turn right until they are the same
if COG_X > center of camera then turn right untill they are the same
and so on, with the Y axis as well,

any help would be greatly appreciated.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,585
  • Helpful? 169
    • Society of Robots
Re: programming target tracking in roborealm
« Reply #1 on: January 23, 2009, 03:12:43 AM »
We can't help without your RoboRealm file :P

I recommend asking RoboRealm for help in their forum, STeven should be more familiar with any issues.

As for the pseudo code, give it an attempt and we'll tell you if its right or wrong. I don't even know what language you want it in! :P

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
4914 Views
Last post October 10, 2008, 01:08:49 AM
by izaktj
6 Replies
4154 Views
Last post June 12, 2012, 08:39:30 PM
by Chewy
5 Replies
4051 Views
Last post July 09, 2010, 03:03:42 PM
by Snav
3 Replies
1089 Views
Last post December 09, 2011, 07:18:59 PM
by BishopMG


Get Your Ad Here