问题描述: - 修改配置文件后运行路径规划报错"Joint index out-of-range" - CollisionChecker持有无效的robot_id引用 解决方案: - 在on_config_applied方法中重新初始化路径规划组件 - 确保路径规划组件使用新的arm_controller实例 影响文件: - src/gui/main_window.py: 添加_initialize_planning_components()调用 - CLAUDE.md: 更新已知问题文档 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
109 lines
1.6 KiB
JSON
109 lines
1.6 KiB
JSON
{
|
|
"robot": {
|
|
"model_path": "models/manual_robot.urdf",
|
|
"base_position": [
|
|
0.0,
|
|
1.6,
|
|
0.0
|
|
],
|
|
"base_orientation": [
|
|
0.0,
|
|
0.0,
|
|
1.5
|
|
]
|
|
},
|
|
"wall": {
|
|
"position": [
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
"dimensions": {
|
|
"width": 3.0,
|
|
"height": 2.5,
|
|
"thickness": 0.2
|
|
},
|
|
"material": {
|
|
"color": [
|
|
0.8,
|
|
0.8,
|
|
0.8,
|
|
1.0
|
|
],
|
|
"type": "concrete"
|
|
}
|
|
},
|
|
"hole": {
|
|
"position_relative_to_wall": [
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
"dimensions": {
|
|
"width": 2.0,
|
|
"height": 2.0
|
|
},
|
|
"shape": "rectangle"
|
|
},
|
|
"task_points": {
|
|
"point_A": {
|
|
"position": [
|
|
0.5,
|
|
0.5,
|
|
0.8
|
|
],
|
|
"description": "取物点,与机械臂同侧"
|
|
},
|
|
"point_B": {
|
|
"position": [
|
|
0.5,
|
|
-0.3,
|
|
0.8
|
|
],
|
|
"description": "目标点,墙体另一侧"
|
|
}
|
|
},
|
|
"transport_object": {
|
|
"initial_position": [
|
|
0.6,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"dimensions": {
|
|
"width": 0.1,
|
|
"height": 0.1,
|
|
"depth": 0.1
|
|
},
|
|
"mass": 0.5,
|
|
"shape": "cube",
|
|
"material": {
|
|
"color": [
|
|
1.0,
|
|
0.0,
|
|
0.0,
|
|
1.0
|
|
],
|
|
"friction": 0.7
|
|
}
|
|
},
|
|
"simulation": {
|
|
"timestep": 0.01,
|
|
"gravity": [
|
|
0.0,
|
|
0.0,
|
|
0.0
|
|
],
|
|
"real_time": false
|
|
},
|
|
"path_planning": {
|
|
"collision": {
|
|
"check_resolution": 0.05,
|
|
"safety_margin": 0.05
|
|
},
|
|
"execution": {
|
|
"velocity_scaling": 1.0,
|
|
"position_tolerance": 0.01,
|
|
"motor_max_force": 150.0
|
|
}
|
|
}
|
|
} |