Facing error in getting vehicles from world #683
Unanswered
lavish123409
asked this question in
Q&A
Replies: 1 comment
-
On digging up the error, I found out that I am not able to run ... logging to /home/carla-sim/.ros/log/bbb68f3c-f518-11ee-aad8-0242ac110002/roslaunch-cef764316090-3253.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://cef764316090:41235/
SUMMARY
========
PARAMETERS
* /carla_ros_bridge/ego_vehicle_role_name: ["hero", "ego_veh...
* /carla_ros_bridge/fixed_delta_seconds: 0.05
* /carla_ros_bridge/host: localhost
* /carla_ros_bridge/passive: False
* /carla_ros_bridge/port: 2000
* /carla_ros_bridge/register_all_sensors: True
* /carla_ros_bridge/synchronous_mode: True
* /carla_ros_bridge/synchronous_mode_wait_for_vehicle_control_command: False
* /carla_ros_bridge/timeout: 2
* /carla_ros_bridge/town: Town01
* /rosdistro: noetic
* /rosversion: 1.16.0
* /use_sim_time: True
NODES
/
carla_ros_bridge (carla_ros_bridge/bridge.py)
auto-starting new master
process[master]: started with pid [3277]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to bbb68f3c-f518-11ee-aad8-0242ac110002
process[rosout-1]: started with pid [3303]
started core service [/rosout]
process[carla_ros_bridge-2]: started with pid [3310]
Traceback (most recent call last):
File "/root/carla-ros-bridge/catkin_ws/src/ros-bridge/carla_ros_bridge/src/carla_ros_bridge/bridge.py", line 24, in <module>
import carla
File "/opt/carla-simulator/PythonAPI/carla/dist/carla-0.9.15-py3.7-linux-x86_64.egg/carla/__init__.py", line 8, in <module>
File "/opt/carla-simulator/PythonAPI/carla/dist/carla-0.9.15-py3.7-linux-x86_64.egg/carla/libcarla.py", line 9, in <module>
File "/opt/carla-simulator/PythonAPI/carla/dist/carla-0.9.15-py3.7-linux-x86_64.egg/carla/libcarla.py", line 3, in __bootstrap__
ImportError: No module named util
================================================================================REQUIRED process [carla_ros_bridge-2] has died!
process has died [pid 3310, exit code 1, cmd /root/carla-ros-bridge/catkin_ws/src/ros-bridge/carla_ros_bridge/src/carla_ros_bridge/bridge.py __name:=carla_ros_bridge __log:=/home/carla-sim/.ros/log/bbb68f3c-f518-11ee-aad8-0242ac110002/carla_ros_bridge-2.log].
log file: /home/carla-sim/.ros/log/bbb68f3c-f518-11ee-aad8-0242ac110002/carla_ros_bridge-2*.log
Initiating shutdown!
================================================================================
[carla_ros_bridge-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done These are the content of def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, importlib.util
__file__ = pkg_resources.resource_filename(__name__, 'libcarla.cpython-37m-x86_64-linux-gnu.so')
__loader__ = None; del __bootstrap__, __loader__
spec = importlib.util.spec_from_file_location(__name__,__file__)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)
__bootstrap__() I searched it in the internet and found some answers which were for python2.7 version, but I am using python3.7. /usr/bin/python3 -> /etc/alternatives/python3 -> /usr/bin/python3.7 If anyone can help me out in this, I would greatly appreciate it. Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am new to CARLA and Behavior Metrics. I am trying to run the beginners' script by
$ python3 driver_carla.py -c configs/CARLA/default_carla.yml -g
but it is not able to find the vehicles in the launch file(I am thinking). Because, I am constantly receiving20: (controller_carla: 82): Waiting for vehicles!
output.On analyzing the
daefault_carla.yml
file, I found out that the world file which is being used istown_02_anticlockwise.launch
. But, in that file, I am not able to find any vehicle other than our ego vehicle.Is there any discrepancy with the file or something else that I am missing? Also, if someone can share the resources to understand all these terminologies, then it would be very helpful.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions