You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to specify the controller in OpenCDA? I know there is a PID controller in the source code. But I cannot find where you define the controller type. Could you please provide some comments and help on this? Thx.
The text was updated successfully, but these errors were encountered:
in the default.yaml you can specify the controller like this
controller:
type: pid_controller # this has to be exactly the same name as the controller py fileargs:
lat:
k_p: 0.75k_d: 0.02k_i: 0.4lon:
k_p: 0.37k_d: 0.024k_i: 0.032dynamic: false # whether use dynamic pid settingdt: ${world.fixed_delta_seconds} # this should be equal to your simulation time-stepmax_brake: 1.0max_throttle: 1.0max_steering: 0.3
and you need write some controller algorithm in opencda/core/actuation/xxx_controller.py
I don't know if it's right or not, I hope it can help you.
in the default.yaml you can specify the controller like this
controller:
type: pid_controller # this has to be exactly the same name as the controller py fileargs:
lat:
k_p: 0.75k_d: 0.02k_i: 0.4lon:
k_p: 0.37k_d: 0.024k_i: 0.032dynamic: false # whether use dynamic pid settingdt: ${world.fixed_delta_seconds} # this should be equal to your simulation time-stepmax_brake: 1.0max_throttle: 1.0max_steering: 0.3
and you need write some controller algorithm in opencda/core/actuation/xxx_controller.py I don't know if it's right or not, I hope it can help you.
How to specify the controller in OpenCDA? I know there is a PID controller in the source code. But I cannot find where you define the controller type. Could you please provide some comments and help on this? Thx.
The text was updated successfully, but these errors were encountered: