ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You should never try to edit, create or change files in /opt/ros/.... Instead, create a overlay in your home directory. To create an overlay for electric, just execute the following commands:

sudo apt-get install python-pip
sudo pip install -U rosinstall
rosws init ~/ros_overlay /opt/ros/electric
mkdir ~/ros_overlay/sandbox
rosws set ~/ros_overlay/sandbox

Now open your ~/.bashrc and change the line

source /opt/ros/electric/setup.bash

to

source ~/ros_workspace/setup.bash

Now close and re-open your terminal and execute the command roscreate-pkg in ~/ros_workspace/sandbox.

You should never try to edit, create or change files in /opt/ros/.... Instead, create a overlay in your home directory. To create an overlay for electric, just execute the following commands:

sudo apt-get install python-pip
sudo pip install -U rosinstall
rosws init ~/ros_overlay /opt/ros/electric
mkdir ~/ros_overlay/sandbox
rosws set ~/ros_overlay/sandbox

Now open your ~/.bashrc and change the line

source /opt/ros/electric/setup.bash

to

source ~/ros_workspace/setup.bash
~/ros_overlay/setup.bash

Now close and re-open your terminal and execute the command roscreate-pkg in ~/ros_workspace/sandbox.

You should never try to edit, create or change files in /opt/ros/.... Instead, create a overlay in your home directory. To create an overlay for electric, just execute the following commands:

sudo apt-get install python-pip
sudo pip install -U rosinstall
rosws init ~/ros_overlay /opt/ros/electric
mkdir ~/ros_overlay/sandbox
source ~/ros_overlay/setup.bash
rosws set ~/ros_overlay/sandbox

Now open your ~/.bashrc and change the line

source /opt/ros/electric/setup.bash

to

source ~/ros_overlay/setup.bash

Now close and re-open your terminal and execute the command roscreate-pkg in ~/ros_workspace/sandbox.