RL-PowerTracking/docs/modules/rl_env.md
fly6516 21304165a8 feat: 初始化RL-PowerTracking项目
- 创建项目结构和核心模块
- 实现机械手臂控制和目标跟踪功能
- 开发强化学习环境和训练脚本
- 添加文档和使用示例
- 设置日志记录和TensorBoard可视化
2025-05-25 19:25:02 +08:00

25 lines
571 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 强化学习环境模块
## CartesianSpaceEnv 类
### 描述
实现了一个机械手臂在笛卡尔空间中运动规划的强化学习环境基于OpenAI Gym接口。
### 功能
- 提供3自由度的位置控制
- 计算当前位置与目标位置之间的误差
- 提供基于距离的奖励函数
### 使用示例
```python
from src.rl_env.cartesian_env import CartesianSpaceEnv
# 创建环境
env = CartesianSpaceEnv()
# 重置环境
obs = env.reset()
# 执行动作
action = env.action_space.sample()
obs, reward, done, truncated, info = env.step(action)