Adding an extra propoerty/field in a predefined toolbox class
조회 수: 1(최근 30일)
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.
Robotics and Autonomous Systems Automated Driving Toolbox Scenario Simulation Cuboid Scenario Simulation Programmatic Scenario Authoring