代码拉取完成,页面将自动刷新
%% initial the toolbox of Robotics of MATLAB, and connect the ROS environment and MATLAB.
% if matlab and gazebo are installed in one computer, matlab_ros should be set to 0;
% else matlab_ros need set to 1.
matlab_ros = 0;
if(matlab_ros)
setenv('ROS_MASTER_URI','http://192.168.0.5:11311') % the IP of gazebo server (computer installed ROS)
setenv('ROS_IP','192.168.0.3') % the IP of matlab client (computer installed MATLAB)
try
rosinit('http://192.168.0.5:11311') % replace the IP of gazebo server (computer installed ROS)
end
else
try
rosinit;
end
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。