If you have arrived at this step, congratulations, because you have installed ROS in your BeagleBone Black. The ROS environment variables can be added to your bash, so they will be added every time a shell is launched:
$ echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
We have to be careful if we have more than one version of ROS in our system. The bashrc setup must use the variables of the version being used only.
If we want to set up the environment in the current shell, we will run the following command:
$ source /opt/ros/kinetic/setup.bash