Where can I get a correct example of Highway Lane Change project?

Hi, it seems like a wrong MATLAB Command is attached to this project https://www.mathworks.com/help/driving/ug/highway-lane-change.html#d123e46448. It looks exactly like this one https://www.mathworks.com/help/driving/ug/highway-lane-change-planner-and-controller.html , which lacks the use of Sensors subsystem (cameras and radar) to detect target vehicles. Is there any way to get the right project example, which is described in Highway Lane Change application?

4 Commenti

The first of them is
openExample('autonomous_control/HighwayLaneChangeExample')
The second of them is
openExample('autonomous_control/HighwayLaneChangePlannerAndControllerExample')
The two of them have different content.
Thanks for your comment. I had tried both of this commands before I created this question. Unfortunately, the same problem occurs. The first command uploads the Highway Lane Change Planner and Controller project, the second one doesn't work at all (Example "HighwayLaneChangePlannerAndControllerExample" not found in "C:\ProgramFiles\MATLAB\R2021b\examples\autonomous_control\examples.xml".). I wish they were just mixed up on accident. But it seems like Highway Lane Change project (which follows the documentation given on relevant web page) just doesn't exist, at least in my 2021b version files.
If it's not the case for you, I would be very greatful for the files of this project. Maybe you can send them to me somehow?
If you have Automated Driving Toolbox installed, run the openExample commands Walter Roberson posted. This will cause MATLAB to open the example in the Editor and change the current directory to the location where the helper files for that example are located.
If you don't have Automated Driving Toolbox installed, those example files are not installed but you wouldn't be able to run them even if you had them since they use functionality from the toolbox.
This assumes you're using a release in which those examples were present. If the examples were introduced in a newer release than the one you're using, you would need to upgrade to access them.
Hello Steven, thanks for your suggestions. I will try this commands with the present version of Matlab.

Accedi per commentare.

Risposte (1)

Hi Anton,
Thanks for your interest in these examples. As Steven mentioned, the reason for the discrepancy is that the you are attempting to use links from the R2022a documentation in your R2021b instance of MATLAB.
A good practice is to always select your current version of MATLAB from the Archived MathWorks Documentation page before searching the doc. If you search "Highway Lane Change" in R2021b and the latest release (R2022a), respectively, you'll see that the example has been updated.
To remedy the issue you should update to R2022a, as the underlying features may not exist or be compatible in previous releases.
Best,
Cameron

1 Commento

Hi Cameron!
Thanks a lot for your advice. I'll definitely try updating to R2022a version. Hope it helps my issue!
Best regards,
Anton

Accedi per commentare.

Richiesto:

il 6 Apr 2022

Commentato:

il 14 Apr 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by