1 Star 0 Fork 0

gzl2012/exp_biyesheji

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
initial_ros_matlab.m 623 Bytes
一键复制 编辑 原始数据 按行查看 历史
gzl2012 提交于 2018-10-22 22:00 . add plot part
%% 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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/gzl2012/exp_biyesheji.git
git@gitee.com:gzl2012/exp_biyesheji.git
gzl2012
exp_biyesheji
exp_biyesheji
master

搜索帮助