ros-industrial / ros_canopen

CANopen driver framework for ROS (http://wiki.ros.org/ros_canopen)
GNU Lesser General Public License v3.0
343 stars 274 forks source link

CMake Error while making robotiq_s_model_control because of socketcan_interface #271

Closed yamunamaccarana closed 6 years ago

yamunamaccarana commented 6 years ago

I have ros kinetic installed on Ubuntu 16.04.3 LTS. I installed: $ easy_install -U pymodbus and: $ git clone https://github.com/ros-industrial/robotiq.git in my catkin_ws/src. However, when I catkin_make, I get the error down below*. I also tried to: $ git clone https://github.com/ros-industrial/ros_canopen.git and catkin_make, but this bring me to other errors with variables set to NOTFOUND and include folders.

What should I do?

*Here the error I get; **-- +++ processing catkin package: 'robotiq_s_model_control' -- ==> add_subdirectory(robotiq/robotiq_s_model_control) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy CMake Error at /home/yami/catkin_ws/devel/share/socketcan_interface/cmake/socketcan_interfaceConfig.cmake:113 (message): Project 'socketcan_interface' specifies '/home/yami/catkin_ws/src/ros_canopen/socketcan_interface/include' as an include dir, which is not found. It does neither exist as an absolute directory nor in '/home/yami/catkin_ws/src/ros_canopen/socketcan_interface//home/yami/catkin_ws/src/ros_canopen/socketcan_interface/include'. Check the issue tracker 'https://github.com/ros-industrial/ros_canopen/issues' and consider creating a ticket if the problem has not been reported yet. Call Stack (most recent call first): /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) robotiq/robotiq_s_model_control/CMakeLists.txt:4 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/yami/catkin_ws_man/build/CMakeFiles/CMakeOutput.log". See also "/home/yami/catkin_ws_man/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed**

yamunamaccarana commented 6 years ago

Probably it is better addressing this into https://github.com/ros-industrial/robotiq/issues/

mathias-luedtke commented 6 years ago

I cannot reproduce this. I have added robotiq and ros_canopen to a clean workspace. There are C++11 errors for robotiq_s_model_articulated_gazebo_plugins (https://github.com/ros-industrial/robotiq/pull/104), but the rest compiles.

yamunamaccarana commented 6 years ago

Thankyou, If I try to compile both robotiq and ros_canopen together in a clean workspace I get:

-- +++ processing catkin package: 'robotiq_s_model_visualization' -- ==> add_subdirectory(robotiq/robotiq_s_model_visualization) CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: MUPARSER_INCLUDE_DIR (ADVANCED) used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node used as include directory in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node MUPARSER_LIBRARY (ADVANCED) linked by target "canopen_motor_node-test_muparser" in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node linked by target "canopen_motor" in directory /home/yami/catkin_ws_man/src/ros_canopen/canopen_motor_node

-- Configuring incomplete, errors occurred! See also "/home/yami/catkin_ws_man/build/CMakeFiles/CMakeOutput.log". See also "/home/yami/catkin_ws_man/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

And if I try to just cancel the robotiq_s_model_visualization the same error appears with other nodes in robotiq

mathias-luedtke commented 6 years ago

Did you install all dependencies? rosdep install -i -y --from-paths /home/yami/catkin_ws_man/src (You should do that for all source installs)

It might be that after the CMakeLists.txt restructuring in canopen_motor node the missing dependency is not detected anymore.

yamunamaccarana commented 6 years ago

Thank you ipa-mdl, this made my day. Now I get other errors with robotiq_s_model_articulated_gazebo_plugins, as you told. Thanks, again.

mathias-luedtke commented 6 years ago

I have now added a nicer error message (#272)