What am I doing wrong when using matlab and ros?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
bio lim
2016-11-30
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Network Connection and Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!