File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- _THIS_DIR=$( builtin cd " ` dirname " ${BASH_SOURCE[0]} " ` " > /dev/null && pwd)
4- source $_THIS_DIR /../../env-hooks/99.jsk_tools.bash
3+ JSK_TOOLS_PATH=$( rospack find jsk_tools)
4+ if [ " $JSK_TOOLS_PATH " = " /opt/ros/${ROS_DISTRO} /share/jsk_tools" ]; then
5+ source /opt/ros/${ROS_DISTRO} /setup.bash
6+ else
7+ source ` catkin locate --shell-verbs`
8+ cd $( rospack find jsk_tools) && source $( catkin locate) /devel/etc/catkin/profile.d/99.jsk-tools.sh
9+ fi
510
611ECHO_OUTPUT=" $1 "
712ip () {
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- _THIS_DIR=$( builtin cd " ` dirname " ${BASH_SOURCE[0]} " ` " > /dev/null && pwd)
4- source $_THIS_DIR /../../env-hooks/99.jsk_tools.bash
3+ JSK_TOOLS_PATH=$( rospack find jsk_tools)
4+ if [ " $JSK_TOOLS_PATH " = " /opt/ros/${ROS_DISTRO} /share/jsk_tools" ]; then
5+ source /opt/ros/${ROS_DISTRO} /setup.bash
6+ else
7+ source ` catkin locate --shell-verbs`
8+ cd $( rospack find jsk_tools) && source $( catkin locate) /devel/etc/catkin/profile.d/99.jsk-tools.sh
9+ fi
510
611rossetmaster " $1 " " ${2-11311} " > /dev/null 2>&1
712echo $ROS_MASTER_URI
You can’t perform that action at this time.
0 commit comments