how to run rosinit in Matlab

40 visualizaciones (últimos 30 días)
Van Chuong Nguyen
Van Chuong Nguyen el 28 de En. de 2021
Comentada: Van Chuong Nguyen el 31 de En. de 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

Respuesta aceptada

Josh Chen
Josh Chen el 28 de En. de 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.
In case there is any, this doc page shows all ROS System Requirements that might be helpful.
Hope this helps.
Josh

Más respuestas (0)

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by