Page 1 of 1

How to use SICK_S300 to detect object ?

Posted: 03 Jun 2020, 21:22
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

Re: How to use SICK_S300 to detect object ?

Posted: 04 Jun 2020, 06:45
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