Cant deploy ROS on raspberry Pi4 with Simulink ?

3 visualizaciones (últimos 30 días)
Hocine YAKOUBI
Hocine YAKOUBI el 11 de Jul. de 2022
Editada: Prasanth Sunkara el 21 de Jul. de 2022
Hi,
I am trying to use deploy the example ''getting started with Robot operating system (ROS) on raspberry'' but I get error (see pictures) that I cant resolve.
My ROS, is installed on win10.
My Raspberry Pi 4 got the latest version image from Matlab.
Can someoe help ?
Best regards,
  1 comentario
Prasanth Sunkara
Prasanth Sunkara el 19 de Jul. de 2022
Editada: Prasanth Sunkara el 21 de Jul. de 2022
Hi Hocine YAKOUBI,
The error that you see in the build "Cannot identify a ROS distrubution in /opt/ros" can be worked around by executing the below commands on the pi terminal,
echo "MW_ROSDISTRO=melodic" |sudo tee -a /etc/environment
Bascially, we need to tell Simulink the version of ROS present on pi. This is currently done via setting a specific environment variable in /etc/environment file. I am guessing the environment file may be corrupted. You can check the contents of it by executing "cat /etc/environment". By running tha above cmd, we are appending the needed environment variable to the file.
Please let me know if this works.
Thanks,
Prasanth

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by