Closed icyflame closed 9 years ago
Fixed by adding the following code to the top of the runKraken_keyboard.sh script.
#!/bin /bash
WS=$ROS_WORKSPACE
source /opt/ros/indigo/setup.bash
export ROS_WORKSPACE=$WS
export ROS_PACKAGE_PATH=$ROS_WORKSPACE:$ROS_PACKAGE_PATH
While this certainly works, the following approach is recommended to make scripts portable across different UNIX systems.
#!/usr/bin/env bash
Refer this link for more details.
Edited the runKraken_keyboard.sh script accordingly. See https://github.com/iit-kgp-auv-team/kraken_3.0/commit/f5df94bc83018e06806dd5206cf1e3f2c30f3380
I added all the code that is required for the keyboard control module, as in the current
master
tree.Then, I copied the script
runKraken_keyboard.sh
from the master tree. (find the file here)I am using zsh as my default shell. I get the following error when I run
./Scripts/runKraken_keyboard.sh
:The interesting (and the thing I just can't figure out) is that it all works fine when I run the commands in the script one by one. i.e.
And everything works as expected.
(I have tried to run the script from bash too, but that doesn't work either.)
Please help me figure this out. All of my code has been pushed to the indigo-devel branch at my fork.