Error creating global node using rosinit

4 Ansichten (letzte 30 Tage)
Lukas Hildebrand
Lukas Hildebrand am 12 Mai 2022
Kommentiert: Lukas Hildebrand am 12 Okt. 2022
Hello I am trying to ron Ros Noetic with Matlab 2022a on Ubuntu 20.04. After some other fixed errors I get the following error when trying to run rosinit and I don't find the solution anywhere.
>> rosinit
The value of the ROS_MASTER_URI environment variable, http://localhost:11311, will be used to connect to the ROS master.
Launching ROS Core...
Adding required Python packages to virtual environment..Done.
Error using ROSException
Expected identifier to be nonempty.
Error in ros.internal.ROSException (line 55)
validateattributes(varargin{1}, {'char'}, {'nonempty'}, ...
Error in ros.internal.ROSException.fromException (line 206)
rosex = ros.internal.ROSException(ex.identifier, ex.message);
Error in rosinit (line 103)
rosex = ros.internal.ROSException.fromException(ex);
>>
Maybe someone has a idea where the error is coming from and can help me.
Thanks in advance and cheers,
Lukas
  8 Kommentare
Cam Salzberger
Cam Salzberger am 19 Mai 2022
That is certainly odd to see - that it would finish the build with apparent success, but not allow you to use the custom messages. You could take a look at (and attach) the build log that gets generated (should be linked in the output), but I suspect it won't be entirely helpful.
I've asked my colleague with more experience i the custom message area to take a look at this issue.
-Cam
Lukas Hildebrand
Lukas Hildebrand am 23 Mai 2022
Hello Cam,
thank you for your continuous support. Apparently I was wrong in not beeing able to find the custom messages. I just looked for the wrong entry. I can find the messages I create in the rosmsg list under packages/"messagename". I am able to use the custom messages as well, so I am not hindered by the fact that tie library still can't be found (at least for now). If something else comes up I will mention it in this thread.
Thank you again for all your answeres!
Lukas

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Juan Andres
Juan Andres am 11 Okt. 2022
Hello Lukas, I wanted to know if you could solve the problem. Right now I am new to ubuntu and ROS, and I am having exactly the same issue you had. I was able to reach to the point where you get the error report by:
disp(ex)
getReport(ex)
Then you continue to mention you had to install the -dev package, but I can't seem to find this package. How should I install this in order to solve the problem? Thank you very much.
  2 Kommentare
Cameron
Cameron am 11 Okt. 2022
Bearbeitet: Cameron am 11 Okt. 2022
Hey so I had the exact problem too, and installing the -dev package didn't solve the problem for me. What my problem was is that it was calling the wrong version of python for virtual environments. I installed the correct version of python that it was expecting by using the command
pyenv('Version', '/bin/python3.9')
before running rosinit. I also had to delete everything in the ~/.matlab/R2022a/ros1/glnxa64/venv directory and run the program again to get it to be happy. I hope this helps.
Lukas Hildebrand
Lukas Hildebrand am 12 Okt. 2022
Hi Juan,
Try to not only install the -dev package but all of it by using python3.9-full. This solved the issue for me once again when I ran into it again.
Hope it helps!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by