rl-training
Isaac Lab 强化学习训练技能 - RL 策略训练、奖励函数设计、环境配置
от MIUAV★ 30 звёзд на GitHub
Установить rl-training в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Isaac Lab RL Training Skill
用于 Isaac Lab 中的强化学习训练
何时使用
当需要以下帮助时使用此技能:
- 训练机器人 RL 策略
- 设计奖励函数
- 配置训练环境
- 评估训练结果
快速参考
安装 Isaac Lab
# 克隆仓库
git clone https://github.com/isaac-sim/IsaacLab.git
cd IsaacLab
# 创建符号链接到 Omniverse
./setup.sh
# 安装依赖
pip install -r requirements.txt
启动训练
# 运行示例
python scripts/reinforcement_learning/rl_games/train.py --task=Cartpole
RL 环境配置
创建任务
# tasks/my_task.py
from isaaclab.envs import ManagerBasedRLEnv
class MyTask(ManagerBasedRLEnv):
def __init__(self, cfg, sim_params, physics_engine, device, headless):
super().__init__(cfg, sim_params, physics_engine, device, headless)
def _reset_idx(self, env_ids):
# 重置环境
pass
def _compute_obs(self):
# 计算观察
pass
def _compute_reward(self):
# 计算奖励
pass
奖励函数
# 跟踪目标奖励
def tracking_reward():
return -torch.norm(robot_pos - target_pos)
# 关节限流奖励
def joint_limit_penalty():
return -torch.sum(torch.clamp(joint_pos - joint_limits, min=0))
# 能量惩罚
def energy_penalty():
return -torch.sum(torch.abs(joint_vel * joint_effort))
训练配置
配置文件
# 训练配置
agent:
name: rsl_rl
policy:
actor_hidden_dims: [256, 256, 256]
critic_hidden_dims: [256, 256, 256]
algorithm:
name: PPO
num_steps_per_env: 24
learning_rate: 0.0003
num_learning_epochs: 5
num_mini_batches: 4
clip_param: 0.2
gamma: 0.99
lam: 0.95
runner:
policy_class: ActorCritic
algorithm_class: RSL_RL
num_steps_per_env: 24
max_iterations: 1500
save_interval: 50
启动训练
python scripts/reinforcement_learning/rl_games/train.py \
--task=MyRobotTask \
--headless \
--num_envs=2048
评估
测试策略
python scripts/reinforcement_learning/rl_games/play.py \
--task=MyRobotTask \
--num_envs=10 \
--checkpoint=outputs/model.pt
常见问题
问题 1: 训练不稳定
解决方案:调整学习率,降低批大小
另见
- robot-sim - 机器人仿真
- sensor-sim - 传感器仿真
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rl-training?
Isaac Lab 强化学习训练技能 - RL 策略训练、奖励函数设计、环境配置
Как установить скилл rl-training?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rl-training запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…