carla icon indicating copy to clipboard operation
carla copied to clipboard

CarSim manual control example not working

Open svanimisetti opened this issue 3 years ago • 4 comments

I am unable to use CarSim plugin example in CARLA as per instructions in the documentation. The following information should help reproduce the issue.

CARLA version: 0.9.13 Platform/OS: Windows 10 Problem you have experienced: manual_control_carsim.py does not use CarSim vehicle model physics What you expected to happen: CARLA to use CarSim model for physics - but it does not.

Steps to reproduce:

  1. Download latest version of CARLA and install to C:\CARLA
  2. CarSim program installed to C:\CarSim2021p1_prog. Open program and export UE4 example (Run Control dataset -> External Control, Wrapper -> Unreal Engine 4 Plug-in, Lead Vehicle) to C:\CarSim2021p1_data\ue4simfile.sim
  3. Start CarSim GUI or license server using C:\CarSim2021p1\Programs\cs-lm-cli.exe to acquire solver license.
  4. Download CarSim UE4 plugin v2021.1 r166435 from MSC website and unzip the contents to C:\CARLA\CarlaUE4\Plugins\CarSim
  5. Start CARLA server using cd C:\CARLA && CarlaUE4.exe -windowed -carla-server -carla-no-networking -quality-level=Low
  6. Modify line 419 in manual_control_carsim.py to:

world.player.enable_carsim("C:/CarSim2021p1_data/ue4simfile.sim")

  1. Start CarSim example provided with CARLA installation using cd C:\apps\CARLA\PythonAPI\examples && python manual_control_carsim.py
  2. The pygame console starts - and I can control the vehicle. Press k to switch to CarSim solver as per python code (line 419). However, I think CarSim solver is never used, as the solver output and log files are not being written to the CarSim results folder for this testrun (C:\CarSim2021p1_data\Results\Run_dd7a828d-4b14-4c77-9d09-1974401d6b25)

Do I need to compile CARLA from source on my computer to be able to run the CarSim example? This is not clearly mentioned in the documentation. If re-compilation is not needed, it would be helpful if the steps to install the CarSim plugin into CARLA installation are clearly explained.

svanimisetti avatar Dec 11 '21 16:12 svanimisetti

Hello, I have same problem, too.

When I print the output of world.player.enable_carsim("C:/CarSim2021p1_data/ue4simfile.sim") after modifying the line 419 in 'manual_control_carsim.py', the output is Nonetype.

Can you solve that problem??

woojmn avatar Jan 07 '22 04:01 woojmn

Hello, I had a similar experiance of crash in carsim plugin using carla 0.9.13 compiled from source and CarSim_UE4.26_Plugin_v2021.0.0_2020-12-14_r153946.zip with the sim file provided at VehicleSim_Plugin-Example-4.26_Project-r154045.zip I could see carla output saying loading library and immediately saying releasing library :

Loading simfile: .../ue4simfile.sim Loading library: /tmp/VSSuxK9E7 Releasing library

Did anyone have a working experiance of carla + carsim on ubuntu 18.04?

crabiner avatar Mar 13 '22 15:03 crabiner

hi, i'm using Linux version of both and Carsim not working either. On your procedure 8, you mentioned pressed k, did you try to press CTRL + k? Because in the script it says "event.key == K_k and (pygame.key.get_mods() & KMOD_CTRL)"

shengkaicui avatar Apr 15 '22 06:04 shengkaicui

The problem has been solved??I have the same problem.

jy723 avatar Apr 19 '22 08:04 jy723

Hi, are you able to solve this issue ? I am also having this problem and could not figure out, how to deal with it. If you have any progress on it, could you please share some information.

sushil-bhatta avatar Dec 19 '22 13:12 sushil-bhatta

No progress was made

On Mon, 19 Dec 2022 at 15:47 sushil-bhatta @.***> wrote:

Hi @crabiner https://github.com/crabiner, are you able to solve this issue ? I am also having this problem and could not figure out, how to deal with it. If you have any progress on it, could you please share some information.

— Reply to this email directly, view it on GitHub https://github.com/carla-simulator/carla/issues/4963#issuecomment-1357699380, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYVYMPUCN7TFBRYTLXCKNDWOBRP3ANCNFSM5J3E4E4Q . You are receiving this because you were mentioned.Message ID: @.***>

crabiner avatar Dec 19 '22 18:12 crabiner

same problem, and unable to solve this issue, by far.

szyvcdc avatar Apr 23 '23 04:04 szyvcdc

could someone send me the plugin file and sim file?[email protected] I want to have a try

Pt0lemaeus avatar Nov 02 '23 03:11 Pt0lemaeus