Gazebo is not running simulation after running a python script in Docker

asked 2018-04-09 03:46:16 -0500

foong0920 gravatar image

updated 2018-04-09 03:48:12 -0500

I'm trying to do run this project and running inside a docker container. After I pull and set up the container.

I run root@3ff0a951ba9e:/usr/local/gym/gym-gazebo/gym_gazebo/envs/installation# bash turtlebot_setup.bash

After that, I try to run the python script root@3ff0a951ba9e:/usr/local/gym/gym-gazebo/examples/scripts_turtlebot# python circuit2_turtlebot_lidar_qlearn.py and the training is working and running.

I'm trying to open it's gazebo interface by open another terminal $ sudo docker exec -it 3ff0a951ba9e bash, it lead me to the same container as my training running. But when I try to run gzclient It shows up nothing.

user@user:~$ sudo docker exec -it 3ff0a951ba9e bash
root@3ff0a951ba9e:/usr/local/gym# gzclient
root@3ff0a951ba9e:/usr/local/gym#

What do I need to do to visualize the training or what does I missing while setting up all the things?

I'm using ubuntu 16.04

edit retag flag offensive close merge delete

Comments

I feel this is either a Gazebo-specific question (and should thus be asked at answers.gazebosim.org), or it is too specific to erlerobot/gym-gazebo (and should thus be asked on erlerobot/gym-gazebo's issue tracker).

gvdhoorn gravatar image gvdhoorn  ( 2018-04-09 04:14:00 -0500 )edit