-
Notifications
You must be signed in to change notification settings - Fork 2
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
Look into waypoint or GPS simulation #2
Comments
We need only 3 lines to change to 1) save position(x,y,z) and rotation(x,y,z) to csv file and 2) send those to drive.py. I am not sure if we should allow drive.py to set position/ rotation of the car. In that case few more lines will be required. self-driving-car-sim/Assets/Standard Assets/Vehicles/Car/Scripts/CarController.cs sample.position and sample.rotation.eulerAngles (both are Vector3) ti the CSV file
And add position and rotation to the CommandServer.cs file:
|
This is how it looks in the driving_log.csv file /Users/kuasha/Desktop/thunderhill/IMG/center_2017_02_24_13_02_03_441.jpg,/Users/kuasha/Desktop/thunderhill/IMG/left_2017_02_24_13_02_03_441.jpg,/Users/kuasha/Desktop/thunderhill/IMG/right_2017_02_24_13_02_03_441.jpg,0,0,0,1.282302E-05,179.8037:1.683794:89.80849,358.1013:7.09326:0.1524871 Lat two values are position (x,y,z) and rotation(x,y,z). |
Here is how it looks when the position and rotation data is sent to drive.py Adding print(data["position"], data["rotation"]) in the drive.py file will result a line line the two below: |
Here is the code change patch file: |
The simulator should calculate the cars current position and show it on screen, write it to record csv file and add to network packet.
The text was updated successfully, but these errors were encountered: