In road_follwing, it looks like setting the value of car.steering and bias
Actually, it is set up by adding up the setting value of Bias.
It looks like you need to change car.steering_offset to change Bias.
Is that right?
road_following.iphnb
from utils import preprocess
import numpy as np
STEERING_GAIN = 0.75
STEERING_BIAS = 0.00
car.throttle = 0.15
while True:
image = camera.read()
image = preprocess(image).half()
output = model_trt(image).detach().cpu().numpy().flatten()
x = float(output[0])
car.steering = x * STEERING_GAIN + STEERING_BIAS
In road_follwing, it looks like setting the value of car.steering and bias Actually, it is set up by adding up the setting value of Bias. It looks like you need to change car.steering_offset to change Bias. Is that right?
road_following.iphnb
from utils import preprocess import numpy as np
STEERING_GAIN = 0.75 STEERING_BIAS = 0.00
car.throttle = 0.15
while True: image = camera.read() image = preprocess(image).half() output = model_trt(image).detach().cpu().numpy().flatten() x = float(output[0]) car.steering = x * STEERING_GAIN + STEERING_BIAS
class NvidiaRacecar(Racecar):