magmaOffenburg / RoboViz

Monitor and visualization tool for the RoboCup 3D Soccer Simulation League
Apache License 2.0
52 stars 17 forks source link

Can't see remote server drawings #109

Closed siferati closed 4 years ago

siferati commented 4 years ago

Hello, I was wondering if you could help me.

I have a docker container running on a remote server. Inside this container, I run simspark and my agent. They are run on localhost on the default ports (i.e. monitor on localhost:3200, and agent sends drawing calls to localhost:32769). These ports are published so that they can be accessed from the outside of the container, like so:

0.0.0.0:8081->3200/tcp,
0.0.0.0:8082->32769/tcp

I edited the roboviz config file on my local computer to look like this:

Networking Settings:
Auto-Connect         : true
Auto-Connect Delay   : 1000
Server Hosts         : myserver
Server Port          : 8081
Drawing Port         : 8082

Now here is my problem: although roboviz shows the image properly, the drawings are not shown. How can I make roboviz also show the drawings?

Gama11 commented 4 years ago

agent sends drawing calls to localhost:32769

I guess it would have to use the IP of your local computer rather than localhost (which would be the remote in this case).

siferati commented 4 years ago

I thought of that, but why doesn't publishing the port work too?

The agent is drawing stuff to (container)localhost:32769, which is published to remote:8082, which roboviz connects to. So shouldn't roboviz see the messages sent with the drawing requests?

Gama11 commented 4 years ago

Hm.. I just noticed:

0.0.0.0:8082->32769/tcp

RoboViz uses UDP, not TCP.

siferati commented 4 years ago

Ah, so maybe that's why! I'll give it another try tomorrow and post the results here, thanks!

siferati commented 4 years ago

Nop, changing it to UDP did not work - still no drawings showing :(

Is there a way to start roboviz in a verbose mode or something along those lines, to see what is going wrong?

Gama11 commented 4 years ago

No, but it's pretty easy to build from source / debug with breakpoints. Though I'm not sure that would help much, since you would likely just see no messages arriving...

siferati commented 4 years ago

Oh well, thanks for the help anyway! Feel free to close the issue.

Gama11 commented 4 years ago

Ok, sorrry I couldn't be of more help. :) If you do get it working eventually, I'd love to hear what the problem was.