ros-bridge icon indicating copy to clipboard operation
ros-bridge copied to clipboard

carla_msgs error

Open 6Lackiu opened this issue 2 years ago • 1 comments

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.812487498] [carla_ros_bridge]: Parameters: [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 "<frozen importlib._bootstrap>", line 1014, in _gcd_import [bridge-1] File "<frozen importlib._bootstrap>", line 991, in _find_and_load [bridge-1] File "<frozen importlib._bootstrap>", 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

6Lackiu avatar Dec 12 '22 13:12 6Lackiu

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

ferryman0723 avatar May 04 '23 05:05 ferryman0723