osrf / srcsim

Space Robotics Challenge
Other
9 stars 3 forks source link

CloudSim Issues & Local Docker #224

Closed osrf-migration closed 7 years ago

osrf-migration commented 7 years ago

Original report (archived issue) by Rud Merriam (Bitbucket: rmerriam).


May as well create my own issues thread for the problems I'm having. I'll keep abreast of the other threads, also. Besides, the other help is getting really long.

Local docker builds but the script mentioned on the tutorial pages generates an error:

#!c++
docker: Error response from daemon: network vpn-br0 not found.

If I comment out the --net and --ip address lines the script runs and my code executes but, of course, hangs looking for a ros master.

Don't see any directions on how to setup a local VPN.

CloudSim Everything builds and runs but Docker quickly quits. I can SSH in and if I'm quick enough can see a log file specific to my code. The few lines show it is running with access to the ros master.

Why would Docker quit? Could my code be doing something so bad it crashes Docker? How to debug?

My github is public at https://github.com/rmerriam/mystic_src.git so you can see what I'm doing.

osrf-migration commented 7 years ago

Original comment by Rud Merriam (Bitbucket: rmerriam).


osrf-migration commented 7 years ago

Original comment by Rud Merriam (Bitbucket: rmerriam).


osrf-migration commented 7 years ago

Original comment by GoRobotGo (Bitbucket: GoRobotGo).


One suggestion for debugging would be to put a sleep 3600 statement at the end of your startup.bash

When the startup.bash is done running the docker exits

osrf-migration commented 7 years ago

Original comment by Rud Merriam (Bitbucket: rmerriam).


That helped. I forgot the code I uploaded was just a short test program to just see if it connected and ran. It worked.

Still wondering about the local docker question.

osrf-migration commented 7 years ago

Original comment by Tom Tseemceeb Xiong (Bitbucket: Tom_Xiong).


I was able access the docker over my network when I set net=host and remove the ip line in the script . I've been able to launch the docker and control it using another node to complete simulation tasks locally. Whew was trying so hard to set a vpn server and everything. Didn't even need one.

osrf-migration commented 7 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


yes as @Tom_Xiong suggested, you can just pass --net=host and remove --ip. That basically let the container access and use all the host's network interfaces

osrf-migration commented 7 years ago

Original comment by Rud Merriam (Bitbucket: rmerriam).