Clear Filters
Clear Filters

Question about exporting ROS_HOSTNAME to

1 view (last 30 days)
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/'
I do not have a ros directory in /etc. My installation is in /opt.
Am I appending to an existing (the one where my ros installation is), or am I creating a new file?

Answers (1)

Tohru Kikawada
Tohru Kikawada on 2 May 2019
It depends on your environment, but normally just appending the export command to your .bashrc in your home directory will work.


Find more on Network Connection and Exploration in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!