|
Algorithm 2 Optimization algorithm |
| : The sensor coordinate system |
| : The container(global) coordinate system |
| |
| (1) Acquire sensor data. |
| Capture a depth frame from D435 |
| if the depth frame is not successfully captured then
|
| return the error code of ’’ |
| end if
|
| Calculate point clouds from the depth frame |
| |
| (2) Generate 2D depth map. |
| Transform the 3D point clouds from SCS to CCS |
| Project every point cloud () into 2D depth map by setting the value at (, ) to
|
| Occupy the empty pixels of the map image by linear interpolation with the adjacent pixels |
| Apply sized mean filter to reduce noises |
| |
| (3) Run differential evolution (DE) algorithm. |
| Initialize the DE algorithm |
| Set input bounds of and
|
| Select appropriate configuration parameters |
| while the termination condition is not met do
|
| for each solution candidate do
|
| Perform (1) and (2) |
| Obtain with respect to using the generated depth image |
| Calculate the cost function |
| end for
|
| Update solution candidates using DE update process |
| end while
|
| Store the final solution along with its cost function value |
| |
| (4) Return and . |
| Repeat (3) three times |
| Return the solution (, ) with the smallest cost function value |