Adding an extra propoerty/field in a predefined toolbox class
이전 댓글 표시
Hello guys,
I'm trying to implement a different controller than what is being used in the driving.scenario.Vehicle. For that reason I need to access some variables/parameters that is not considered in the standard form of a specific class predefined in the toolbox of Matlab (driving.scenario.Vehicle).
For example in the Automated Driving Toolbox, I can create the following object:
%% Create scenario, add road and leader vehicle
s = drivingScenario;
vLeader = vehicle(s);
and the values for this VLeader variable would it be those in the picture below. I want to add an extra property called Acceleration to retrieve it's respective value and then be able to implement my controller.

Best regards
답변 (1개)
Jalaj Gambhir
2020년 8월 24일
0 개 추천
Hi,
As mentioned in the link, you will have to define waypoints and have different velocities at each waypoint as a workaround to define acceleration of the vehicle.
Hope this helps!
카테고리
도움말 센터 및 File Exchange에서 Automated Driving Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!