測試matlab功能
help robotics.ros
rosinit
exampleHelperROSCreateSampleNetwork (運作例子程式)
1.檢視ubuntu系統的ip
ifconfig 192.168.1.106
2. 檢視window系統的ip
ipconfig 192.168.1.101
3.在ubuntu中設定ROS_IP
gedit ~/.bashrc
export ROS_IP=192.168.1.106 #添加本機ip
source ~/.bashrc
4.在matlab中設定環境變量
setenv('ROS_MASTER_URI','http://192.168.1.106:11311')#主節點ip
setenv('ROS_IP','192.168.1.106')
rosinit('192.168.1.106', 'NodeHost', '192.168.1.101')
5.ROS---->matlab