moving epuck towards nearest blob

Typically: "How do I... ", "How can I... " questions
Post Reply
mmhwmoh
Posts: 4
Joined: 21 Mar 2017, 00:01

moving epuck towards nearest blob

Post by mmhwmoh » 13 Apr 2017, 15:49

Hi there

I was wondering is there anyway for the epuck to move towards the closes blob ,which are round discs, that it detects? Since blobCount values can count the amount of blobs detected within the image of the epuck camera, how can i choose the blob closest to the epuck?

Thanks in advance

coppelia
Site Admin
Posts: 6185
Joined: 14 Dec 2012, 00:25

Re: moving epuck towards nearest blob

Post by coppelia » 18 Apr 2017, 08:00

Hello,

you will have to transform the blob positions from x/y position to 3D position, by taking into account the vision sensor's angle of view, and the vision camera's transformation (position and orientation). This is the general way of doing. Now, if the camera has a specific orientation (e.g. always looking horizontally), then you probably have some shortcuts.

Cheers

Post Reply