ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I changed /opt/ros/kinetic/setup.bash to uncomment following line:

_CATKIN_SETUP_DIR=$(builtin cd "dirname "${BASH_SOURCE[0]}"" > /dev/null && pwd) . "$_CATKIN_SETUP_DIR/setup.sh"

commented below lines:

source setup.sh from same directory as this file

export MY_WORKSPACE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ -d ${MY_WORKSPACE}/devel ]; then

source ${MY_WORKSPACE}/devel/setup.bash

It worked after this. I did not see create_node error.

click to hide/show revision 2
No.2 Revision

I changed /opt/ros/kinetic/setup.bash to uncomment following line:

_CATKIN_SETUP_DIR=$(builtin cd "dirname "${BASH_SOURCE[0]}"" "`dirname "${BASH_SOURCE[0]}"`" > /dev/null && pwd)
. "$_CATKIN_SETUP_DIR/setup.sh"

"$_CATKIN_SETUP_DIR/setup.sh"

commented below lines:

# source setup.sh from same directory as this file

export file #export MY_WORKSPACE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if )" #if [ -d ${MY_WORKSPACE}/devel ]; then

then # source ${MY_WORKSPACE}/devel/setup.bash

${MY_WORKSPACE}/devel/setup.bash

It worked after this. I did not see create_node error.