Error creating global node using rosinit

10 visualizaciones (últimos 30 días)
Lukas Hildebrand
Lukas Hildebrand el 12 de Mayo de 2022
Comentada: Lukas Hildebrand el 12 de Oct. de 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 comentarios
Cam Salzberger
Cam Salzberger el 19 de Mayo de 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 el 23 de Mayo de 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

Iniciar sesión para comentar.

Respuestas (1)

Juan Andres
Juan Andres el 11 de Oct. de 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 comentarios
Cameron
Cameron el 11 de Oct. de 2022
Editada: Cameron el 11 de Oct. de 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 el 12 de Oct. de 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!

Iniciar sesión para comentar.

Categorías

Más información sobre Custom Message Support en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by