Isaac Sim を使用して PCB 設計の包括的なデータを生成する (ソース コード付きのチュートリアル)

ここに画像の説明を挿入
N 個の PCB を生成できるランダムなサンプルをいくつか見てみましょう

ここに画像の説明を挿入
これをどのように実現するかについて、メイン タスクバーにあるセマンティック エディターで実行できるサンプル コーディングを見てみましょう。

import omni
from omni.isaac.dynamic_control import _dynamic_control

# Initialize
dc = _dynamic_control.acquire_dynamic_control_interface()

# Create a basic PCB board (a flat rectangle)
pcb = dc.create_rigid_body("pcb_board", "box", [0.1, 0.06, 0.001])
dc.set_rigid_body_pose(pcb, [0, 0, 0.001/2])

# Create some cylindrical "components" on the PCB
for i in range(5):
    component = dc.create_rigid_body(f"component_{i}", "cylinder", [0.005, 0.01])
    dc.set_rigid_body_pose(component, [i*0.02 - 0.04, 0, 0.01/2 + 0.001/2])

# Release the dynamic control interface
_dynamic_control.release_dynamic_control_interface(d

おすすめ

転載: blog.csdn.net/iCloudEnd/article/details/132691274