ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Try this as your ~/.bashrc file. The way you have it may be problematic in a few aspects. Keep it simple!
source /opt/ros/electric/setup.bash
export ROS_MASTER_URI=http://192.168.0.214:11311
export ROS_IP=192.168.0.214
export ROS_PACKAGE_PATH=~/ros_workspace:${ROS_PACKAGE_PATH}
export ROS_WORKSPACE=~/ros_workspace
You shouldn't need to change anything else. No setup file should be needed. The issues I saw with your configuration:
ROS_HOSTNAME should be used when you want it to detect an actual hostname, so I have it here as ROS_IP. When both are present, ros defaults to hostname.
The PATH environment variable can be sensitive. Avoid changing it when possible.
Also, you should check your write permissions in that directory. From the user you want to make the package with, run the following:
sudo chown robolab -R ~/ros_workspace
Hope this was helpful for you!
2 | Clarifying instructions |
Try this as at the end of your ~/.bashrc file. The way you have it may be problematic in a few aspects. Keep it simple!
source /opt/ros/electric/setup.bash
export ROS_MASTER_URI=http://192.168.0.214:11311
export ROS_IP=192.168.0.214
export ROS_PACKAGE_PATH=~/ros_workspace:${ROS_PACKAGE_PATH}
export ROS_WORKSPACE=~/ros_workspace
You shouldn't need to change anything else. No setup file should be needed. The issues I saw with your configuration:
ROS_HOSTNAME should be used when you want it to detect an actual hostname, so I have it here as ROS_IP. When both are present, ros defaults to hostname.
The PATH environment variable can be sensitive. Avoid changing it when possible.
Also, you should check your write permissions in that directory. From the user you want to make the package with, run the following:
sudo chown robolab -R ~/ros_workspace
Hope this was helpful for you!