The GitHub example notes that testing was done using MATLAB R2020b. In R2024b, a new FrontAxlePosition field was introduced as part of the actor's pose.
Some related updates can also be seen in the actorPoses function, to update the FrontAxlePosition property of the actors.
R2021a:
R2024b:
To resolve the error, I had to make few adjustments to the DrivingStrategy class in the example:
- Added a new property called ReferencePoint to the class.
- Updated the accessibility of dependent properties to public.