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

Steering angle values have not been completely recorded. #27

Closed
BrianN92 opened this issue Apr 3, 2018 · 12 comments
Closed

Steering angle values have not been completely recorded. #27

BrianN92 opened this issue Apr 3, 2018 · 12 comments

Comments

@BrianN92
Copy link

BrianN92 commented Apr 3, 2018

I tried to run this Autonomous driving cookbook on other maps like the neighborhood. However, the steering angle values in " airsim_rec.txt" only have three values: -1, 0, and 1. I have attached one file below.
airsim_rec.txt

Don't know how to deal with it. Has anyone ever met this issue? Thank you!

distribution_plot
distribution_plot2

@mitchellspryn
Copy link
Contributor

mitchellspryn commented Apr 5, 2018

What are you using to control the car? If you're using the keyboard to drive, then there will only be -1, 0, 1 steering angles, as a key is only ever up or down. We used this steering wheel when generating data. You can also use an xbox controller as input, and you will get continuous steering angles if you map the steering controls to one of the sticks.

@BrianN92
Copy link
Author

BrianN92 commented Apr 5, 2018

@mitchellspryn Thanks for the reminder! Yes I used keyboard to drive. I tried the Logitech G29 steering wheel before, but it could not use on Airsim. Which is another unsolved issue, haha.

@BrianN92 BrianN92 closed this as completed Apr 5, 2018
@mitchellspryn
Copy link
Contributor

Are you using x360ce to map the inputs to xbox controller inputs? We had to do that.

@BrianN92
Copy link
Author

BrianN92 commented Apr 7, 2018

@mitchellspryn Yes, I tried x360ce to map the inputs, but it still could not work.

@mitchellspryn
Copy link
Contributor

mitchellspryn commented Apr 7, 2018 via email

@BrianN92
Copy link
Author

BrianN92 commented Apr 8, 2018

Yes, I did as you said. It did not work.

@BrianN92 BrianN92 reopened this Apr 24, 2018
@BrianN92
Copy link
Author

BrianN92 commented Apr 24, 2018

@mitchellspryn I bought the steering wheel you mentioned above. It did not work. Every time I connect the steering wheel with Airsim, the vehicle keep turning left with the "steering value: -1.25". The "Accel" value was 0.5 all the time. I cannot use the wheel to control car's direction, but I can do it by pushing the braking panels. Besides, there was no values of "steering', "throttle" or "break" inside the "rec.txt" file. It was so weird, so could you tell me how did you use this steering wheels to control the car? Thank you!

I did put the x360ce exe in the same directory as the AirSim binary.

@BrianN92
Copy link
Author

I found this code in CarPawn.cpp. Seams like it is related to my problems

image

@mitchellspryn
Copy link
Contributor

Hm. Are you using the binary that we provided, or the one from the AirSim page? The version we've tested with is a few iterations behind, and doesn't have that code...

@BrianN92
Copy link
Author

Actually, I tried both. They had the same problems. I added "PhysXCar" : {
"RC": {
"RemoteControlID": 0
}
} to "AD_Cookbook_Start_AirSim"file and put the x360ce exe in the "AD_Cookbook_AirSim" folder.

@mitchellspryn
Copy link
Contributor

mitchellspryn commented Apr 24, 2018

Wait. What? Adding that json to the powershell script should either do nothing or cause a syntax error.

You need to put the x360ce in the same directory as the binary that is running. I think that would be $/AD_Cookbook_AirSim/JustAssets/Binaries/Win64, not the root directory. Also, make sure that when you push buttons on the steering wheel, the corresponding buttons light up in the x360ce GUI.

@BrianN92
Copy link
Author

Fixed!! I deleted that json and put the x360ce in the correct directory. Now I can use the steering wheel to control the car! Thank you so much! I could have a good sleep now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants