Robotics StackExchange | Archived questions

ODROID/Ubuntu: devel/setup.bash not loading from ~/.bashrc

For some reason, the src path is not being loaded automagically when put in ~/.bashrc I've created a function simply for troubleshooting but can't figure out why I have to load it manually everytime.

At the end of my ~/.bashrc file

function load_source {
  echo "Loading: $1"
  source $1
}

load_source /opt/ros/indigo/setup.bash
load_source $HOME/catkin_ws/devel/setup.bash

Logging in..

Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.8.13.30 armv7l)
Last login: Mon Nov 30 19:10:57 2015 from 10.23.42.24
Loading: /opt/ros/indigo/setup.bash
Loading: /home/odroid/catkin_ws/devel/setup.bash

# Checking path (src IS NOT in path)
odroid@odroid-server:~$ echo $ROS_PACKAGE_PATH
/opt/ros/indigo/share:/opt/ros/indigo/stacks

# Load it manually
odroid@odroid-server:~$ load_source /home/odroid/catkin_ws/devel/setup.bash
Loading: /home/odroid/catkin_ws/devel/setup.bash

# Check path again (src IS in path)
odroid@odroid-server:~$ echo $ROS_PACKAGE_PATH
/home/odroid/catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks

Asked by jromero1214 on 2015-11-30 20:20:29 UTC

Comments

Are you logging in over SSH?

Asked by gvdhoorn on 2015-12-01 03:28:26 UTC

Answers