Hi, how can I get autopilot parameters for a vehicle, modify them and send them back to the vehicle?
My goal is to have a car which would be run by autopilot, but where autopilot would control the steering and my code would control throttle and brake. Is it possible to divide control in this way?
I am trying to modify manual_control.py in order to test this. This is what the documentation says about getting the autopilot parameters and modifying them:
measurements, sensor_data = carla_client.read_data()
control = measurements.player_measurements.autopilot_control
//modify here control if wanted.
However as far as I can see carla.Client has no method read_data, so I assumed this is outdated info.
I have tried doing this:
// modify the VehicleControl
I can see that this has some impact but the behaviour of the vehicle is erratic. Are these the right functions to do this?
Any help is appreciated.