Closed geevargs closed 6 years ago
I use the selected viewport when I press play /DroneLab/MyProject2$./build.sh Using clang version '3.8.0' (string), 3 (major), 8 (minor), 0 (patch) @progress push 5% @progress 'Generating code...' 0% @progress 'Generating code...' 67% @progress 'Generating code...' 100% @progress pop Using bundled libc++ standard C++ library. /bin/sh -c '/bin/sh "/local/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/FixDependencies.sh" && echo "Dummy" >> "/local/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UE4Editor/Development/UE4Editor.link"' Target is up to date
This is the error I am getting: 2017.10.04-22.10.11:129][142]LogTemp:Warning: called APyServerTickActor::BeginPlay
loading libfile /DroneLab/MyProject2/Binaries/Linux/libUE4Editor-MyProject2.so
start loading lib file
done loading lib file
pyinit imported
Traceback (most recent call last):
File "
It seems that it has some issues with the OpenCV installation.
first to try to install the libpangocairo manually in the unreal docker image by running:
sudo apt-get install libpangocairo-1.0-0
If that doesn't help, try to rebuild the image with the nocache flag e.g.
cd dockers/unreal_engine_4 && ../build --nocache
Please also try installing
sudo apt-get install libpango1.0-dev
in the same way before recompiling the image
It says project file not found and I can change /DroneLab/MyProject2 but I still get the pyinit not found
if i modify the path to the path in the docker and it runs but gives this error and I have already installed sudo apt-get install libpangocairo-1.0-0 & sudo apt-get install libpango1.0-dev and recompiled the image but still get the same error
you need to change the path in the script set_ue4_bridge.sh
and run it again e.g.
./set_ue4_bridge.sh
also, I think I misled you :( when you start the unreal docker image you need to give it the project file path on the host machine e.g.
PROJECT_FILES_DIR=<your host project file dir (absolute path)> ./run_image.sh
I am gonna try reinstalling it again with the PROJECT_FILES_DIR=<your host project file dir (absolute path)> ./run_image.sh
You don't need to reinstall it again. just stop the image and run it again:
./stop.sh
PROJECT_FILES_DIR=<your host project file dir (absolute path)> ./run_image.sh
I just wanna know the Project Dir is from the Host or the docker...it works with the docker
DroneLab$cd MyProject2/
/DroneLab/MyProject2$./build.sh
ERROR: System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/sujith/DroneSimLab/MyProject2/MyProject2.uproject".
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) <0x7f01f5d5d2c0 + 0x001f4> in
The path needs to be from the docker machine. Since the unreal engine is running under docker, it is not aware of the host file system
upgraded unreal from 4.14 to 4.17.2 now it deosnt get data from sitl
I did a ping test from the SITL image to the host works fine...and I did a print after line 100 and before line 83
It not reading the print in line 86
You are right , it is a network issue. Did you change the --net=host flag to something else when you run the docker image?
No I ran it as is
I changed line RUN 22 : useradd -o -u $UID docker and line 17 I added RUN apt-get -y install software-properties-common python-software-properties
Did you run the example properly?
you need to run in each tmux pane:
python drone_main.py
and the hit the play button in the editor
show me the tmux screen after you do that.
I am trying to understand if the drones are not moving only in the unreal engine or also in the SITL? do you see the position moves in the tmux windows?
It doesn't move in either the SITL or unreal its like it doesn't reach either of them.
I am suspecting the IP addresses might have changed. Take a look at the config file: demos/unreal_proxies/two_drones/config.py make sure the IP addresses there are correct. This can happen when you have a few docker images running and starting in an order I didn't expect. Make sure that the IP address of zmq_pub_unreal_proxy is indeed 172.17.0.1.
also, take a look at the "demos/unreal_proxies/two_drones/unreal_proxy.py" in line 28. this is how I calculate the IP address of the drone docker containers (we have two) and the unreal prints it to the screen make sure these addresses are the right addressed also.
I checked in my working version these are the IPs of the three containers: drone 1 is 172.17.0.2 drone 2 is 172.17.0.3 the unreal editor is 172.17.0.1
you can use ip addr show
to see the addresses
1) config.py shows zmq_pub_drone_fdm=('172.17.0.2',5566) and zmq_pub_unreal_proxy=('172.17.0.1',5577) and in ifconfig docker0 is 172.17.0.1. 2) connecting to tcp://172.17.0.3:5566 and tcp://172.17.0.2:5566 in unreal engine docker
please show me the output of the ip addr show
of the three containers.
I am checking to see if its a firewall configuration and I did a iptables -F and that cleared it up....It works now
Good! Let me know if you still have stability issues. The next step will be to try to run it a standalone game