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

jromero1214's profile - activity

2021-10-14 11:06:56 -0600 received badge  Famous Question (source)
2016-06-17 09:56:11 -0600 received badge  Popular Question (source)
2016-06-17 09:56:11 -0600 received badge  Notable Question (source)
2015-11-30 22:09:12 -0600 asked a question 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