How to render orthographic view depth image of a orthographic depth vision sensor in a floating view?

Typically: "How do I... ", "How can I... " questions
Post Reply
zhy149
Posts: 132
Joined: 14 Apr 2021, 20:18

How to render orthographic view depth image of a orthographic depth vision sensor in a floating view?

Post by zhy149 »

As the topic question. Thank you very much!
I added a script but it's all black now.

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

Re: How to render orthographic view depth image of a orthographic depth vision sensor in a floating view?

Post by coppelia »

Try to attach a child script with following content to your vision sensor:

Code: Select all

function sysCall_init()

end

function sysCall_vision(inData)
    simVision.sensorDepthMapToWorkImg(inData.handle)
    --simVision.intensityScaleOnWorkImg(inData.handle,1.000000,0.000000,false)
    simVision.workImgToSensorImg(inData.handle)
end
Cheers

Post Reply