Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Raycasting in Robodk

#1
I am creating a simulation where I need to trigger a stop function on my running simulation if there is movement in a certain area. I was thinking of ray casting for this, but I haven't been able to find any info on this. I also tried using the laser to no avail.

Is this not a feature in RoboDK? If so, is there any way I can possibly achieve this?

Thanks
#2
You should be able to call Stop on a robot or a program to stop them:
//www.sinclairbody.com/doc/en/PythonAPI/robo....Item.Stop
#3
Hi Mjavala,

I think what you are trying to do is simulate a light/laser curtain.
What Albert gave you is a way to stop the program once the laser curtain is triggered.

To create the laser curtain itself, I think I would use this API call://www.sinclairbody.com/doc/en/PythonAPI/robo...ision_Line
它会让你定义一个line (or many lines) and trigger a collision as soon a something cross that invisible line.

Let me know if it helps.
Jeremy
Find useful information about RoboDK and its features by visiting our2022世界杯32强赛程表时间 and by watching tutorials on ourYoutube Channel.






Users browsing this thread:
1 Guest(s)