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

ERROR: cannot launch node of type [create_node/turtlebot_node.py]: can't locate node [turtlebot_node.py] in package [create_node]

asked 2018-02-17 14:11:10 -0500

samiksha gravatar image

updated 2018-02-17 21:55:44 -0500

jayess gravatar image

Hi,

I am have installed turtlebot binaries. While executing :

roslaunch turtlebot_bringup minimal.launch

I am getting error as :

ERROR: cannot launch node of type [create_node/turtlebot_node.py]: can't locate node [turtlebot_node.py] in package [create_node]
ERROR: cannot launch node of type [create_node/kinect_breaker_enabler.py]: can't locate node [kinect_breaker_enabler.py] in package [create_node]
ERROR: cannot launch node of type [create_node/load_calib.py]: can't locate node [load_calib.py] in package [create_node]

I have reinstalled turtlebot package more than thrice. I am still facing this issue.

I have create_node package installed. All the three files (turtlebot_node.py,kinect_breaker_enabler.py,load_calib.py) are present in /opt/ros/kinetic/lib/create_node folder. When I move these files from lib folder to share/create_node I get below error:

[turtlebot_node-4] process has died [pid 5091, exit code 1, cmd /opt/ros/kinetic/share/create_node/turtlebot_node.py --respawnable cmd_vel:=mobile_base/commands/velocity turtlebot_node/sensor_state:=mobile_base/sensors/core imu/data:=mobile_base/sensors/imu_data imu/raw:=mobile_base/sensors/imu_data_raw __name:=turtlebot_node __log:=/home/nvidia/.ros/log/ca2facc4-1432-11e8-91f4-00044b8c7fdc/turtlebot_node-4.log].
log file: /home/nvidia/.ros/log/ca2facc4-1432-11e8-91f4-00044b8c7fdc/turtlebot_node-4*.log

Any help with this issue is really appreciated.

Thanks in advance

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2018-02-17 20:50:07 -0500

jayess gravatar image

updated 2019-04-08 01:40:11 -0500

You should not modify the setup.bash file. You need to source both of the setup.bash files of your distribution and your workspace. Please see the tutorial on the creating a catkin workspace.

edit flag offensive delete link more

Comments

Okay. I have reverted the changes.

samiksha gravatar image samiksha  ( 2018-02-19 16:50:14 -0500 )edit
0

answered 2018-02-17 20:20:56 -0500

samiksha gravatar image

updated 2018-02-17 21:56:36 -0500

jayess gravatar image

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.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-02-17 14:11:10 -0500

Seen: 898 times

Last updated: Apr 08 '19