So I have an AWS ec2 instance that I am trying to run gzserver on and then locally I want to connect to it with gzclient. I am working with gazebo-2.2
These are my steps:
AWS instance:
ssh into instance (I try ssh -X, ssh -Y and ssh)
source /usr/share/gazebo/setup.sh
GAZEBO_IP=[aws_public_ip] GAZEBO_MASTER_URI=[aws_public_ip] gzserver worlds/shapes.world
Locally:
source /usr/share/gazebo/setup.sh
GAZEBO_IP=[local_public_ip] GAZEBO_MASTER_URI=[aws_public_ip] gzclient
The client appears to connect to the server. The gazebo GUI appears but the world does not, just a black screen. After some time both the server and client eventually crash.
But if I run both gzserver and gzclient on the same machine (AWS instance or locally) it works.
I setup my AWS instance and my machine to accept all traffic on all ports so I don't think that could be the problem.
Any ideas would help!
Originally posted by catalyst294 on Gazebo Answers with karma: 23 on 2014-09-27
Post score: 2
Original comments
Comment by nkoenig on 2014-09-30:
the GAZEBO_MASTER_URI
environment variable need to be of the form: XXX.XXX.XXX.XXX:PORT. For example: 192.168.1.10:12345. Are you setting the port? AWS may also block the port you have specified. You should check the permission on your instance.
Comment by catalyst294 on 2014-09-30:
I have tried with the port and without it. In the question I said I updated the security settings to allow all traffic on all ports, without that the gzclient GUI did not enough show up. Also this is the format of the ip address I am using.
Comment by catalyst294 on 2014-10-05:
@nkoenig so this setup appears to be correct to you? I am not missing any environment variables or running the wrong commands? It seems like there might be an issue with my EC2 setup.