How to create laser cone source?

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

How to create laser cone source?

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

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

Re: How to create laser cone source?

Post by fferri »

Hello,

what do you want to achieve in the end?

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

Re: How to create laser cone source?

Post 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

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

Re: How to create laser cone source?

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

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

Re: How to create laser cone source?

Post 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

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

Re: How to create laser cone source?

Post 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

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

Re: How to create laser cone source?

Post 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

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

Re: How to create laser cone source?

Post 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?

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

Re: How to create laser cone source?

Post by coppelia »

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

Cheers

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

Re: How to create laser cone source?

Post by Mehmet »

Hello,

The scene is available in below link:

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

Thanks

Post Reply