f1tenth / f1tenth_gym_ros

Containerized ROS communication bridge for F1TENTH gym environment.
MIT License
154 stars 106 forks source link

Problem to start gym #4

Closed biagiolicari closed 4 years ago

biagiolicari commented 4 years ago

Hello, I am trying to install the gym but I've some problems. After install docker, if I try to start the gym I receive many errors such as "try to setup your network" but I tried every configuration of my network and still doesn't work. If I change in the dockerfile the network configuration from --net=host to default configuration, I can see roscore correctly launched but I can't see in the host with rostopic list the topic that was created and get an error like " Unable to communicate with the master" like the screen below. I've tried every type of network configuration and installation from 0 of ubuntu,ros and docker but it doesn't work. I tried to change my bashrc file but it doesn't work. How can I solve a problem like that ? Thank so much.

docker master

hzheng40 commented 4 years ago

The error you're seeing in the picture is caused by your ROS on the host system not being able to talk to the ROS in the docker container, which caused by not using --net=host when launching the container. You'll have to use --net=host for the sim to work properly. Can you elaborate on what error it's throwing when you do that?

akrolic commented 4 years ago

can you provide the output of export | grep ROS inside of the container and then on your local machine.

This might be an issue to do with the definition of ROS_IP or ROS_MASTER_URI

Depending on how you have it configured now will dicate what needs to be changed if thats the root cause.

hzheng40 commented 4 years ago

Closing due to inactivity.