Connecting OpenAI Gym and ROS - kairproject/kair_algorithms_draft GitHub Wiki
Contents
- Introduction
- Backgrounds 1.1 RL algo 1.2 Robotics
- Open Manipulator
2.1 Dependencies
2.2 Installation - Create the open manipulator environment
- References
0. Introduction
Openai Gym์ Environments๋ฅผ ์ ๊ณตํจ์ผ๋ก์จ ๊ฐํํ์ต ์๊ณ ๋ฆฌ์ฆ์ ๋น๊ตํ๋๊ฒ์ ๊ฐ๋ฅํ๊ฒ ํ๋ค. ํ์ง๋ง Openai Gym์์์ ๋ก๋ด ํ์ต ํ๊ฒฝ์ Gazebo๋ฅผ ์ด์ฉํ๋ ROS ๊ธฐ๋ฐ์ ๋ก๋ด๋ค์ ํ์ตํ๊ฒ๋ ๋ชปํ๋ ๋จ์ ์ด ์๋ค. ๋ณธ ํ์ด์ง๋ ์ด๋ฌํ Openai Gym๊ณผ ROS๋ฅผ ์ฐ๊ฒฐํ์ฌ Gazebo์์์์ Robot๊ณผ Gym ํ๊ฒฝ์ ํตํด ๊ฐํํ์ต์ ์ํํ๋ ๊ฒ์ ๋ชฉ์ ์ผ๋ก ํ๋ค.
1. Openai_ros package
๋จผ์ openai_ros package๋ฅผ ์ค์นํ์ฌ์ผํ๋ค.
package๋ ์์ ๊ทธ๋ฆผ๊ณผ ๊ฐ์ class๋ฅผ ํฌํจํ๋ค.
Training Environments:
- GazeboEnvironment: Gazebo์ Openai ํ๊ฒฝ์ ์ฐ๊ฒฐํ๋ค. openai_ros package์์ robot_gazebo_env.py์ class code๋ฅผ ํ์ธ ํ ์ ์๋ค. ์์ ์ด ํ์ํ ๊ฒฝ์ฐ ์ด๊ณณ์์ ํ์ธ ํ๋ฉด ๋๋ค.
- RobotEnvironment: ROS ๊ธฐ๋ฐ์ ์ฃผ์ ๋ก๋ด๋ค์ ์ง์ํ๋ค. ์ผ์ ์ ๋ณด๋ฅผ ๋ฐ์์ค๊ฑฐ๋ actions๋ฅผ ๋ณด๋ผ ๋ ์ฌ์ฉ๋๋ค.
- TaskEnvironment: GazeboEnvirionment์ RobotEnvironment์ ํจ๊ป ๋ก๋ด์ ํ์ต ์ํฌ๋ ์ํ๋ task์ ๋ํ ์ ์๊ฐ ์๋ class์ด๋ค.
Training Script:
1.1 Dependencies
1.2 Installation
2. Open Manipulator
2.1 Dependencies
2.2 Installation
3. Create the open manipulator environment
4. References
- openai_ros wiki: http://wiki.ros.org/openai_ros
- open manipulator manuel: http://emanual.robotis.com/docs/en/platform/openmanipulator/ https://github.com/ROBOTIS-GIT/open_manipulator
- gazebo and ros: http://gazebosim.org/tutorials/?tut=ros_control
- reinforcement learning codes: https://github.com/medipixel/rl_algorithms