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

Get images from the game #33

Closed
Tak-Au opened this issue Nov 17, 2017 · 8 comments
Closed

Get images from the game #33

Tak-Au opened this issue Nov 17, 2017 · 8 comments
Assignees
Labels

Comments

@Tak-Au
Copy link

Tak-Au commented Nov 17, 2017

I am able to get the server and client to run. I loook though the python example.py. I am trying to have the image and user action save so I can try out behavior cloning. However I can’t seem to get image save although I set save image to true in the python example file. I

@nsubiron
Copy link
Collaborator

Yes, you are right, there is a bug in the current Python implementation. We will fix it asap. Sorry about this

@nsubiron nsubiron added the bug label Nov 17, 2017
@Tak-Au
Copy link
Author

Tak-Au commented Nov 17, 2017

Is there anything i can help to solve this problem?

@Tak-Au Tak-Au closed this as completed Nov 18, 2017
@nsubiron
Copy link
Collaborator

Hey, thanks for offering! At the moment we are discussing how to fix this, so not much you can help, but it's appreciated :) we'll come with a solution soon

@Tak-Au
Copy link
Author

Tak-Au commented Nov 18, 2017

I edited the carla_manual_control.py to allow for image and data recording. I am currently after imitation learning. My goal is for be able to interface with Keras model to allow for the model to drive the car.

@naveen7v
Copy link

@nsubiron I am unable to save the images too... what is the work-around to get the images ...

Thank you

@nsubiron
Copy link
Collaborator

Hi @naveen7v,

You can check the client_example.py to see how is done. You can save the images there by running with the -i switch

$ ./client_example.py -i

Internally, the images received from the simulator have a member function to save the image as png

measurements, sensor_data = client.read_data()

for name, measurement in sensor_data.items():
    measurement.save_to_disk('filename.png')

@naveen7v
Copy link

naveen7v commented Mar 26, 2018

@nsubiron

Dear sir...the client_example.py is as you say and i ran it with the -i switch,
but the client.read_data() returns a empty sensor_data dict... but measurements are there

I just have rgb camera sensor enabled...is it a problem in my side?

Edit:

When i ran the carla server using the build from source method ...the sensor data are saved to disk

Thank you

@vnmr
Copy link

vnmr commented Mar 23, 2021

here

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

No branches or pull requests

4 participants