Simulate Laser Profile Sensor——革命制度党ntable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +--- Thread: Simulate Laser Profile Sensor (/Thread-Simulate-Laser-Profile-Sensor) |
Simulate Laser Profile Sensor-kml-06-19-2021 Hello I would like to simulate a Laser Profile sensor to read the Laser Line profile from the 3D model loaded below the Laser Profile sensor. Could you please advice how this can be done. RE: Simulate Laser Profile Sensor-Albert-06-22-2021 I would recommend you to use the function calledProjectPointsfrom the RoboDK API. This example shows how to use this function: //www.sinclairbody.com/doc/en/PythonAPI/examples.html#project-curve-to-surface You would need to create a line of points and normals slightly oriented outwards from the sensor, then, you can get the projected points on an object. You would have to calculate the distance between the original point and the projected point. |