Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

carla sim: fix missing camera #26796

Closed
wants to merge 1 commit into from
Closed

Conversation

ebadi
Copy link
Contributor

@ebadi ebadi commented Dec 14, 2022

Passing --high_quality --dual_camera to bridge.py solved the camera issue for me.

image

Closes:
#26503 #26595

@incognitojam incognitojam added simulation running openpilot in environments like CARLA bugfix labels Dec 14, 2022
@incognitojam incognitojam changed the title Update tmux_script.sh simulator: fix missing camera Dec 14, 2022
@incognitojam
Copy link
Contributor

incognitojam commented Dec 14, 2022

is --high_quality required for this to work?

@incognitojam incognitojam changed the title simulator: fix missing camera carla sim: fix missing camera Dec 14, 2022
@ebadi
Copy link
Contributor Author

ebadi commented Dec 15, 2022

@incognitojam --high_quality is not needed, but I think UI should run in --high_quality .

Reducing simulator quality is introduced for CI purpose (Simulator: Fix CI and set low_quality default).

For CI, OP still run in low quality by default:
https://github.com/commaai/openpilot/blob/master/tools/sim/tests/test_carla_integration.py#L45

@jeroenlammersma
Copy link
Contributor

jeroenlammersma commented Dec 23, 2022

@ebadi correct, --high_quality is indeed not needed. Just now I tried for myself and passing the --dual_camera flag does the trick.

But unfortunately, there seems to be an issue with steering currently as well.

@ebadi
Copy link
Contributor Author

ebadi commented Dec 23, 2022

@ebadi correct, --high_quality is indeed not needed. Just now I tried for myself and passing the --dual_camera flag does the trick.

But unfortunately, there seems to be an issue with steering currently as well.

@jeroenlammersma Great that it works for you. Here (#26829) I am also working on refactoring bridge.py . You might be interested to try it out. If this one also doesn't work, please open a separate issue.

@jeroenlammersma
Copy link
Contributor

@jeroenlammersma Great that it works for you. Here (#26829) I am also working on refactoring bridge.py . You might be interested to try it out. If this one also doesn't work, please open a separate issue.

Looks good, great addition! Currently, I have a vacation, but when I am back I will try it out ;-).

Furthermore, perhaps interesting for you, at the moment I am supervising two student groups at the Hanze University of Applied Sciences that are improving driving with openpilot using the (CARLA) simulator as well. Their assignments are:

  • Improve manual driving by implementing manual_control.py (and if time allows, manual_control_steeringwheel.py) from CARLA in the bridge. This allows multiple key presses at once, as well as more controls (like blinkers, lights, etc).
  • Make Driving Monitoring (DM) (optionally) available in the bridge and make use of a connected webcam.

Because openpilot is (currently) illegal to use in the Netherlands, our aim is to experiment in the simulator. Next to that, we want to see if we can use the comma three and openpilot as base for the development of a virtual driving coach. So, that's why we need DM to work in a simulated environment.

If you want, I can keep you updated when their projects have some working protoypes.

Cheers, Jeroen

@ebadi
Copy link
Contributor Author

ebadi commented Dec 28, 2022

@jeroenlammersma Great that it works for you. Here (#26829) I am also working on refactoring bridge.py . You might be interested to try it out. If this one also doesn't work, please open a separate issue.

Looks good, great addition! Currently, I have a vacation, but when I am back I will try it out ;-).

Furthermore, perhaps interesting for you, at the moment I am supervising two student groups at the Hanze University of Applied Sciences that are improving driving with openpilot using the (CARLA) simulator as well. Their assignments are:

  • Improve manual driving by implementing manual_control.py (and if time allows, manual_control_steeringwheel.py) from CARLA in the bridge. This allows multiple key presses at once, as well as more controls (like blinkers, lights, etc).
  • Make Driving Monitoring (DM) (optionally) available in the bridge and make use of a connected webcam.

Because openpilot is (currently) illegal to use in the Netherlands, our aim is to experiment in the simulator. Next to that, we want to see if we can use the comma three and openpilot as base for the development of a virtual driving coach. So, that's why we need DM to work in a simulated environment.

If you want, I can keep you updated when their projects have some working protoypes.

Cheers, Jeroen

Interesting. I am on vacation until 4-5th January and until then i have no access to my laptop (using mobile phone now). When I am back i will privately share few resources/pointers with you, if it is ok to use the email address from your GitHub profile.

@adeebshihadeh
Copy link
Contributor

Both flags, --high_quality --dual_camera, were added since the CARLA system requirements are much higher than openpilot's. Closing since I think leaving both off is still the best default. #24689 describes the real fix.

But unfortunately, there seems to be an issue with steering currently as well.

We have a CI test to ensure we don't entirely break the simulator, and eventually we want to have a test for the driving quality.

@commaai commaai deleted a comment from zeroyang0809 Feb 20, 2023
@commaai commaai locked as resolved and limited conversation to collaborators Feb 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix simulation running openpilot in environments like CARLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants