Commit Graph

11 Commits

Author SHA1 Message Date
f6a9672ca8 fix: 优化路径执行精度,符合现实工业标准
- 添加物理仿真步进到插值和等待循环,提高执行稳定性
- 增加最小等待时间(0.5秒)确保充分稳定
- 调整position_tolerance从0.01到0.02弧度,符合实际工业机械臂精度标准
- 解决"Failed to reach target"执行失败问题

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-13 09:28:35 +08:00
32bbd5c44c fix: 修复配置更新后路径规划组件未重新初始化的问题
问题描述:
- 修改配置文件后运行路径规划报错"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>
2025-09-13 08:22:40 +08:00
a9db87d81d refactor: 重构配置管理,遵循单一职责原则
将单文件使用的配置改为文件内常量定义:
- kinematics.py: 运动学求解参数改为常量
- ai_rrt_star.py: RRT*算法参数改为常量
- path_optimizer.py: 路径优化参数改为常量
- main_window.py: GUI界面参数改为常量
- hole_crossing.py: 洞口穿越参数改为常量

保留跨文件共享的配置在config.json:
- robot, wall, hole, task_points等多模块使用的配置
- path_planning的collision和execution参数

更新CLAUDE.md文档说明新的配置管理原则。

遵循"配置文件用于多文件共享,单文件使用参数定义为文件内常量"原则。

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-12 22:40:11 +08:00
2ad7049386 feat: 实现完整的三段路径规划和可视化
主要改进:
- 添加初始位置→物体→A点→B点的完整路径规划
- 实现分段路径可视化(紫色/绿色/蓝色区分不同段)
- 统一使用单一CollisionChecker实例,支持忽略运输物体
- 修复路径优化器类型错误和移除回退方案
- 调整配置参数(物体高度0.7m,安全边界0.01m)

技术细节:
- AIRRTStarPlanner接受外部collision_checker参数
- 路径执行器分段处理,正确控制夹爪动作
- 添加物体、A点、B点的3D标记和文字标签

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-12 17:40:28 +08:00
23aff4077a 对齐KDL与PyBullet关节顺序,修复执行与检测一致性;RobotLoader为POSITION_CONTROL注入力矩(motor_max_force来自配置);执行偏好改为电机平滑 2025-09-12 15:40:28 +08:00
e617a7c28e 修复:固定底座、无副作用碰撞检测、通用避障与执行收敛等待 2025-09-12 15:21:36 +08:00
e04c0a9ca5 fix: 修复机械臂仿真稳定性和路径规划类型错误
- 关闭重力避免机械臂在物理仿真中倒塌,专注于运动学测试
- 修复AI RRT*路径规划中numpy数组类型不匹配错误
- 改进关节状态获取的错误处理,提供详细错误信息
- 在机械臂重置时添加位置控制激活,为将来重力调整做准备
- 调整任务点位置和洞口尺寸用于测试

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-12 10:28:52 +08:00
70cb0019d8 Implement AI-Enhanced RRT* path planning system
Complete implementation of path planning modules:
- AI RRT* algorithm with intelligent sampling strategies
- Collision detection wrapper for PyBullet
- Hole crossing strategy with dynamic approach calculation
- Path optimization with simplification
- Path executor for trajectory execution
- GUI integration with planning and execution buttons

System is now feature-complete and ready for testing phase.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-11 17:53:38 +08:00
b2f178c409 fix: 修复KDL逆运动学崩溃问题
- 修复ik_vel_solver对象生命周期问题,改为实例变量避免过早销毁
- 添加kinematics配置支持(max_iterations, epsilon)
- 移除违反编码规范的回退方案
- 清理调试代码保持代码简洁

解决了ChainIkSolverPos_NR_JL访问已销毁局部变量导致的Windows平台崩溃

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-11 11:28:05 +08:00
3b5306611a Implement KDL kinematics engine and complete core framework
Major Features Added:
- KDL-based kinematics engine with world/local coordinate transformation
- Complete GUI system with configuration management
- Robot loader with URDF parsing and joint control
- Enhanced environment system with transport object management
- Main application entry point with dependency validation

Technical Improvements:
- World coordinate to robot base coordinate transformation in KDL
- Real-time configuration updates through GUI
- Comprehensive error handling and validation
- Configuration-driven design throughout
- Robot model scaling adjusted to 0.2x for proper visualization

Files Added:
- src/robot/kinematics.py: KDL forward/inverse kinematics with coordinate transforms
- src/gui/: Complete GUI framework with main window and config management
- main.py: Application entry point with environment validation
- models/*.stl: Robot link mesh files for URDF visualization
- tests/: Unit test framework for core components

This commit establishes the complete foundation for robotic arm path planning
and task execution development.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 14:37:27 +08:00
a9e936bc43 Initial project structure for robotic arm feasibility test
- Added project configuration (config.json) with robot model path, environment parameters
- Created 9-DOF robotic arm URDF model (models/manual_robot.urdf)
- Established modular code architecture with empty source files ready for implementation
- Configured Python dependencies (pybullet, PyKDL, urdf_parser_py)
- Added comprehensive project documentation (CLAUDE.md)
- Created .gitignore for Python project

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-10 11:45:20 +08:00