Closed wkyoun closed 8 years ago
There should be catkin_install_python in CMakeLists.txt about diff_wheeled_robot_key node as http://wiki.ros.org/catkin/CMakeLists.txt indicates
But, nothing is found related to that:
Installing Python Executable Scripts
For Python code, the install rule looks different as there is no use of the add_library() and add_executable() functions so as for CMake to determine which files are targets and what type of targets they are. Instead, use the following in your CMakeLists.txt file:
catkin_install_python(PROGRAMS scripts/myscript
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
@won13y I found the bug. I will update in the repo soon.
I can explain the steps to remove this error
1) Goto scripts folder 2) Change file permission of diff_wheeled_robot_key node using the following command chmod +x diff_wheeled_robot_key node
3) Open the script and comment the following like follows
and run the launch file. It will work
Try and reply if it is worked !! Thanks
@won13y Updated the code !!
chmod +x
solve the problem
I tried to do as chapter 3, Adding the ROS teleop node indicates (page.111)
wkyoun@wkyoun-XPS-13-9343:~/catkin_ws$ roslaunch diff_wheeled_robot_control keyboard_teleop.launch
However, it shows error as following:
ERROR: cannot launch node of type [diff_wheeled_robot_control/diff_wheeled_robot_key]: can't locate node [diff_wheeled_robot_key] in package [diff_wheeled_robot_control]
It seems to me that diff_wheeled_robot_key(made by python language) is not include in the package.