moving epuck towards nearest blob

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

moving epuck towards nearest blob

Postby 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

Site Admin
Posts: 5628
Joined: 14 Dec 2012, 00:25

Re: moving epuck towards nearest blob

Postby coppelia » 18 Apr 2017, 08:00


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.


Return to “General questions”

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests