赞
踩
连接wifi: ROS
bash内输入
ifconfig
inet后的为PC的IP地址,记下
192.168.1.104
先放着,后面要用
sudo apt install openssh-server
sudo apt install openssh-client
去掉PasswordAuthentication yes前面的#号,保存退出
sudo gedit /etc/ssh/ssh_config
把PermitRootLogin prohibit-password改成PermitRootLogin yes,保存退出。
sudo gedit /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart
ssh ucar@192.168.1.104
密码是
ucar
配置nfs以便于将jetson nano的工作空间挂载到PC端进行远程调试
sudo apt-get install nfs-kernel-server
netstat -tl
/etc/init.d/nfs-kernel-server restart
sudo mount -t nfs 192.168.1.104:/home/ucar/ucar_ws/ /mnt
打开自己的.bashrc
最后加入
export ROS_HOSTNAME=本机IP
export ROS_MASTER_URI=http://192.168.1.104:11311
之后source一下.bashrc
bash输入
sudo gedit /etc/hosts
修改第二行,如图
在jetson nano端/etc/hosts文件中加入从机ip信息
小车bash输入
roscore
rosrun turtlesim turtlesim_node
从机bash输入
rosrun turtlesim turtle_teleop_key
乌龟移动则配置成功
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。