question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Carla camera data not showing in openpilot UI. Openpilot not working with Carla

See original GitHub issue

Describe the bug openpilot did not work with carla. openpilot UI did not show camera data. Client in carla did not move at all.

How to reproduce or log data Console output:

Killing old publisher: roadCameraState
Traceback (most recent call last):
  File "./bridge.py", line 69, in cam_callback
    pm.send('roadCameraState', dat)
  File "/openpilot/cereal/messaging/__init__.py", line 248, in send
    self.sock[s].send(dat)
  File "cereal/messaging/messaging_pyx.pyx", line 149, in cereal.messaging.messaging_pyx.PubSocket.send
cereal.messaging.messaging_pyx.MultiplePublishersError

Steps to reproduce the behavior:

  1. follow steps in setup
  2. ./start_carla.sh
  3. ./start_openpilot_docker.sh

Additional context

Operating system: Ubuntu 20.04 NVIDIA-SMI: 470.63.01 CUDA Version: 11.4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
pgchuicommented, Oct 8, 2021

@jwolffe I managed to fix the “Unavailable Communication Issue between Processes” by disabling line 254-260 in selfdrive/controlsd.py. I got this solution with the hints in

“communication issue between processes” see github issue - https://github.com/commaai/openpilot/issues/2501 disable the issue in controllerd:212 controlsd.py - CARLA

Detailed steps:

  1. compile openpilot
git clone --recurse-submodules https://github.com/commaai/openpilot.git
cd openpilot/tools
./ubuntu_setup.sh
cd ..
./update_requirements.sh
USE_FRAME_STREAM=1 scons -j$(nproc)
  1. run Carla in Terminal 1
  2. run openpilot in Terminal 2
cd openpilot/tools/sim
./launch_openpilot.sh
  1. run bridge.py in Terminal 3
cd openpilot/tools/sim
./bridge.py
2reactions
jwolffecommented, Oct 7, 2021

The fix appears incomplete. Carla video appears in the UI, but hitting the 1 or 2 keys causes “openpilot Unavailable Communication Issue between Processes” message. Openpilot is still not working with Carla.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Retrieve simulation data - CARLA Documentation
Retrieve simulation data. Learning an efficient way to retrieve simulation data is essential in CARLA. This holistic tutorial is advised for both, ...
Read more >
openpilot Documentation — openpilot docs 0.8.17 ...
What is openpilot? Running in a car. Running on PC. Community and Contributing. User Data and comma Account. Safety and Testing. Directory Structure....
Read more >
george hotz archive - YouTube
comma ai | George Hotz | Do openpilot tools work ? ... 00:37:07 unlogger (real data online) 00:44:55 replay (c++ unlogger) 00:49:45 CARLA...
Read more >
comma ai | Willem Melching | The History of openpilot - YouTube
comma ai | Willem Melching | openpilot team | The History of ... problem only 00:50 A car filled with computers 01:00 Cameras,...
Read more >
UvA autonomous driving: Labbook 2020
json Town02 starts nicely, but waits on a CARLA simulation to start. Unfortunatelly, ./CarlaUE4.sh fails on warning: Not allowed to force ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found