编写mesh添加action

This commit is contained in:
zhangshixiang
2025-05-06 22:01:23 +08:00
parent 80380d1f4b
commit d199fda9a5
6 changed files with 212 additions and 73 deletions

View File

@@ -76,6 +76,7 @@ class ResourceVisualization:
new_dev.set("parent_link", "world")
new_dev.set("mesh_path", str(self.mesh_path))
new_dev.set("device_name", node["id"]+"_")
new_dev.set("station_name", node["parent"]+'_')
new_dev.set("x",str(float(node["position"]["x"])/1000))
new_dev.set("y",str(float(node["position"]["y"])/1000))
new_dev.set("z",str(float(node["position"]["z"])/1000))