how to run rosinit in Matlab
45 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Van Chuong Nguyen
am 28 Jan. 2021
Kommentiert: Van Chuong Nguyen
am 31 Jan. 2021
Hi,
I just installed the ROS toolbox in Matlab, and type rosinit in the command window
But it shows that:
Launching ROS Core...
Invalid Python executable: ''. Use pyenv function to set the path to the Python executable and retry the command.
Could anyone help me on figuring out this issue?
Thank you so much
0 Kommentare
Akzeptierte Antwort
Josh Chen
am 28 Jan. 2021
Hello Van,
Based on the error message, it looks like MATLAB cannot find an available python executable on your computer. rosinit requires you to install and setup Python2.7. Once you installed Python2.7 and run
>> pyenv('Version','2.7')
you should now be able to do rosinit if there is no other issues.
Hope this helps.
Josh
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!