Unrecognized method, property, or field ‘ReferencePoint’ for class ‘DrivingStrategy’.
I am getting this error while trying to run the example code at GitHub – mathworks/OpenTrafficLab: OpenTrafficLab is a MATLAB environment capable of simulating simple traffic scenarios with modular vehicle and junction controllers.
The lastb code block is the one returning the error
%Advance the Scenario
while advance(scenario)
plotOpenPaths(trafficLight)
drawnow limitrate
end
Unrecognized method, property, or field ‘ReferencePoint’ for class ‘DrivingStrategy’.
Error in driving.scenario.DefaultScenario/actorPoses (line 23)
if isa(obj.Scenario.Actors(i),"driving.scenario.Vehicle") && ~isa(motionStrategy,"driving.scenario.Stationary") && isequal(motionStrategy.ReferencePoint, "front-axle")
Error in drivingScenario/actorPoses (line 51)
a = actorPoses(obj.Scenario);
Error in drivingScenario/setUpSensorSimulation (line 474)
obj.SensorSimulation.addActors(actorProfiles(obj), actorPoses(obj));
Error in driving.scenario.DefaultScenario/advance (line 8)
setUpSensorSimulation(obj.Scenario);
Error in drivingScenario/advance (line 42)
running = advance(obj.Scenario);I am getting this error while trying to run the example code at GitHub – mathworks/OpenTrafficLab: OpenTrafficLab is a MATLAB environment capable of simulating simple traffic scenarios with modular vehicle and junction controllers.
The lastb code block is the one returning the error
%Advance the Scenario
while advance(scenario)
plotOpenPaths(trafficLight)
drawnow limitrate
end
Unrecognized method, property, or field ‘ReferencePoint’ for class ‘DrivingStrategy’.
Error in driving.scenario.DefaultScenario/actorPoses (line 23)
if isa(obj.Scenario.Actors(i),"driving.scenario.Vehicle") && ~isa(motionStrategy,"driving.scenario.Stationary") && isequal(motionStrategy.ReferencePoint, "front-axle")
Error in drivingScenario/actorPoses (line 51)
a = actorPoses(obj.Scenario);
Error in drivingScenario/setUpSensorSimulation (line 474)
obj.SensorSimulation.addActors(actorProfiles(obj), actorPoses(obj));
Error in driving.scenario.DefaultScenario/advance (line 8)
setUpSensorSimulation(obj.Scenario);
Error in drivingScenario/advance (line 42)
running = advance(obj.Scenario); I am getting this error while trying to run the example code at GitHub – mathworks/OpenTrafficLab: OpenTrafficLab is a MATLAB environment capable of simulating simple traffic scenarios with modular vehicle and junction controllers.
The lastb code block is the one returning the error
%Advance the Scenario
while advance(scenario)
plotOpenPaths(trafficLight)
drawnow limitrate
end
Unrecognized method, property, or field ‘ReferencePoint’ for class ‘DrivingStrategy’.
Error in driving.scenario.DefaultScenario/actorPoses (line 23)
if isa(obj.Scenario.Actors(i),"driving.scenario.Vehicle") && ~isa(motionStrategy,"driving.scenario.Stationary") && isequal(motionStrategy.ReferencePoint, "front-axle")
Error in drivingScenario/actorPoses (line 51)
a = actorPoses(obj.Scenario);
Error in drivingScenario/setUpSensorSimulation (line 474)
obj.SensorSimulation.addActors(actorProfiles(obj), actorPoses(obj));
Error in driving.scenario.DefaultScenario/advance (line 8)
setUpSensorSimulation(obj.Scenario);
Error in drivingScenario/advance (line 42)
running = advance(obj.Scenario); automated driving toolbox MATLAB Answers — New Questions









