Giter Club home page Giter Club logo

rl_in_ros's Introduction

本地配置

Ubuntu20.04
Gazebo-11
ROS-noetic

mkdir ~/catkin_ws
cd catkin_ws
mkdir src
cd src
git clone [email protected]:bithuanglq/RL_in_ROS.git
cd ..
catkin_make

提示

代码参考: https://blog.csdn.net/qq_33361420/article/details/118222009

  1. gym from 0.26.2 to 0.19.0

  2. 修改 openai_examples_projects/my_turtlebot3_openai_example/config/my_turtlebot3_openai_qlearn_params_v2.yaml 第三行为自己的 catkin 包路径

  3. roslaunch my_turtlebot3_openai_example start_training_v2.launch

  4. 可能 noetic 版本影响的只是 turtlebot(模型包) 模型编译,因为 openai_ros(地图包) 和 openai_examples_projects(RL算法) 包不受影响;逻辑关系是这样的,openai_ros在GazeboEnvironment下定义了多个RobotEnvironment,openai_examples_projects根据RobotEnvironment定义多个TaskEnvironment,每个TaskEnvironment下包含强化学习(RL)算法和训练代码

  5. 在 openai_examples_projects/my_turtlebot3_openai_example/scripts/ 下修改 RL 算法和训练代码

  6. 自定义任务环境就是重写一个与src/openai_ros/task_envs目录下相似的环境类, 在定义好环境类后,需要在src/openai_ros/task_envs/task_envs_list.py文件中,将自定义的环境注册到gym中。简单理解就是给你定义的环境命名,可以通过openai_ros.openai_ros_common.StartOpenAI_ROS_Environment函数得到自定义的环境

  7. openai_ros 中 turtlebot2 需要下载turtlebot包,但默认的TaskEnvironment配置是 kinetic-gazebo9

cd ~/catkin_ws/src
git clone https://bitbucket.org/theconstructcore/turtlebot.git
cd turtlebot
git checkout kinetic-gazebo9

rl_in_ros's People

Contributors

bithuanglq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.