Execute the following commands:
cd ~/ros_ws/src
git clone https://bitbucket.org/theconstructcore/openai_ros.git
cd ~/ros_ws
catkin_make
source devel/setup.bash
rosdep install openai_ros
Launch Gazebo model:
roslaunch cartpole_description main.launch
Run cartpole-example: (Go to roscd cartpole_tests/script)
python reinforcement_q_learning.py
make sure python version should be 3.7.0. To check python version
python -V