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!