MATLAB Answers

Using rosgenmsg() for ROS custom message in MATLAB 2021 generation

34 views (last 30 days)
Zi Huang
Zi Huang on 15 May 2021
Commented: Nathaniel Goldfarb on 12 Sep 2021 at 23:34
Hi,
I am trying to generate custom ROS messages using rosgenmsg() following the link below.
However, Matlab keeps telling me
"Could not install the required python packages. "
"ros.internal.createOrgetLocalPython(); % ensure python is available"
IN addiiton, my default python version is 3.8 and I have changed it to 2.7 by using
pyenv('Version','/usr/bin/python2.7'), where /usr/bin/python2.7 is the full path of my python executable.
  5 Comments

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by