openai_ros example in local computer does not work.
Hello. I'm trying to this openai_ros gym tutorials, not using ROS Development Studio(RDS).
I already checked that it does work in RDS following step by step. There was not problem at all.
BUT, I couldn't do this same tutorial in my local computer. It was troubled on the just first step.
If I type the following on my local command terminal,
roslaunch gym_construct main.launch
then it shows that
[ INFO] [1537961641.295151763, 0.348000000]: DiffDrive(ns = //): Advertise joint_states
[ INFO] [1537961641.295818023, 0.348000000]: DiffDrive(ns = //): Try to subscribe to cmd_vel
[ INFO] [1537961641.298928159, 0.348000000]: DiffDrive(ns = //): Subscribe to cmd_vel
[ INFO] [1537961641.299555014, 0.348000000]: DiffDrive(ns = //): Advertise odom on odom
[spawn_turtlebot_model-2] process has finished cleanly
log file: /home/parkbj/.ros/log/043fb95e-c180-11e8-8ab1-7085c22a655c/spawn_turtlebot_model-2*.log
And then, there is nothing happened. Gazebo has to be loaded, but NOT.
This problem is not only for local computer. It does though for RDS.
If I just type the same command in the Shell of RDS, instead of Simulations tap > Select a launch file > main.launch, then I get a exactly same result.
I want to try this tutorial in local computer to integrate a reinforcement learning part included in it with my own robot later.
However, how to do this tutorial in the local computer, not using RDS is nowhere.
Please let me know this.
FIY, the following is the all step of my trials on command terminal in local computer for doing this tutorial.
Download Turtlebot2Maze pkgs, and set branch.
cd ~/catkin_ws/src git clone https://bitbucket.org/theconstructcore/turtlebot.git cd ~/catkin_ws/src/turtle git fetch && git checkout kinetic cd ~/catkin_ws catkin_make source devel/setup.bash
Download openai_ros pkgs, and set branch.
cd ~/catkin_ws/src git clone https://bitbucket.org/theconstructcore/openai_ros.git cd ~/catkin_ws/src/openai_ros git fetch && git checkout kinetic-devel cd ~/catkin_ws catkin_make source devel/setup.bash
Download openai_examples_projects pkgs, and set branch.
cd ~/catkin_ws/src git clone https://bitbucket.org/theconstructcore/openai_examples_projects.git cd ~/catkin_ws/src/openai_examples_projects git fetch && git checkout tutorials cd ~/catkin_ws catkin_make source devel/setup.bash
Download open_ai_gym_construct pkgs, and set branch.
cd ~/catkin_ws/src git clone https://bitbucket.org/theconstructcore/open_ai_gym_construct.git cd ~/catkin_ws/src/open_ai_gym_construct git fetch && git checkout master cd ~/catkin_ws catkin_make source devel/setup.bash
Launch gym_construct main.launch file in command terminal.
roslaunch gym_construct main.launch
Then, the command terminal shows this result. (This is exactly same with the result of shell in RDS)
parkbj@parkbj-desktop:~$ roslaunch gym_construct main.launch ... logging to /home/parkbj/.ros/log/043fb95e-c180-11e8-8ab1-7085c22a655c/roslaunch-parkbj-desktop-4063.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. xacro: Traditional processing is deprecated. Switch to --inorder processing! To check for compatibility of your document, use option --check-order. For more infos, see http://wiki.ros.org/xacro#Processing_Order deprecated: xacro tags should be prepended with 'xacro' xml namespace. Use the following script to fix incorrect usage: find . -iname "*.xacro" | xargs sed -i 's ...
Remember that if you want to execute the demos locally you have to have the simulations installed in your computer (ROSDS has them installed by default).
Hi, @danny p. Would like to know if the gym_gazebo in open_ai_gym_construct is actually complete package? Should I use the original gym_gazebo instead? Here is the link: https://github.com/erlerobot/gym-gazebo
hello @danny p , I did all the installation you mentioned in your question. However I am receiving the error message below
resource not found: create_description ROS path [0]=/opt/ros/kinetic/share/ros ROS path [1]=/home/user/catkin_ws/src ROS path [2]=/opt/ros/kinetic/share None
do you know why that is?
I'm also trying to using
openai_ros
andgym
. And I wonder whether you did it in python3 env. Would it be ok if I launch it without python3 env?