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

조회 수: 2 (최근 30일)
Zi Huang
Zi Huang 2021년 5월 15일
이동: Jagadeesh Konakalla 2024년 4월 12일
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.
  댓글 수: 4
Zi Huang
Zi Huang 2021년 5월 22일
I actually intalled pip for python2.7 by using
sudo apt install python-pip
It seems, pip is set default for python3 now.
python -m pip --version
gives me pip 21.1.1 while
python2.7 -m pip --version
gives me error message
Nathaniel Goldfarb
Nathaniel Goldfarb 2021년 9월 12일
were you able to solve your problem?

댓글을 달려면 로그인하십시오.

답변 (1개)

Murat Belge
Murat Belge 2021년 5월 18일
이동: Jagadeesh Konakalla 2024년 4월 12일
Can you execute the following command on bash and tell us the output?
$ /usr/bin/python2.7 --version
$/usr/bin/python2.7 -m pip --version
It looks like the version of the pip installed is not supported by Python 2.7, hence the syntax error from the pip.

카테고리

Help CenterFile Exchange에서 Custom Message Support에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by