How to detect a drawing object item with vision sensor

Typically: "How do I... ", "How can I... " questions
Post Reply
Mehmet
Posts: 18
Joined: 07 Oct 2019, 06:59

How to detect a drawing object item with vision sensor

Post by Mehmet » 20 Mar 2020, 07:27

Hello,

I'm creating an image with "sim.addDrawingObjectItem" command,
And, I'm willing to detect/see it with vision sensor.
But I can't.
When I check vision sensor properties, It seems it detects only bodies!
Is there any way to detect image as I mean?

Thanks

siat_znb
Posts: 7
Joined: 13 Mar 2020, 09:53

Re: How to detect a drawing object item with vision sensor

Post by siat_znb » 23 Mar 2020, 11:19

hi!!

maybe the detected object should have renderable property.

I also have some questions about if I have a vision_sensor and can detect the object in the v-rep.
I want to know how to get the information about object's 3d-pose(6-Dof) and coordinate?


Thanks

Mehmet
Posts: 18
Joined: 07 Oct 2019, 06:59

Re: How to detect a drawing object item with vision sensor

Post by Mehmet » 23 Mar 2020, 13:35

Hello,

Yeah, vision sensor property says that detected object must be renderable!

So, maybe the question is how can I convert this image to a renderable object?

It seems there is a way by importing image's points to Octree or point cloud via "sim.insertPointsIntoPointCloud" command,

But, I'm not sure!

Waiting for help,

thanks

Mehmet
Posts: 18
Joined: 07 Oct 2019, 06:59

Re: How to detect a drawing object item with vision sensor

Post by Mehmet » 24 Mar 2020, 11:58

I detect somewhere and show detected point with red point,
So, I can't use a shape directly,
Can I convert these detected points like a shape or is there another way to see?

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

Re: How to detect a drawing object item with vision sensor

Post by coppelia » 26 Mar 2020, 09:09

Drawing objects can have a renderable property: sim.drawing_painttag

Cheers

Mehmet
Posts: 18
Joined: 07 Oct 2019, 06:59

Re: How to detect a drawing object item with vision sensor

Post by Mehmet » 26 Mar 2020, 18:46

Thank you so much; but I could not find any knowledge about how to use this command

Mehmet
Posts: 18
Joined: 07 Oct 2019, 06:59

Re: How to detect a drawing object item with vision sensor

Post by Mehmet » 27 Mar 2020, 07:43

Hello,

I have achieved using the command,
But there is a problem,
I can't get same result as camera, as it should be.
You can check from below link:

https://github.com/MehmetYilmaz16/V-Rep ... Sensor.JPG

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

Re: How to detect a drawing object item with vision sensor

Post by coppelia » 30 Mar 2020, 10:10

A vision sensor is not a camera. There is not a one-to-one mapping between both (e.g. a vision sensor will never display edges of a shape, etc.).

Cheers

Post Reply