Skip to content

Commit f1bc7a2

Browse files
committed
Genericized a little.
1 parent d5c7516 commit f1bc7a2

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

jetbrains_ros/ros_env.sh

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
# NOTE: you shouldn't call this script, you should source it. This script
3-
# assumes that you've created a Catkin worspace somewhere that points back
4-
# to this ROS package.
3+
# assumes that this directory is in the top-level dir of a working Catkin workspace.
54

65
. ${HOME}/.bashrc
76

@@ -12,14 +11,13 @@ cd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" > /dev/null
1211
IFS='/' read -r -a tokens <<< `find /opt/ros -name env.sh`
1312
DISTRO=${tokens[3]}
1413
15-
# Setup the base ROS environment.
14+
# Source the base ROS environment.
1615
. /opt/ros/${DISTRO}/setup.bash
1716
18-
# Load this project's environment.
19-
CATKIN_WS=../../cmd_vel_filter_ws
20-
. ${CATKIN_WS}/devel/setup.bash
17+
# Load this workspace's environment.
18+
. ../devel/setup.bash
2119
22-
# Activate our virtualenv.
23-
. ~/venv/cmd_vel_filter/bin/activate
20+
# Uncomment this if you want to activate a virtualenv.
21+
# . ~/venv/cmd_vel_filter/bin/activate
2422
2523
export ROS_MASTER_URI=http://127.0.0.1:11311

jetbrains_ros/start_clion.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# Activate the ROS environment for our project, then kick off clion.
33

44
# EDIT THIS: set to your installation
5-
CLION_DIR=clion
6-
source ros_env.sh && /opt/${CLION_DIR}/bin/clion.sh &
5+
CLION_PATH=/opt/clion
6+
source ros_env.sh && ${CLION_PATH}/bin/clion.sh &

jetbrains_ros/start_pycharm.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# Activate the ROS environment for our project, then kick off pycharm.
33

44
# EDIT THIS: set to your installation
5-
PYCHARM_DIR=pycharm
6-
source ros_env.sh && /opt/${PYCHARM_DIR}/bin/pycharm.sh &
5+
PYCHARM_PATH=/opt/pycharm
6+
source ros_env.sh && ${PYCHARM_PATH}/bin/pycharm.sh &

0 commit comments

Comments
 (0)