error in the rosmatlab application: Undefined variable "rosmatlab" or class "rosmatlab.node....
显示 更早的评论
Dear all,
I created a publisher in ROS which publishes messages successfully. I want to receive these messages by Matlab. This my code in Matlab (Ubuntu 12.04 64bit, ROS Hydro, Matlab2015a):
function test_ros
import rosmatlab.*
roscore = rosmatlab.roscore(11311);
node = rosmatlab.node('NODE', [], 11311);
subscriber = rosmatlab.subscriber(....
.
.
end
but Matlab gives me these errors:
Undefined variable "rosmatlab" or class "rosmatlab.roscore".
Error in test_ros (line 13)
roscore = rosmatlab.roscore(11311);
or
Undefined variable "rosmatlab" or class "rosmatlab.node".
Error in test_ros (line 17)
node = rosmatlab.node('NODE', [], 11311);
Dose anyone have any idea what the problem is? Thanks,
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 ROS Network Connection and Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!