Git Product home page Git Product logo

turtlebot3_dqn's Introduction

环境

ubuntu18.04 + pytorch+ ros-melodic+gazebo

环境配置:

ubuntu18.04安装跳过

一行代码搞定rosdepc curl http://fishros.com/tools/install/rosdepc | bash

下载安装anaconda:

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2021.11-Linux-x86_64.sh

bash Anaconda3-2021.11-Linux-x86_64.sh

创建安装虚拟环境:

conda env create -f py2.yaml

conda activate py2

cd catkin_wp/src

git clone https://github.com/ROBOTIS-GIT/turtlebot3.git

git clone https://github.com/ROBOTIS-GIT/turtlebot3_simulations.git

git clone https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git

cd ..

catkin_make

source ~/catkin_wp/devel/setup.bash

roslauch turtlebot3_gazebo turtlebot3_stage1.launch

然后可以使用vscore来进行使用强化学习的代码

需要改几个地方,主要是路径问题。可以使用Ctrl+f 寻找 home来修改路径。

git clone 这个包 -不用编译

环境搭建完成???!!!

N_STATES = 28 N_ACTIONS = 5

效果:

PPO

https://www.bilibili.com/video/BV1zq4y1g7aM/

DQN:

https://www.bilibili.com/video/BV1BP4y1G7b1/

启动仿真环境: roslaunch turtlebot3_gazebo turtlebot3_stage_2.launch 在vscore启动DQN2.py

效果:环境1:150回合收敛 环境2:200回合收敛 环境3:未测试 环境4:未测试 其他环境:未测试 如果你有好的注意可以提出来,欢迎交流。QQ:2650326396 拥抱开源

turtlebot3_dqn's People

Contributors

fangxiaoshen 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.