Page 1 of 2

How to create laser cone source?

Posted: 23 Oct 2019, 11:53
by Mehmet
Hello All,

I would like to create laser cone source.

When I reflect it onto the wall, I would like to get a laser ring on the wall.

Thanks.

Re: How to create laser cone source?

Posted: 23 Oct 2019, 13:41
by fferri
Hello,

what do you want to achieve in the end?

Re: How to create laser cone source?

Posted: 23 Oct 2019, 14:13
by Mehmet
Hello,

I will put laser cone source into the pipe,
And then I will get a laser ring inside of pipe.

At the end, I will get a laser ring; but ring will not be over of source,
It will be offset from the laser source.

Thanks

Re: How to create laser cone source?

Posted: 23 Oct 2019, 16:11
by fferri
Not really understanding, sorry.

But in V-REP you don't have lasers. What you can do is to use proximity sensors or vision sensors to simulate some of the properties of rays of light.

Then you can create drawing objects (sim.addDrawingObject) to give a visual feedback (proximity sensors already do this to some extent).

Re: How to create laser cone source?

Posted: 23 Oct 2019, 18:33
by coppelia
Actually you have something like laser sensors. Those are ray-type proximity sensors. You can use such a ray-type proximity sensor, mount it onto a joint, then rotate the joint to obtain the desired effect.
Another solution is to use one or several vision sensors and extract coordinated from the depth map. This is a bit more complicated, but there are several example of such vision sensor-based laser scanners in the Models/components/sensors folder.

Cheers

Re: How to create laser cone source?

Posted: 24 Oct 2019, 06:38
by Mehmet
Firstly, thanks for replies.

I tried to illustrate the situation as picture here:

Image

Actually, I willing to get a laser ring; but I will not measure anyting with this.
I will just display it with camera.

I have found some ready sensors in library; but some of them cause pausing of working simulation.
So, simply, I need just a laser light as a shape of circle.

Thanks

Re: How to create laser cone source?

Posted: 24 Oct 2019, 15:37
by coppelia
you will then have to adjust the existing sensors, or create your own sensor with the method I mentioned (i.e. add a proximity sensor, mount it onto a revolute joint, then add a script to control it, and draw the detected points).

Cheers

Re: How to create laser cone source?

Posted: 04 Nov 2019, 07:20
by Mehmet
Hi,

I've tried Hokuyo sensor in library; but there is a problem,

As you can see in picture below:

Image

Sensor creates cone laser at outside of pipe, properly,

But, at inside of pipe, it doesn't work properly!

What is differ, why I can't get a proper shape at inside of pipe although sensors are same and have same adjustment?

Re: How to create laser cone source?

Posted: 05 Nov 2019, 12:08
by coppelia
Please post the scene, otherwise it is difficult to say what is wrong.

Cheers

Re: How to create laser cone source?

Posted: 05 Nov 2019, 12:35
by Mehmet
Hello,

The scene is available in below link:

https://drive.google.com/open?id=1u2L0d ... Ebx_FxP1RP

Thanks