Skip to content

Commit

Permalink
[jsk_tools/test/env_hooks] Update test sh
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Jun 1, 2022
1 parent 9bdccc4 commit 4e4236f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions jsk_tools/test/sh/rossetip.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

_THIS_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)
source $_THIS_DIR/../../env-hooks/99.jsk_tools.bash
JSK_TOOLS_PATH=$(rospack find jsk_tools)
if [ "$JSK_TOOLS_PATH" = "/opt/ros/${ROS_DISTRO}/share/jsk_tools" ]; then
source /opt/ros/${ROS_DISTRO}/setup.bash
else
source `catkin locate --shell-verbs`
cd $(rospack find jsk_tools) && source $(catkin locate)/devel/etc/catkin/profile.d/99.jsk-tools.sh
fi

ECHO_OUTPUT="$1"
ip() {
Expand Down
9 changes: 7 additions & 2 deletions jsk_tools/test/sh/rossetmaster.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

_THIS_DIR=$(builtin cd "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)
source $_THIS_DIR/../../env-hooks/99.jsk_tools.bash
JSK_TOOLS_PATH=$(rospack find jsk_tools)
if [ "$JSK_TOOLS_PATH" = "/opt/ros/${ROS_DISTRO}/share/jsk_tools" ]; then
source /opt/ros/${ROS_DISTRO}/setup.bash
else
source `catkin locate --shell-verbs`
cd $(rospack find jsk_tools) && source $(catkin locate)/devel/etc/catkin/profile.d/99.jsk-tools.sh
fi

rossetmaster "$1" "${2-11311}" > /dev/null 2>&1
echo $ROS_MASTER_URI

0 comments on commit 4e4236f

Please sign in to comment.