Question about exporting ROS_HOSTNAME to setup.sh
1 回表示 (過去 30 日間)
古いコメントを表示
What is this line trying to achieve in the "Getting Started with a Real TurtleBot" Tutorial (Robotics Toolbox)?
sudo sh -c 'echo export ROS_HOSTNAME=IP_OF_TURTLEBOT >> /etc/ros/setup.sh'
I do not have a ros directory in /etc. My installation is in /opt.
Am I appending to an existing setup.sh (the one where my ros installation is), or am I creating a new setup.sh file?
Thanks.
0 件のコメント
回答 (1 件)
Tohru Kikawada
2019 年 5 月 2 日
It depends on your environment, but normally just appending the export command to your .bashrc in your home directory will work.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Network Connection and Exploration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!