|
14 | 14 |
|
15 | 15 |
|
16 | 16 | class ResourceDictPositionSize(BaseModel): |
17 | | - depth: float = Field(description="Depth", default=0.0) |
18 | | - width: float = Field(description="Width", default=0.0) |
19 | | - height: float = Field(description="Height", default=0.0) |
| 17 | + depth: float = Field(description="Depth", default=0.0) # z |
| 18 | + width: float = Field(description="Width", default=0.0) # x |
| 19 | + height: float = Field(description="Height", default=0.0) # y |
20 | 20 |
|
21 | 21 |
|
22 | 22 | class ResourceDictPositionScale(BaseModel): |
@@ -469,9 +469,9 @@ def node_to_plr_dict(node: ResourceDictInstance, has_model: bool): |
469 | 469 | **res.config, |
470 | 470 | "name": res.name, |
471 | 471 | "type": res.config.get("type", plr_type), |
472 | | - "size_x": res.config.get("size_x", 0), |
473 | | - "size_y": res.config.get("size_y", 0), |
474 | | - "size_z": res.config.get("size_z", 0), |
| 472 | + "size_x": res.pose.size.width, |
| 473 | + "size_y": res.pose.size.height, |
| 474 | + "size_z": res.pose.size.depth, |
475 | 475 | "location": { |
476 | 476 | "x": res.pose.position.x, |
477 | 477 | "y": res.pose.position.y, |
|
0 commit comments