Closed chungcode0218 closed 9 months ago
We ended up using CARLA 0.9.14 and Ubuntu 22.04.2, although I assume there's some flexibility there. We modified the OATomobile wrapper which is an open-source gym API on CARLA. There isn't a discussion group, so feel free to raise issues when needed.
raise issues when needed.
I test OATomobile in CARLA 0.9.10 but Hello from the pygame community. https://www.pygame.org/contribute.html 4.24.3-0+++UE4+Release-4.24 518 0 Disabling core dumps. Signal 11 caught. Malloc Size=65538 LargeMemoryPoolOffset=65554 CommonUnixCrashHandler: Signal=11 Malloc Size=65535 LargeMemoryPoolOffset=131119 Malloc Size=118144 LargeMemoryPoolOffset=249280 Engine crash handling finished; re-raising signal 11 for the default handler. Good bye. Segmentation fault (core dumped) 4.24.3-0+++UE4+Release-4.24 518 0 Disabling core dumps. Signal 11 caught. Malloc Size=65538 LargeMemoryPoolOffset=65554 CommonUnixCrashHandler: Signal=11 Malloc Size=65535 LargeMemoryPoolOffset=131119 Malloc Size=118144 LargeMemoryPoolOffset=249280 Engine crash handling finished; re-raising signal 11 for the default handler. Good bye. Segmentation fault (core dumped) 4.24.3-0+++UE4+Release-4.24 518 0 Disabling core dumps. Signal 11 caught. Malloc Size=65538 LargeMemoryPoolOffset=65554 CommonUnixCrashHandler: Signal=11 Malloc Size=65535 LargeMemoryPoolOffset=131119 Malloc Size=118144 LargeMemoryPoolOffset=249280 Engine crash handling finished; re-raising signal 11 for the default handler. Good bye. Segmentation fault (core dumped) 4.24.3-0+++UE4+Release-4.24 518 0 Disabling core dumps. Signal 11 caught. Malloc Size=65538 LargeMemoryPoolOffset=65554 CommonUnixCrashHandler: Signal=11 Malloc Size=65535 LargeMemoryPoolOffset=131119 Malloc Size=118144 LargeMemoryPoolOffset=249280 Engine crash handling finished; re-raising signal 11 for the default handler. Good bye. Segmentation fault (core dumped) 4.24.3-0+++UE4+Release-4.24 518 0 Disabling core dumps. Signal 11 caught. Malloc Size=65538 LargeMemoryPoolOffset=65554 CommonUnixCrashHandler: Signal=11 Malloc Size=65535 LargeMemoryPoolOffset=131119 Malloc Size=118144 LargeMemoryPoolOffset=249280 Engine crash handling finished; re-raising signal 11 for the default handler. Good bye. Segmentation fault (core dumped)
This could be a number of things. Usually, these segfaults are due to some rendering issue regarding Vulkan or OpenGL, or maybe offscreen/on-screen things with memory capacity. I'd advise you to look at the file in OATomobile that actually runs CARLA. Specifically, look at the setup() function in oatomobile.utils.carla
By default it runs : [ os.path.join(os.environ.get("CARLA_ROOT"), "CarlaUE4.sh"), "-carla-rpc-port={}".format(port), '-opengl', "-quality-level=Epic" ]
See how you can tune this to work on the command line, and once it's working, edit the setup(). Maybe try something like adding the argument "-RenderOffScreen" to that list above, or reducing the quality level for lower memory usage.
[ os.path.join(os.environ.get("CARLA_ROOT"), "CarlaUE4.sh"), "-carla-rpc-port={}".format(port), '-opengl', "-quality-level=Epic" ]
Thanks for your response I change to
[
os.path.join(os.environ.get("CARLA_ROOT"), "CarlaUE4.sh"),
"-carla-rpc-port={}".format(port),
'-opengl',
"-quality-level=Epic"
]
and run the test code
import oatomobile
environment = oatomobile.envs.CARLAEnv(town="Town01")
observation = environment.reset() done = False
while not done:
action = environment.action_space.sample() observation, reward, done, info = environment.step(action)
environment.render(mode="human")
environment.close()
But there are some problems
File "oatomobile_test.py", line 7, in
Okay, so RenderingOffScreen fixed it? If so, and this is a new, separate issue, then maybe consult with this comment: https://github.com/carla-simulator/carla/issues/2590#issuecomment-950066180 . This might help you find what blueprint items there are for you to access. Are you sure your Content folder in CARLA is full with all blueprints? Can you bring in as many assets as you can?
Okay, so RenderingOffScreen fixed it? If so, and this is a new, separate issue, then maybe consult with this comment: carla-simulator/carla#2590 (comment) . This might help you find what blueprint items there are for you to access. Are you sure your Content folder in CARLA is full with all blueprints? Can you bring in as many assets as you can?
there are some problems still
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
4.24.3-0+++UE4+Release-4.24 518 0
Disabling core dumps.
WARNING: Version mismatch detected: You are trying to connect to a simulator that might be incompatible with this API
WARNING: Client API version = 0.9.10
WARNING: Simulator API version = c8a0b059
/home/yx/anaconda3/envs/carla_ros/lib/python3.7/site-packages/gym/logger.py:30: UserWarning: WARN: Box bound precision lowered by casting to float32
warnings.warn(colorize('%s: %s'%('WARN', msg % args), 'yellow'))
Traceback (most recent call last):
File "oatomobile_test.py", line 7, in
These errors are possibly related to the warning you've been given due to Simulator / Client version mismatch. I'd fix that first to ensure that warning isn't causing any of this
These errors are possibly related to the warning you've been given due to Simulator / Client version mismatch. I'd fix that first to ensure that warning isn't causing any of this
Thank you very much, our OATomobile is working, but i have idea to run the vint in this can you released the code about deployment or give me some guidance?
Dear author or experienced users, may I ask what environment and simulator you are using (for example, versions of Carla, Ubuntu, etc.)? Additionally, is there any ViNT-related discussion group where we can discuss together?