carla-simulator / ros-bridge

ROS bridge for CARLA Simulator
MIT License
523 stars 431 forks source link

ros-bridge couldn't fit into the latest CARLA #738

Open GoesM opened 2 months ago

GoesM commented 2 months ago

description

I'm using the Carla 0.9.15 in ROS2-humble in Ubuntu22.04.

When I launch the ros-bridge, I faced to the following logs and ros-bridge didn't work.

[bridge-1] [INFO] [1720767764.270699081] [carla_ros_bridge]: Trying to connect to localhost:2000
[bridge-1] [FATAL] [1720767764.271824643] [carla_ros_bridge]: CARLA python module version 0.9.13 required. Found: 0.9.15
[bridge-1] [INFO] [1720767764.272013648] [carla_ros_bridge]: Shutting down...
[bridge-1] Traceback (most recent call last):
[bridge-1]   File "/home/goes/ROS_Workstation/carla/carla-ros-bridge/build/carla_ros_bridge/src/carla_ros_bridge/bridge.py", line 419, in main
[bridge-1]     sys.exit(1)
[bridge-1] SystemExit: 1
[bridge-1] 
[bridge-1] During handling of the above exception, another exception occurred:
[bridge-1] 

I notice the FETAL log is [bridge-1] [FATAL] [1720767764.271824643] [carla_ros_bridge]: CARLA python module version 0.9.13 required. Found: 0.9.15

Does it mean that we stiil can't use the ros-bridge with the latest Carla ?

oliver-schumann commented 1 month ago

I think you only have to modify the following file https://github.com/carla-simulator/ros-bridge/blob/master/carla_ros_bridge/src/carla_ros_bridge/CARLA_VERSION

There are several forks of the bridge that work nicely with Carla 15 and newer ROS versions. You might find some help in these repos.

GoesM commented 4 weeks ago

it works! greatly thanks for your help ^_^