# NTCNA V2X development

# Python and VirtualEnv
if [ -d $HOME/.local/bin ]; then
  export PATH=$HOME/.local/bin:$PATH
else
  mkdir -p $HOME/.local/bin
  export PATH=$HOME/.local/bin:$PATH
fi
if [ -x /usr/local/bin/virtualenvwrapper.sh ]; then
  VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
#  source /home/neal/.local/bin/virtualenvwrapper.sh
fi

# Android Studio
if [ -d $HOME/android-studio ]; then
  export PATH=$PATH:$HOME/android-studio/bin
fi

# Marben ASN.1 compiler
if [ -d /opt/marben/asnsdk/TCE-C_V80 ]; then
  export ASNSDK_TCE_DIR=/opt/marben/asnsdk/TCE-C_V80/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
#fi

# ROS 2
if [ -f /opt/ros/iron/setup.baseh ]; then
  # 22.04
  source /opt/ros/iron/setup.bash
elif [ -f /opt/ros/jazzy/setup.bash ]; then
  # 24.04
  source /opt/ros/jazzy/setup.bash
elif [ -f /opt/ros/rolling/setup.bash ]; then
  # 24.04
  source /opt/ros/rolling/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
#export NTCNA_DVIHMI_PATH=$HOME/PyVehicle/ntcna_dvihmi

# Anaconda
if [ -d $HOME/anaconda3 ]; then
  export PATH=$PATH:$HOME/anaconda3/bin
fi
