catkin_make is looking for package.xml in catkin_ws/src [closed]
Hi. I am trying to complete the actionlib tutorials. This issue is mostly unrelated.
I am trying to create a new catkin package for the tutorial. My shell commands go like this:
cd
source /opt/ros/hydro/setup.bash
mkdir -p ROS_TUTORIALS/actionlib/src
cd ROS_TUTORIALS/actionlib/src
catkin_init_workspace
catkin_make
source devel/setup.bash
catkin_create_pkg learning_actionlib actionlib message_generation roscpp rospy std_msgs actionlib_msgs
# I add some files and change CMakeLists.txt as specified here:
# http://wiki.ros.org/actionlib_tutorials/Tutorials/SimpleActionServer%28ExecuteCallbackMethod%29
cd ../..
catkin_make
The error I get is this:
CMake Error: File /home/<username>/ROS_TUTORIALS/actionlib/src/package.xml does not exist.
CMake Error at /opt/ros/hydro/share/catkin/cmake/stamp.cmake:10 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
/opt/ros/hydro/share/catkin/cmake/catkin_package_xml.cmake:61 (stamp)
/opt/ros/hydro/share/catkin/cmake/catkin_package_xml.cmake:39 (_catkin_package_xml)
/opt/ros/hydro/share/catkin/cmake/catkin_package.cmake:95 (catkin_package_xml)
CMakeLists.txt:7 (catkin_package)
This is preceded by some success/status messages, and further error messages follow (they are dependent on the above error) .
I have reviewed the tutorials, and repeated them several times, and my directory appears to have the correct structure. For clarification:
actionlib/ # the catkin workspace
src/
CMakeLists.txt
learning_actionlib/
src/
...
package.xml
CMakeLists.txt
...
devel/
...
build/
...
Sorry if I wrote too much, I wanted to help whoever tries to answer my question as much as possible. Thanks in advance for any help!