Hello,

I have a problem with tracking service in MRL. I uploaded the last available pyton script (.txt attached below), but i have errors like this:

Traceback(most recent call last): File string line 16 in ModuleAttributeError: org.myrobotlab.service.Servo object hs no attribute as setPin....

Someone can explain me how to proceed or can provide me with an updated pyton script?

 

Pasqui

6 years 7 months ago

In reply to by Mats

Hello Mats,

With your script I've a sintax error at line 35!

However I need a working script for tracking objects like showed in this page:

http://myrobotlab.org/content/second-mrl-tutorial-tracking-service-wiri…

I've tried the script reported in that page several times, even by modifying it, but I always get errors. Why?

Fox exemple, the following code lines not work

xpid.setPID(5.0, 5.0, 0.1)

ypid.setPID(5.0, 5.0, 0.1)

None type object has no attribute setPID...

What are the correct lines of code to define and set the PID control?

I thank you for your time!

MerveT

3 years 3 months ago

In reply to by Mats

Hey Mats, thanks for sharing your cods. I ran your code but it didn't work. I don't have any idea why, i hope you can tell me.Thanks in advance.