## How to create laser cone source?

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

### How to create laser cone source?

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.

fferri
Posts: 422
Joined: 09 Sep 2013, 19:28

### Re: How to create laser cone source?

Hello,

what do you want to achieve in the end?

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

### Re: How to create laser cone source?

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

fferri
Posts: 422
Joined: 09 Sep 2013, 19:28

### Re: How to create laser cone source?

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).

coppelia
Posts: 7441
Joined: 14 Dec 2012, 00:25

### Re: How to create laser cone source?

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

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

### Re: How to create laser cone source?

Firstly, thanks for replies.

I tried to illustrate the situation as picture here:

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

coppelia
Posts: 7441
Joined: 14 Dec 2012, 00:25

### Re: How to create laser cone source?

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

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

### Re: How to create laser cone source?

Hi,

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

As you can see in picture below:

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?

coppelia
Posts: 7441
Joined: 14 Dec 2012, 00:25

### Re: How to create laser cone source?

Please post the scene, otherwise it is difficult to say what is wrong.

Cheers

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

### Re: How to create laser cone source?

Hello,

The scene is available in below link: