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

asked 2015-11-30 19:20:29 -0500

jromero1214 gravatar image

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 armv7l)
Last login: Mon Nov 30 19:10:57 2015 from
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

# 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
edit retag flag offensive close merge delete


Are you logging in over SSH?

gvdhoorn gravatar image gvdhoorn  ( 2015-12-01 02:28:26 -0500 )edit