code-iai / ROSIntegration

Unreal Engine Plugin to enable ROS Support
MIT License
412 stars 133 forks source link

Connecting to the bridge fails #147

Closed MahyarBayran closed 3 years ago

MahyarBayran commented 3 years ago

I see that there are no issues as basic as this is listed but I have been struggling with it for a while.

Basically, I can't connect to the rosbridge_server and I get the error in Unreal:

"LogROS: Error: Failed to connect to server 127.0.0.1:9090. Please make sure that your rosbridge is running."

I'm running Unreal 4.26 on Windows, Ubuntu 20.04 on a virtual machine using the Bridged Adapter network config. I'm using ros noetic distro and I have tried launching the rosbridge_server using these commands and it starts successfully, but none seem to do the trick.

roslaunch rosbridge_server rosbridge_tcp.launch bson_only_mode:=True roslaunch rosbridge_server rosbridge_tcp.launch bson_only_mode:=True host:="127.0.0.1"

Any ideas? Could it be because of versions?

MahyarBayran commented 3 years ago

I fixed the problem but setting the rosbridge server host to internet ip of my virtual box (instead of 127.0.0.1), which I got from ifconfig.