Basic Vision Sensor follow object code explanation

#1

If you have any questions, don’t hesitate to ask!

5 Likes

#2

full code please :slight_smile:

4 Likes

Can Someone Tell Me How This Robot Works in the Video?
#3

:rocket::robot:
Hello, this is a very good job, I would like to know more details about the code added to the driver.
It would be possible to provide the code to add to my V5!
And start a construction?

0 Likes

#4

This would be a great study. I second @lacsap. I would love to see the code.

1 Like

#5

I imagine it’s similar to the code I posted here with the addition of measuring object size to adjust the robot’s distance from the object.

1 Like

#6

It’s also probably similar to what I made last year =)


The code can be found here.

In your demonstration, the robot seemed unnecessarily jerky. Is it because you are telling the robot to turn “right” or “left” depending on the direction of the error?
The better solution is to use a P loop to scale the motor power proportionally to the error.
Nice explanation at the end of the video btw

1 Like

#7

My color fusion is always poorly adjusted. Maybe it’s because the relationship between red and green is transparent. I wrote a code fusion myself. The performance is worrying.

0 Likes

#8

To how far did the tracking work? When my team tried something similar the vision sensor started to fail to track objects once it was more than ~48" from its target (Most likely due to poor resolution)

0 Likes