Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCub_SIM simulator not work in docker robotology/icub #501

Closed
niudong1001 opened this issue Mar 20, 2018 · 6 comments
Closed

iCub_SIM simulator not work in docker robotology/icub #501

niudong1001 opened this issue Mar 20, 2018 · 6 comments

Comments

@niudong1001
Copy link

Hello bro!
I have downloaded the docker file by docker pull robotology/icub command,and it is work well when i run yarpserver but when i run iCub_SIM,i got the error below:

[INFO]Adding video texture face
yarp: Port /icubSim/texture/face active at tcp://172.17.0.2:10049/
[INFO]Adding video texture screen
yarp: Port /icubSim/texture/screen active at tcp://172.17.0.2:10050/
[INFO]Adding video texture sky
yarp: Port /icubSim/texture/sky active at tcp://172.17.0.2:10051/
[DEBUG]***** OdeSdlSimulation::simLoop 
Segmentation fault (core dumped)

Is it because of docker?
Waiting for response,thanks!

@pattacini
Copy link
Member

Not completely sure but @diegoferigo might be of some help in this respect.

@diegoferigo
Copy link
Member

Can you please post how you create the container? If you want to use GUIs, you need to instruct docker how to access the host's Xserver.

@niudong1001
Copy link
Author

Thanks, @diegoferigo. I guess it must be the reason you mentioned so i made some configurations according to can-you-run-gui-apps-in-a-docker-container. But it is still not work so maybe i will try setup on my ubuntu system rather than docker.

@diegoferigo
Copy link
Member

There are many ways to share Xserver. Don't do complicated ways, here you can find an old setup of my ROS image. Now I switched to a more secure way, but the command you find in the link is the easiest way to get it working.

@diegoferigo
Copy link
Member

diegoferigo commented Mar 26, 2018

I had some time to look into this issue, and with the image you have I managed to get iCubGui successfully running. Here below the commands I used:

$ xhost +local:root
$ docker run -it --rm \
      -e DISPLAY \
      -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
      robotology/icub \
      iCubGui
$ xhost -local:root

The image works out-of-the-box for intel-based machines. If your laptop has an Nvidia card (as mine) you need a more complex configuration, which involves nvidia-docker. Here is a pointer to a simple test for future reference.

@arfan786
Copy link

How can create image in icub simulator please help me in code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants