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

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

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

Comments

Are you logging in over SSH?

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