ROS tweaks
This commit is contained in:
26
dot/bashrc
26
dot/bashrc
@ -15,23 +15,23 @@ if [ -d ~/android-studio ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Marben ASN.1 compiler
|
# Marben ASN.1 compiler
|
||||||
if [ -d /opt/marben/asnsdk ]; then
|
if [ -d /opt/marben/asnsdk/TCE-C_V61/Compiler ]; then
|
||||||
export ASNSDK_TCE_DIR=/opt/marben/asnsdk/TCE-C_V61/Compiler
|
export ASNSDK_TCE_DIR=/opt/marben/asnsdk/TCE-C_V61/Compiler
|
||||||
export PATH=$ASNSDK_TCE_DIR/bin:$PATH
|
export PATH=$PATH:$ASNSDK_TCE_DIR/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ROS 1
|
# ROS 1
|
||||||
if [ -f /opt/ros/noetic/setup.bash ]; then
|
if [ -f /opt/ros/noetic/setup.bash ]; then
|
||||||
# 20.04/22.04
|
# 20.04
|
||||||
source /opt/ros/noetic/setup.bash
|
source /opt/ros/noetic/setup.bash
|
||||||
export PYTHONPATH=$PYTHONPATH:$HOME/catkin_ws/devel/lib/python3/dist-packages
|
export PYTHONPATH=$PYTHONPATH:$HOME/catkin_ws/devel/lib/python3/dist-packages
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ROS 2
|
# ROS 2
|
||||||
#if [ -f /opt/ros/foxy/setup.bash ]; then
|
if [ -f /opt/ros/humble/setup.bash ]; then
|
||||||
# 20.04/22.04
|
# 22.04
|
||||||
# source /opt/ros/foxy/setup.bash
|
source /opt/ros/humble/setup.bash
|
||||||
#fi
|
fi
|
||||||
|
|
||||||
# ProbeStar C/C++ library
|
# ProbeStar C/C++ library
|
||||||
if [ -d /usr/local/cnomicon ]; then
|
if [ -d /usr/local/cnomicon ]; then
|
||||||
@ -56,3 +56,15 @@ fi
|
|||||||
if [ -d $HOME/anaconda3 ]; then
|
if [ -d $HOME/anaconda3 ]; then
|
||||||
export PATH=$PATH:$HOME/anaconda3/bin
|
export PATH=$PATH:$HOME/anaconda3/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# CARMA
|
||||||
|
if [ -d /usr/share/vcstool-completion ]; then
|
||||||
|
source /usr/share/vcstool-completion/vcs.bash
|
||||||
|
fi
|
||||||
|
|
||||||
|
parse_git_branch() {
|
||||||
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
|
||||||
|
}
|
||||||
|
|
||||||
|
# Add git branch and timestamp to bash commands
|
||||||
|
#export PS1="\t \033[01;32m\]\u@\h:\[\033[34m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\]$ "
|
||||||
|
|||||||
Reference in New Issue
Block a user