How to use SICK_S300 to detect object ?

Typically: "How do I... ", "How can I... " questions
Post Reply
jianye
Posts: 46
Joined: 16 Oct 2019, 13:58

How to use SICK_S300 to detect object ?

Post by jianye »

hello,

i use two SICK_S300 sensor to detect person in the scene but result of detection turned out always zero.

scene: https://ibb.co/9HbZPQ5

Code: Select all

 visionSensor1Handle=sim.getObjectHandle("SICK_S300_sensor1_1")
    visionSensor2Handle=sim.getObjectHandle("SICK_S300_sensor2_1")
    visionSensor3Handle=sim.getObjectHandle("SICK_S300_sensor1_2")
    visionSensor4Handle=sim.getObjectHandle("SICK_S300_sensor2_2")
    BillHandle=sim.getObjectHandle('Bill_base')
    rst,a1,a2,a3 = sim.checkVisionSensor(visionSensor1Handle,leftLeg)
    print(rst)
I want to know how can man use SICK_S300 sensor to detect object?

bests,
Jian

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

Re: How to use SICK_S300 to detect object ?

Post by coppelia »

Hello,

check the script attached to your sick 300 model: it contains everything you need to know. The sensor is composed by two vision sensors. Those are read in the sensing section (sim.readVisionSensor) and the data is computed for absolute coordinates. Then those points are used to draw the red lines you see when you run the simulation.

Cheers

Post Reply