69 lines
1.8 KiB
Bash
69 lines
1.8 KiB
Bash
# NTCNA V2X development
|
|
|
|
# Python VirtualEnv
|
|
if [ -x /usr/local/bin/virtualenvwrapper.sh ]; then
|
|
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
|
|
source /usr/local/bin/virtualenvwrapper.sh
|
|
fi
|
|
|
|
# Android Studio
|
|
if [ -d ~/android-studio ]; then
|
|
export PATH=$PATH:~/android-studio/bin
|
|
fi
|
|
|
|
# Marben ASN.1 compiler
|
|
if [ -d /opt/marben/asnsdk ]; then
|
|
export ASNSDK_TCE_DIR=/opt/marben/asnsdk/TCE-C_V61/Compiler
|
|
export PATH=$ASNSDK_TCE_DIR/bin:$PATH
|
|
fi
|
|
|
|
# ROS 1
|
|
if [ -f /opt/ros/noetic/setup.bash ]; then
|
|
# 20.04
|
|
source /opt/ros/noetic/setup.bash
|
|
PYTHONPATH=$PYTHONPATH:$HOME/catkin_ws/devel/lib/python3/dist-packages
|
|
elif [ -f /opt/ros/melodic/setup.bash ]; then
|
|
# 16.04/18.04
|
|
source /opt/ros/melodic/setup.bash
|
|
fi
|
|
|
|
# ROS 2
|
|
#if [ -f /opt/ros/foxy/setup.bash ]; then
|
|
# 20.04
|
|
# source /opt/ros/foxy/setup.bash
|
|
#fi
|
|
|
|
# ProbeStar C/C++ library
|
|
if [ -d /usr/local/cnomicon ]; then
|
|
export PATH=$PATH:/usr/local/cnomicon/bin:/usr/local/cnomicon/sbin
|
|
fi
|
|
# NTCNA V2X C/C++ library
|
|
if [ -d /usr/local/cvehicle ]; then
|
|
export PATH=$PATH:/usr/local/cvehicle/bin:/usr/local/cvehicle/sbin
|
|
fi
|
|
|
|
# ProbeStar Python classes
|
|
if [ -d $HOME/Pynomicon/classes ]; then
|
|
export PYTHONPATH=$PYTHONPATH:$HOME/Pynomicon/classes
|
|
fi
|
|
# NTCNA V2X Python classes (install pycrate), ROS path above
|
|
if [ -d $HOME/PyVehicle/classes ]; then
|
|
export PYTHONPATH=$PYTHONPATH:$HOME/PyVehicle/classes:$HOME/PyVehicle/classes/j2735
|
|
fi
|
|
|
|
# >>> conda initialize >>>
|
|
# !! Contents within this block are managed by 'conda init' !!
|
|
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
|
if [ $? -eq 0 ]; then
|
|
eval "$__conda_setup"
|
|
else
|
|
if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
|
|
. "/opt/anaconda3/etc/profile.d/conda.sh"
|
|
else
|
|
export PATH="/opt/anaconda3/bin:$PATH"
|
|
fi
|
|
fi
|
|
unset __conda_setup
|
|
# <<< conda initialize <<<
|
|
|