Waiting for quadsim even after launching headless instance
Hi, as I've never worked with CARLA i'm using the readme as documentation source.
I'm trying to reproduce the steps on the README but i get stuck at ros2 launch ros2_quad_sim_python launch_everything.launch.py.
As even if headles instance is running the host it is not found.
I'm using docker containers, in particular: one for the CARLA headles instance and one for ros2 and quadsim.
I think the main problem is on the resolution of the host which is hosting CARLA headles simulation.
logs of the launchfile:
[INFO] [launch]: All log files can be found below /home/ros2user/.ros/log/2024-04-30-08-19-58-149329-ros2-f0ad3a4c5a-54
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [bridge-1]: process started with pid [56]
[INFO] [carla_spawn_objects-2]: process started with pid [58]
[INFO] [quad-3]: process started with pid [60]
[INFO] [rviz2-4]: process started with pid [62]
[rviz2-4] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-ros2user'
[quad-3] Starting QuadSimAndCtrl...
[quad-3] [INFO] [1714465198.954649998] [quadsim]: Starting quadsim...
[bridge-1] [INFO] [1714465199.011544374] [carla_ros_bridge]: Trying to connect to carla-container.local:2000
[rviz2-4] [INFO] [1714465199.104820667] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-4] [INFO] [1714465199.104949330] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[rviz2-4] [INFO] [1714465199.156224463] [rviz2]: Stereo is NOT SUPPORTED
[quad-3] [INFO] [1714465199.960213246] [quadsim]: Waiting for quadsim...
[quad-3] [INFO] [1714465200.960448218] [quadsim]: Waiting for quadsim...
[quad-3] [INFO] [1714465201.959899643] [quadsim]: Waiting for quadsim...
[quad-3] [INFO] [1714465202.960018207] [quadsim]: Waiting for quadsim...
[quad-3] [INFO] [1714465203.960076853] [quadsim]: Waiting for quadsim...
[bridge-1] [ERROR] [1714465204.020536427] [carla_ros_bridge]: Error: resolve: Host not found (authoritative)
[bridge-1] [INFO] [1714465204.020770368] [carla_ros_bridge]: Shutting down...
[bridge-1] Traceback (most recent call last):
[bridge-1] File "/home/ros2user/carla-ros/install/carla_ros_bridge/lib/carla_ros_bridge/bridge", line 11, in
Did you build your own docker images?
No, I'm using your docker image at the moment
Solved. The docker image provided has a default value for the carla container IP and it is carla-container.local. For some reasons that hostname was not reachable. I put the container IP and it worked.