June 2018
Intermediate to advanced
484 pages
11h 36m
English
Good! We have completed the ROS installation. The ROS scripts and executables are mostly installed to /opt/ros/<ros_version>.
To get access to these scripts and executables, the ROS environment variables need to be added to the bash session. We have to source the following bash file for ROS Kinetic:
$ source /opt/ros/kinetic/setup.bash
ROS Melodic requires the following:
$ source /opt/ros/melodic/setup.bash
It's convenient if the ROS environment variables are automatically added to the bash session every time a new shell is launched.
For ROS Kinetic, use the following:
$ echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc $ source ~/.bashrc
For ROS Melodic, use the following:
echo "source /opt/ros/melodic/setup.bash" ...