当前位置:网站首页>After using the remote control of the working machine, problems occurred in the use of the local ROS, and the roscore did not respond

After using the remote control of the working machine, problems occurred in the use of the local ROS, and the roscore did not respond

2022-06-25 08:16:00 N1CROWN

1. Set stand-alone mode

export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311

2. Look for local ip

The instructions are as follows

ip a

3. modify .bashrc file

open bashrc

sudo gedit ~/.bashrc

modify , preservation

export ROS_HOSTNAME=111.11.1.1( Hypothetical ip)
export ROS_MASTER_URI=http://111.11.1.1:11311

to update

source ~/.bashrc

summary

After remote control , Remember to change to stand-alone mode locally , Otherwise ros Not working properly

原网站

版权声明
本文为[N1CROWN]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200557409490.html