Effacer les filtres
Effacer les filtres

What am I doing wrong when using matlab and ros?

3 vues (au cours des 30 derniers jours)
Serj Titov
Serj Titov le 24 Nov 2016
Commenté : Shubham Jena le 5 Juin 2018
I want start roscore in terminal ubuntu and creat node in matlab. I have "Error creating the node /matlab_global_node_" when use rosinit. What am I doing wrong? Thanks
  2 commentaires
bio lim
bio lim le 26 Nov 2016
Modifié(e) : bio lim le 26 Nov 2016
Have you checked that you installed the Robotics Toolbox correctly? Can you see it in the list of the toolboxes you installed? If so, are the MATLAB and the roscore running on different platforms?
Serj Titov
Serj Titov le 29 Nov 2016
when i use command "ver" in the list of installed toolboxes is "Robotics System Toolbox". MATLAB and roscore running on the same computer. if i start "rosinit" in matlab like master - global node created correctly. But when i start "roscore" in terminal and use "rosinit" in matlab - "Error creating the node /matlab_global_node_".

Connectez-vous pour commenter.

Réponses (1)

bio lim
bio lim le 30 Nov 2016
When you start ROS on your terminal using roscore, check out the section:
ROS_MASTER_URI=http://XXXX:11311/
where XXXX is your computer name.
Then on your MATLAB, try setting as follows:
setenv('ROS_MASTER_URI', 'http://XXXX:11311/');
rosinit('NodeName', '/Matlab');
  4 commentaires
Serj Titov
Serj Titov le 6 Déc 2016
I started roscore in terminal. Started MATLAB. Use in MATLAB:
rosinit('http://192.168.42.105')
and I have error "Port -1 is invalid. It needs to be positive. Check if it is correctly defined."
It my terminal with running roscore (may be it's help you):
Shubham Jena
Shubham Jena le 5 Juin 2018
run rosinit('http://192.168.42.105:46565')

Connectez-vous pour commenter.

Catégories

En savoir plus sur Network Connection and Exploration dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by