The following warnings occurred:
Warning[2] session_start(): open(/opt/alt/php74/var/lib/php/session/sess_acd20d322ea5d5b5f02d11fc42ec01af, O_RDWR) failed: Disk quota exceeded (122) - Line: 402 - File: inc/plugins/myfbconnect.php PHP 7.4.33 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/plugins/myfbconnect.php 402 session_start
/inc/class_plugins.php 142 myfbconnect_global
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning[2] session_start(): Failed to read session data: files (path: /opt/alt/php74/var/lib/php/session) - Line: 402 - File: inc/plugins/myfbconnect.php PHP 7.4.33 (Linux)
File Line Function
[PHP] errorHandler->error
/inc/plugins/myfbconnect.php 402 session_start
/inc/class_plugins.php 142 myfbconnect_global
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Laser Time of Flight Sensor Simulation
#1
Hi everyone,

I am trying to simulate the time of flight sensor in RoboDk to measure the depth of a point to a reference frame.
A visible idea is to use the Laser SICK WL4S sensor as an object, and then find the collision point of the laser line with the targeted object as shown below. This is by using the[b]Collision_Line(p1, p2, ref)[/b]function as shown below.
The problem is with the output of the collision_line() function is incorrect. It gives a collision point of [50,50,492.067] that describes the intersection between line and sensor, where it should give [50,50,100] that is the intersection between line and cube, all in the Station Frame.

Any idea what I am doing wrong? Any help is appreciated.

Thank you
Hamdan


Attached Files Thumbnail(s)

Image(s)


.rdk New Station (1).rdk(Size: 52.51 KB / Downloads: 190)
#2
That is a nice use of the Collision line Method.
It seems your line is colliding with your sensor before colliding with the box.

Remember thePoseof your sensor is based on the object reference of your object. (You can right click on the object and set visible object frame)



Try usingp1 = [0,20,-10] and p2 = [0,20,-700] or better yet, the accurate coordinate where the sensor starts according to your object reference.
#3
Hi Alex,

Great, thank you so much. That makes sense.
I will test it and hopefully, it works.

Thank you
Hamdan

Works perfectly!!


Attached Files Thumbnail(s)





Users browsing this thread:
1 Guest(s)