Skip to content

Comments

dockerize carla + openpilot#2011

Merged
pd0wm merged 60 commits intomasterfrom
runcarla
Sep 10, 2020
Merged

dockerize carla + openpilot#2011
pd0wm merged 60 commits intomasterfrom
runcarla

Conversation

@nuwandavek
Copy link
Contributor

Description : Dockerize openpilot to run on Dockerized Carla

  • Dockerfile.openpilot : nvidia/opengl can be stripped down

  • Hacky changes in the following files : selfdrive/camerad/main.cc, selfdrive/controls/controlsd.py, selfdrive/manager.py, selfdrive/modeld/modeld, tools/sim/bridge.py,

  • Other changes : tools/sim/lib/keyboard_ctrl.py, tools/sim/start_carla_docker.sh

@adeebshihadeh adeebshihadeh added PC Issues related to running openpilot on PC simulation running openpilot in environments like CARLA labels Aug 11, 2020
@adeebshihadeh
Copy link
Contributor

adeebshihadeh commented Aug 11, 2020

TODO

self.events.add(EventName.fcw)
if self.sm['model'].frameDropPerc > 1:
self.events.add(EventName.modeldLagging)
#self.events.add(EventName.modeldLagging)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be gated between an environment variable. Maybe SIMULATION=1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, this should run fast enough with the keras runner

pm = messaging.PubMaster(['gpsLocationExternal'])
while 1:
dat = messaging.new_message('gpsLocationExternal')
if dat is not None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should never be none

pm.send('driverState', dat)
time.sleep(0.1)

# dmonotirongd output
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

cd ../
mv carla_tmp carla
fi
# Requires nvidia docker - https://github.com/NVIDIA/nvidia-docker
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Find a good check if nvidia-docker is installed. Maybe something with apt?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s commented out below this line

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, the which nvidia-docker check doesn't work, that's why it's commented out.

@pd0wm pd0wm merged commit c5dfbe7 into master Sep 10, 2020
@pd0wm pd0wm deleted the runcarla branch September 10, 2020 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PC Issues related to running openpilot on PC simulation running openpilot in environments like CARLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Errors when running with Carla in a docker container modeld crashes when running Carla simulation Communication Error on sim with carla

4 participants