Writing a Simple Service and Client (Python) No File or Directory Found Error
I have been running throught the Simple Service and Client tutorial (python) and everything seems fine until I run the rosrun beginner_tutorial add_two_ints(_client/_server).py command. I get ": No file or directory found" error.
I see the comment in the tutorial:
"We use CMake as our build system and, yes, you have to use it even for Python nodes." Assuming that the command that follow would take care of this I believe that this is done.
The files are in the advised directory and are executable (as there is a checkmark in the boxes indicating this in the file properties).
Is that somewhere else that I could check to ensure the rosrun can "see" these files?
PC OS: Unbuntu 14.04 ROS: Indigo
I attempted the tutorial at: http://wiki.ros.org/rospy_tutorials/T... as I thought the issue was something to do with this tutorial. This did not work. returned the error that there were no files specified in add_message_files in CMakeLists.txt. I would really appreciate help.
Have you sourced the setup (
. devel/setup.bash
) file after callingcatkin_make
and before callingrosrun
?I just tried that with the following commends:
(after starting roscore and cd ~/catkin_ws)
catkin_make
source devel/setup.bash
rosrun beginner_tutorials add_two_ints_client.py
I still got ": No such file or directory"
Sorry so spelled out but I am fairly new to both Ubuntu and ROS. Thanks!
What does
rospack profile
output? Is your package in the list ofrospack list-names
? Can you check the content of the devel space: e.g.devel/lib/beginner_tutorial
?Sorry if this doesn't conform to convention but my response did not fit in the comment had to put in the answer field. Please read the next answer for my response.
Thanks!
I did go back and run the Talker Listener tutorial and that ran fine. The .py files are all in scripts in the recommended directory structure.