carla-simulator / ros-bridge

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

carla_msgs error #653

Open 6Lackiu opened 1 year ago

6Lackiu commented 1 year ago

Hello! When I use carla ros2, run the command ros2 launch carla_ ros_ bridge carla_ ros_ Bridge.launch.py encountered the following error:

`[INFO] [launch]: All log files can be found below /home/liu/.ros/log/2022-12-12-20-43-45-074309-ub20liu-65603 [INFO] [launch]: Default logging verbosity is set to INFO [INFO] [bridge-1]: process started with pid [65605] [bridge-1] [INFO] [1670849026.578995010] [carla_ros_bridge]: Trying to connect to localhost:2000 [bridge-1] [INFO] [1670849026.782688607] [carla_ros_bridge]: Loading town 'Town01' (previous: 'Carla/Maps/Town10HD_Opt'). [bridge-1] [INFO] [1670849028.779009110] [carla_ros_bridge]: synchronous_mode: True [bridge-1] [INFO] [1670849028.779256029] [carla_ros_bridge]: fixed_delta_seconds: 0.05

[bridge-1] [INFO] [1670849028.812704073] [carla_ros_bridge]: host: localhost [bridge-1] [INFO] [1670849028.812891873] [carla_ros_bridge]: port: 2000 [bridge-1] [INFO] [1670849028.813041475] [carla_ros_bridge]: timeout: 2 [bridge-1] [INFO] [1670849028.813192936] [carla_ros_bridge]: passive: False [bridge-1] [INFO] [1670849028.813339817] [carla_ros_bridge]: synchronous_mode: True [bridge-1] [INFO] [1670849028.813487533] [carla_ros_bridge]: synchronous_mode_wait_for_vehicle_control_command: False [bridge-1] [INFO] [1670849028.813639043] [carla_ros_bridge]: fixed_delta_seconds: 0.05 [bridge-1] [INFO] [1670849028.813784656] [carla_ros_bridge]: register_all_sensors: True [bridge-1] [INFO] [1670849028.813930238] [carla_ros_bridge]: town: Town01 [bridge-1] [INFO] [1670849028.814085970] [carla_ros_bridge]: ego_vehicle: {'role_name': 'heroego_vehiclehero0hero1hero2hero3hero4hero5hero6hero7hero8hero9'} [bridge-1] [INFO] [1670849028.850291119] [carla_ros_bridge]: Shutting down... [bridge-1] Traceback (most recent call last): [bridge-1] File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_generator_py/import_type_support_impl.py", line 46, in import_type_support [bridge-1] return importlib.import_module(module_name, package=pkg_name) [bridge-1] File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module [bridge-1] return _bootstrap._gcd_import(name[level:], package, level) [bridge-1] File "", line 1014, in _gcd_import [bridge-1] File "", line 991, in _find_and_load [bridge-1] File "", line 973, in _find_and_load_unlocked [bridge-1] ModuleNotFoundError: No module named 'carla_msgs.carla_msgs_s__rosidl_typesupport_c' `

Main problem is: ModuleNotFoundError: No module named 'carla_msgs.carla_msgs_s__rosidl_typesupport_c'

How to solve this problem? Thank you!

Carla: 0.9.13 ROS2 foxy Ubuntu20.04

ferryman0723 commented 1 year ago

I met the same issue,did u resolved it? @6Lackiu