Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all 354 articles
Browse latest View live

ROS with QtCreator: auto-completion

$
0
0
Hi all, I'm using and like QtCreator to code and build my ROS projects written in c++. Unfortunately the auto-completion for my own header files is not working: e.g. `#include "LineTracker.hh"` Building the project works perfectly. And also the auto-completion for other external packages like ros or opencv is working. Thats how my CMakeLists.txt looks: cmake_minimum_required(VERSION 2.8.3) project(line_tracking) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") find_package(catkin REQUIRED COMPONENTS roscpp tf sensor_msgs image_transport cv_bridge ) catkin_package() include_directories( include ${catkin_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR} ) add_executable(${PROJECT_NAME} src/line_tracking.cpp src/EDLineDetector.cpp src/LineTracker.cpp ) target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ) # --- QT CREATOR STUFF --- #Add all files in subdirectories of the project in # a dummy_target so qtcreator has access to all files FILE(GLOB children ${CMAKE_SOURCE_DIR}/*) FOREACH(child ${children}) IF(IS_DIRECTORY ${child}) file(GLOB_RECURSE dir_files "${child}/*") LIST(APPEND extra_files ${dir_files}) ENDIF() ENDFOREACH() add_custom_target(dummy_${PROJECT_NAME} SOURCES ${extra_files}) # The file/package structure looks standard like this: CMakeLists.txt | + -- src | + -- include **How do I have to adapt my CMakeLists.txt that QtCreator finds my headers for auto-completion?** Thank you very much for your help! *Sidenote:* When I use the top CMakeLists.txt file of the catkin workspace in QtCeator and I include the header files under their package path like this: `#include ` the auto-completion is working but the build is not working anymore. So this is only a bad and not userfriendly hack to get auto-completion during coding.

cmake error suitesparseconfig.cmake

$
0
0
hi, i've got an error when i compiled `mcptam`. After `catkin_make`, then i had message like this CMake Error at CMakeLists.txt:15 (find_package): By not providing "FindSUITESPARSE.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "SUITESPARSE", but CMake did not find one. Could not find a package configuration file provided by "SUITESPARSE" with any of the following names: SUITESPARSEConfig.cmake suitesparse-config.cmake Add the installation prefix of "SUITESPARSE" to CMAKE_PREFIX_PATH or set "SUITESPARSE_DIR" to a directory containing one of the above files. If "SUITESPARSE" provides a separate development package or SDK, be sure it has been installed. please help me guys. :)

Debugging issues in a catkin build (of SimTrack)

$
0
0
I have run into an interesting problem. There is a library for real-time, robust visual tracking of objects using GPU called [SimTrack](https://github.com/karlpauwels/simtrack), which on the majority of my machines builds. However, on one of my machines (unfortunately, the once purpose-built to handle this sort of computational load), the built Simtrack system seemed to suddenly stop working correctly. Thinking that this is weird, I tried to rebuild the catkin workspace, which unexpectedly failed on a few ambiguous vector and string declarations in the code (specifically at _________). To attempt to revert back to where this code built, I ran `catkin _make clean` on my catkin workspace, and even for good measure deleted the build, devel, and install folders, and the source folder for SimTrack (but not before copying them), and used `wstool update` to pull down the master from github, which I know built before, and still builds on the system from which I am writing this now. However, no matter the changes I make to the workspace, I cannot zero in on the problem breaking this build. I managed to get it to build by changing the offending `vector` and `string` calls to `std::vector` and `std::string`, but not only do i think this should be unnecessary because: 1. the unchanged code builds on other machines 2. the edited code does not run properly I think the issue has something to do with the *way* `catkin_make` is trying to build the code, i.e. CMake parameters, etc., but I am a bit new to this, so any help or suggestions for how to diagnose this problem are appreciated. Machine 1 (not working, was working originally): Ubuntu 14.04.3 ROS Indigo CUDA 7.5 Machine 2 (working) Ubuntu 12.04.2 ROS Groovy CUDA 6.5

Integrating cmake into qmake build process in QtCreator

$
0
0
Hi. I already have a large (working) Qt program, where I want to use ROS functionalities now, too. Therefore, I would like to keep the qmake build process. So, everything is setup in QtCreator: On the one hand, I can build my (large) Qt program with qmake and on the other hand I can build another (test) Qt ROS program with cmake... But how do I combine these build processes? How do I integrate (an additional) cmake into my qmake build process? Do I have to migrate everything to cmake? Or is it possible to use qmake and cmake? Or is it possible to compile some parts seperately with cmake while others are compiled with qmake? (I am not so experienced with build processes, btw) Or is catkin_make another "option"? All in all, I am looking for a convenient way to keep qmake and add "something" to build and link ROS dependent cpp files. Thanks for your help. ---- Ubuntu 14.04 LTS | Qt 5.4.1 | ROS Indigo | IDE: QtCreator

Including external SDK's

$
0
0
I have been working on a camera driver package for some time now, and the camera comes with a SDK which needs to be included during the build process. Now that I am working on trying to release the package as a deb, I don’t exactly know what the best way to go about automatically getting the user setup when installing the package. I have looked around at a few other packages to see how they maybe have included external SDK’s in their CMakeLists or how they set any environment variables as to where the SDK is located, and the only package I knew of that had a external SDK was pointgrey_camera_driver. Although the package does download the Flycap SDK, it will re-download everytime a workspace is rebuilt. I’d imagine this is due to the fact that no environment variable is set (or cant be set?). However, although setting a direct path to the SDK in the CMakeLists is a option, this will not allow a user to use the latest SDK version provided if a static download URL is used. I was going to put this on the mailing list to get a broader range of opinions, but figured people would say this would be the more appropriate place to ask this anyway. If any package maintainers who do make use of an external SDK have any insight on how you go about keeping the SDK version up to date, and how you integrate it with your package for debian installation, i'd greatly appreciate it.

again error with opencv and libboost please help

$
0
0
im getting these errors: pi@raspberrypi:~/catkin_ws $ catkin_make Base path: /home/pi/catkin_ws Source space: /home/pi/catkin_ws/src Build space: /home/pi/catkin_ws/build Devel space: /home/pi/catkin_ws/devel Install space: /home/pi/catkin_ws/install #### #### Running command: "cmake /home/pi/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/pi/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/pi/catkin_ws/install -G Unix Makefiles" in "/home/pi/catkin_ws/build" #### -- Using CATKIN_DEVEL_PREFIX: /home/pi/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /home/pi/catkin_ws/devel;/opt/ros/jade -- This workspace overlays: /home/pi/catkin_ws/devel;/opt/ros/jade -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/pi/catkin_ws/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.16 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 7 packages in topological order: -- ~~ - antdroid (metapackage) -- ~~ - antdroid_msgs -- ~~ - antdroid_control_interpreter -- ~~ - antdroid_bringup -- ~~ - antdroid_cam_control -- ~~ - antdroid_teleop -- ~~ - antdroid_antfirm -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin metapackage: 'antdroid' -- ==> add_subdirectory(antdroid/antdroid) -- +++ processing catkin package: 'antdroid_msgs' -- ==> add_subdirectory(antdroid/antdroid_msgs) -- Using these message generators: gencpp;geneus;genlisp;genpy -- antdroid_msgs: 10 messages, 0 services -- +++ processing catkin package: 'antdroid_control_interpreter' -- ==> add_subdirectory(antdroid/antdroid_control_interpreter) -- +++ processing catkin package: 'antdroid_bringup' -- ==> add_subdirectory(antdroid/antdroid_bringup) -- +++ processing catkin package: 'antdroid_cam_control' -- ==> add_subdirectory(antdroid/antdroid_cam_control) -- +++ processing catkin package: 'antdroid_teleop' -- ==> add_subdirectory(antdroid/antdroid_teleop) -- +++ processing catkin package: 'antdroid_antfirm' -- ==> add_subdirectory(antdroid/antdroid_antfirm) CMake Warning at /home/pi/catkin_ws/build/antdroid/antdroid_antfirm/cmake/antdroid_antfirm-genmsg.cmake:3 (message): Invoking generate_messages() without having added any message or service file before. You should either add add_message_files() and/or add_service_files() calls or remove the invocation of generate_messages(). Call Stack (most recent call first): /opt/ros/jade/share/genmsg/cmake/genmsg-extras.cmake:304 (include) antdroid/antdroid_antfirm/CMakeLists.txt:24 (generate_messages) -- antdroid_antfirm: 0 messages, 0 services -- Using rosserial_arduino/make_libraries.py to make rosserial client library. -- Configuring done CMake Warning (dev) at /opt/ros/jade/share/catkin/cmake/test/tests.cmake:148 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "clean_test_results_antdroid_bringup" of target "_run_tests_antdroid_bringup_roslaunch-check_launch" does not exist. Call Stack (most recent call first): /opt/ros/jade/share/roslaunch/cmake/roslaunch-extras.cmake:35 (catkin_run_tests_target) antdroid/antdroid_bringup/CMakeLists.txt:11 (roslaunch_add_file_check) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at antdroid/antdroid_cam_control/src/CMakeLists.txt:12 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "sensor_msgs_gencpp" of target "cam_control" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /opt/ros/jade/share/rosserial_client/cmake/rosserial_client-extras.cmake:31 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "rosserial_msgs_genpy" of target "antdroid_antfirm_ros_lib" does not exist. Call Stack (most recent call first): antdroid/antdroid_antfirm/CMakeLists.txt:34 (rosserial_generate_ros_lib) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /opt/ros/jade/share/rosserial_client/cmake/rosserial_client-extras.cmake:31 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "std_msgs_genpy" of target "antdroid_antfirm_ros_lib" does not exist. Call Stack (most recent call first): antdroid/antdroid_antfirm/CMakeLists.txt:34 (rosserial_generate_ros_lib) This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done -- Build files have been written to: /home/pi/catkin_ws/build #### #### Running command: "make -j4 -l4" in "/home/pi/catkin_ws/build" #### Scanning dependencies of target std_msgs_generate_messages_lisp Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Log Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Calibrate Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Rotate [ 0%] Built target std_msgs_generate_messages_lisp Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Walk [ 0%] [ 0%] [ 0%] Built target _antdroid_msgs_generate_messages_check_deps_Log Built target _antdroid_msgs_generate_messages_check_deps_Calibrate Built target _antdroid_msgs_generate_messages_check_deps_Rotate Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Gait Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Speed Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Height [ 0%] Built target _antdroid_msgs_generate_messages_check_deps_Walk Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Foot [ 0%] [ 0%] Built target _antdroid_msgs_generate_messages_check_deps_Gait Built target _antdroid_msgs_generate_messages_check_deps_Speed [ 0%] Built target _antdroid_msgs_generate_messages_check_deps_Height Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_Balance Scanning dependencies of target _antdroid_msgs_generate_messages_check_deps_MoveLeg Scanning dependencies of target std_msgs_generate_messages_cpp [ 0%] Built target _antdroid_msgs_generate_messages_check_deps_Foot [ 0%] Built target std_msgs_generate_messages_cpp Scanning dependencies of target std_msgs_generate_messages_py Scanning dependencies of target std_msgs_generate_messages_eus [ 0%] Built target std_msgs_generate_messages_py [ 0%] Built target std_msgs_generate_messages_eus Scanning dependencies of target cam_control Scanning dependencies of target antdroid_antfirm_generate_messages [ 0%] [ 0%] Built target _antdroid_msgs_generate_messages_check_deps_Balance Built target _antdroid_msgs_generate_messages_check_deps_MoveLeg [ 0%] Built target antdroid_antfirm_generate_messages Scanning dependencies of target antdroid_msgs_generate_messages_lisp Scanning dependencies of target antdroid_msgs_generate_messages_cpp Scanning dependencies of target antdroid_msgs_generate_messages_py [ 2%] [ 4%] Generating Lisp code from antdroid_msgs/Walk.msg [ 6%] Generating C++ code from antdroid_msgs/Walk.msg [ 8%] Generating Python from MSG antdroid_msgs/Walk Building CXX object antdroid/antdroid_cam_control/src/CMakeFiles/cam_control.dir/main.cpp.o [ 10%] Generating Lisp code from antdroid_msgs/Log.msg [ 12%] Generating Python from MSG antdroid_msgs/Log [ 14%] Generating Lisp code from antdroid_msgs/Calibrate.msg [ 17%] Generating Python from MSG antdroid_msgs/Calibrate [ 19%] Generating Lisp code from antdroid_msgs/Foot.msg [ 21%] Generating Python from MSG antdroid_msgs/Foot [ 23%] Generating C++ code from antdroid_msgs/Log.msg [ 25%] Generating Lisp code from antdroid_msgs/Balance.msg [ 27%] Generating Python from MSG antdroid_msgs/Balance [ 29%] Generating Lisp code from antdroid_msgs/Height.msg [ 31%] Generating Python from MSG antdroid_msgs/Height [ 34%] Generating Lisp code from antdroid_msgs/Speed.msg [ 36%] Generating Python from MSG antdroid_msgs/Speed [ 38%] [ 40%] Generating Lisp code from antdroid_msgs/Gait.msg [ 42%] Generating Python from MSG antdroid_msgs/Gait Generating C++ code from antdroid_msgs/Calibrate.msg [ 44%] Generating Lisp code from antdroid_msgs/MoveLeg.msg [ 46%] Generating Python from MSG antdroid_msgs/MoveLeg [ 48%] Generating Lisp code from antdroid_msgs/Rotate.msg [ 51%] Generating Python from MSG antdroid_msgs/Rotate [ 51%] Built target antdroid_msgs_generate_messages_lisp [ 53%] Generating Python msg __init__.py for antdroid_msgs Scanning dependencies of target antdroid_msgs_generate_messages_eus [ 55%] Generating EusLisp code from antdroid_msgs/Walk.msg [ 57%] Generating C++ code from antdroid_msgs/Foot.msg [ 57%] Built target antdroid_msgs_generate_messages_py [ 59%] Generating EusLisp code from antdroid_msgs/Log.msg make[2]: *** No rule to make target '/usr/lib/arm-linux-gnueabihf/libopencv_videostab.so.2.4.8', needed by '/home/pi/catkin_ws/devel/lib/antdroid_cam_control/cam_control'. Stop. make[2]: *** Waiting for unfinished jobs.... [ 61%] Building CXX object antdroid/antdroid_cam_control/src/CMakeFiles/cam_control.dir/antdroid_cam_control.cpp.o [ 63%] Generating EusLisp code from antdroid_msgs/Calibrate.msg [ 65%] Generating EusLisp code from antdroid_msgs/Foot.msg [ 68%] Generating C++ code from antdroid_msgs/Balance.msg [ 70%] Generating EusLisp code from antdroid_msgs/Balance.msg [ 72%] Generating EusLisp code from antdroid_msgs/Height.msg [ 74%] Generating EusLisp code from antdroid_msgs/Speed.msg [ 76%] [ 78%] Generating EusLisp code from antdroid_msgs/Gait.msg Generating C++ code from antdroid_msgs/Height.msg [ 80%] Generating EusLisp code from antdroid_msgs/MoveLeg.msg [ 82%] Generating EusLisp code from antdroid_msgs/Rotate.msg [ 85%] Generating EusLisp manifest code for antdroid_msgs [ 87%] Generating C++ code from antdroid_msgs/Speed.msg [ 89%] Generating C++ code from antdroid_msgs/Gait.msg [ 91%] Generating C++ code from antdroid_msgs/MoveLeg.msg [ 93%] Generating C++ code from antdroid_msgs/Rotate.msg [ 93%] Built target antdroid_msgs_generate_messages_eus [ 93%] Built target antdroid_msgs_generate_messages_cpp Scanning dependencies of target antdroid_msgs_gencpp Scanning dependencies of target antdroid_msgs_generate_messages [ 93%] [ 93%] Built target antdroid_msgs_generate_messages Built target antdroid_msgs_gencpp Scanning dependencies of target antdroid_teleop_joy Scanning dependencies of target control_interpreter [ 95%] [ 97%] Building CXX object antdroid/antdroid_teleop/CMakeFiles/antdroid_teleop_joy.dir/src/antdroid_joy.cpp.o Building CXX object antdroid/antdroid_control_interpreter/src/CMakeFiles/control_interpreter.dir/main.cpp.o [100%] Building CXX object antdroid/antdroid_control_interpreter/src/CMakeFiles/control_interpreter.dir/control_interpreter_core.cpp.o CMakeFiles/Makefile2:1980: recipe for target 'antdroid/antdroid_cam_control/src/CMakeFiles/cam_control.dir/all' failed make[1]: *** [antdroid/antdroid_cam_control/src/CMakeFiles/cam_control.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Linking CXX executable /home/pi/catkin_ws/devel/lib/antdroid_teleop/antdroid_teleop_joy /usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /opt/ros/jade/lib/libroscpp.so, may conflict with libboost_system.so.1.55.0 /usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by /opt/ros/jade/lib/libroscpp.so, may conflict with libboost_thread.so.1.55.0 /usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by /opt/ros/jade/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.55.0 /usr/bin/ld: warning: libboost_regex.so.1.54.0, needed by /opt/ros/jade/lib/librosconsole.so, may conflict with libboost_regex.so.1.55.0 [100%] Built target antdroid_teleop_joy Linking CXX executable /home/pi/catkin_ws/devel/lib/antdroid_control_interpreter/control_interpreter /usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /opt/ros/jade/lib/libroscpp.so, may conflict with libboost_system.so.1.55.0 /usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by /opt/ros/jade/lib/libroscpp.so, may conflict with libboost_thread.so.1.55.0 /usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by /opt/ros/jade/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.55.0 /usr/bin/ld: warning: libboost_regex.so.1.54.0, needed by /opt/ros/jade/lib/librosconsole.so, may conflict with libboost_regex.so.1.55.0 [100%] Built target control_interpreter Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed can anyone please help? im on a Raspberry pi 2 b with raspbian jessie and ros jade

CMake linker warning: lib.so. may conflict with lib.so.

$
0
0
I am getting a ton of linker warnings when building a catkin package, and I don't know whether they are dangerous or not. Things seem to be working fine, but want to make sure that I'm not setting myself up for future failure. Could anyone shed some light on the nature of these errors, or do they seem benign? CMake Warning (dev) at PID/CMakeLists.txt:73 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "diagnostic_updater" of target "controller" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:73 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "dynamic_reconfigure" of target "controller" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:87 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "diagnostic_updater" of target "mvp_controller" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:87 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "dynamic_reconfigure" of target "mvp_controller" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:74 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "diagnostic_updater" of target "plant_sim" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:74 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "dynamic_reconfigure" of target "plant_sim" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:75 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "diagnostic_updater" of target "setpoint_node" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:75 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "dynamic_reconfigure" of target "setpoint_node" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:76 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "diagnostic_updater" of target "sim_time" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at PID/CMakeLists.txt:76 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "dynamic_reconfigure" of target "sim_time" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at mvp_ros/CMakeLists.txt:153 (add_dependencies): Policy CMP0046 is not set: Error on non-existent dependency in add_dependencies. Run "cmake --help-policy CMP0046" for policy details. Use the cmake_policy command to set the policy and suppress this warning. The dependency target "mvp_ros" of target "i2c_imu_node" does not exist. This warning is for project developers. Use -Wno-dev to suppress it. .... .... Linking CXX executable /home/pi/mvp_catkin_ws/devel/lib/mvp_ros/i2c_imu_node /usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_system.so.1.55.0 /usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_thread.so.1.55.0 /usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.55.0 /usr/bin/ld: warning: libboost_regex.so.1.54.0, needed by /opt/ros/indigo/lib/librosconsole.so, may conflict with libboost_regex.so.1.55.0 [100%] Built target i2c_imu_node Linking CXX executable /home/pi/mvp_catkin_ws/devel/lib/mvp_ros/signal_regulator Linking CXX executable /home/pi/mvp_catkin_ws/devel/lib/mvp_ros/xbox_ser_relay /usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_system.so.1.55.0 /usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_thread.so.1.55.0 /usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.55.0 /usr/bin/ld: warning: libboost_regex.so.1.54.0, needed by /opt/ros/indigo/lib/librosconsole.so, may conflict with libboost_regex.so.1.55.0 /usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_system.so.1.55.0 /usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_thread.so.1.55.0 /usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.55.0 /usr/bin/ld: warning: libboost_regex.so.1.54.0, needed by /opt/ros/indigo/lib/librosconsole.so, may conflict with libboost_regex.so.1.55.0 [100%] [100%] Built target signal_regulator Built target xbox_ser_relay Linking CXX executable /home/pi/mvp_catkin_ws/devel/lib/mvp_ros/teleop_xbox /usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_system.so.1.55.0 /usr/bin/ld: warning: libboost_thread.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_thread.so.1.55.0 /usr/bin/ld: warning: libboost_filesystem.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_filesystem.so.1.55.0 /usr/bin/ld: warning: libboost_regex.so.1.54.0, needed by /opt/ros/indigo/lib/librosconsole.so, may conflict with libboost_regex.so.1.55.0

CMake Error in ROS Navigation

$
0
0
Hi! I followed these steps to install ROS navigation: cd catkin_ws/src git clone https://github.com/ros-planning/navigation.git cd .. catkin_make but I have this error CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal) navigation/robot_pose_ekf/CMakeLists.txt:6 (pkg_check_modules) What does it mean? How do I fix? Thank you!

cmake in terminal - work, cmake in qtcreator - dont work

$
0
0
http://notes.at.ua/21.png - terminal screen http://notes.at.ua/36.png - qt screen

Using a_pkg cmake extras in b_pkg cmake extras

$
0
0
I have a situation where I want to use CMake macros defined in `a_pkg` cmake extras (defined via `CFG_EXTRAS`) in `b_pkg`'s cmake extras. For this, in `b_pkg` I define a `buildtool_export_depend` on `a_pkg`. If I then try to build `c_pkg` with an `buildtool_depend` on `b_pkg`, it fails, since while trying to load the cmake extras from `b_pkg` the macro from `a_pkg`'s extras is not found. It makes sense why this would happen, since nowhere does anyone call `find_package` on `a_pkg`. But what is the correct way to deal with this? Does it make sense to manually call `find_package(a_pkg REQUIRED)` in `b_pkg`'s cmake extras file, or should there be another mechanism? Note that I do not `buildtool_depend` or `build_depend` on `a_pkg` in `b_pkg`, and therefore also don't call `find_package(catkin ...)` with `a_pkg` in the component list. Here are the example packages: https://github.com/NikolausDemmel/test_cmake_extras Note: Try the example package with `catkin_make`, since `catkin build` seems to have an issue with `buildtool_export_depend`, see https://github.com/catkin/catkin_tools/issues/304

when build gazebo ,how to assign it to include ogre 1.8

$
0
0
Because I had installed ogre1.8, then, I installed ogre1.9 again. Now ,when I build gazebo 2.0 It comes to an error > Bad Ogre3d version: gazebo using 1.9.0> ogre version has known bugs in runtime> (issue #996). Please use 1.7 or 1.8> series I don't know how to assign gazebo ogre 1.8 I tried to use cmake-gui to find if there is a name such as "ogre" "path" but I could not find such name like that. I also tried to enter: > export OGRE_HOME=/usr/local/ogre1.8 but it still didn't work Thanks for help!

CMake has not found a package configuration file provided by "console_bridge"

$
0
0
I am attempting to install Ros Indigo from source on Ubuntu 15.01 After running the following command I am getting the following error message. What should I do? ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release ==> Processing catkin package: 'cpp_common' ==> Building with env: '/home/josephcrandall/Documents/ros_catkin_ws/install_isolated/env.sh' ==> cmake /home/josephcrandall/Documents/ros_catkin_ws/src/roscpp_core/cpp_common -DCATKIN_DEVEL_PREFIX=/home/josephcrandall/Documents/ros_catkin_ws/devel_isolated/cpp_common -DCMAKE_INSTALL_PREFIX=/home/josephcrandall/Documents/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G Unix Makefiles in '/home/josephcrandall/Documents/ros_catkin_ws/build_isolated/cpp_common' -- Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- thread CMake Error at CMakeLists.txt:5 (find_package): By not providing "Findconsole_bridge.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "console_bridge", but CMake did not find one. Could not find a package configuration file provided by "console_bridge" with any of the following names: console_bridgeConfig.cmake console_bridge-config.cmake Add the installation prefix of "console_bridge" to CMAKE_PREFIX_PATH or set "console_bridge_DIR" to a directory containing one of the above files. If "console_bridge" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/home/josephcrandall/Documents/ros_catkin_ws/build_isolated/cpp_common/CMakeFiles/CMakeOutput.log". <== Failed to process package 'cpp_common': Command '['/home/josephcrandall/Documents/ros_catkin_ws/install_isolated/env.sh', 'cmake', '/home/josephcrandall/Documents/ros_catkin_ws/src/roscpp_core/cpp_common', '-DCATKIN_DEVEL_PREFIX=/home/josephcrandall/Documents/ros_catkin_ws/devel_isolated/cpp_common', '-DCMAKE_INSTALL_PREFIX=/home/josephcrandall/Documents/ros_catkin_ws/install_isolated', '-DCMAKE_BUILD_TYPE=Release', '-G', 'Unix Makefiles']' returned non-zero exit status 1 Reproduce this error by running: ==> cd /home/josephcrandall/Documents/ros_catkin_ws/build_isolated/cpp_common && /home/josephcrandall/Documents/ros_catkin_ws/install_isolated/env.sh cmake /home/josephcrandall/Documents/ros_catkin_ws/src/roscpp_core/cpp_common -DCATKIN_DEVEL_PREFIX=/home/josephcrandall/Documents/ros_catkin_ws/devel_isolated/cpp_common -DCMAKE_INSTALL_PREFIX=/home/josephcrandall/Documents/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'

Problem building shared library using catkin for ros::init(...)

$
0
0
I am trying to build a shared c library that includes ros code. The intention is to build a Ros interface to the new co-simulation FMI standard. I have made c wrappers for the c++ code I intend to use and without the ros::init(...) function call it seems to work fine. I think my problem is the cmake file I have made since it seems to be missing ros::init() So I have the following structure: - fmu2watertank.c *--main libary file* - roswrapper.h *-- c wrapper file .h file* - roswrapper.cpp *-- c wrapper file .cpp file* - rosclass.h *-- header file for class contaning ros code* - rosclass.cpp *-- cpp file for class contaning ros code* I use the following cmake file to compile the code: cmake_minimum_required(VERSION 2.8.3) project (ros_fmu_interface) find_package(catkin REQUIRED COMPONENTS roscpp std_msgs rosgraph_msgs) set(INCLUDE_DIR src src/include src/include/templates) include_directories(include /usr/include ${INCLUDE_DIR} ${catkin_INCLUDE_DIRS}) add_definitions(-DLIBXML_STATIC -DFMI_COSIMULATION -DMODEL_IDENTIFIER='tank' -DMODEL_GUID='"{8c4e810f-3df3-4a00-8276-176fa3c9f001}"') SET(GCC_COVERAGE_COMPILE_FLAGS "-fmessage-length=0") add_definitions(${GCC_COVERAGE_COMPILE_FLAGS}) add_library(tank SHARED src/fmu2watertank.c src/roswrapper.cpp src/rosclass.cpp) add_dependencies(tank ${PROJECT_NAME} msgs_gencpp) target_link_libraries(tank ${catkin_LIBRARIES} ) The code seems to compile fine : -- Using CATKIN_DEVEL_PREFIX: /home/martin/ros_into/devel -- Using CMAKE_PREFIX_PATH: /home/martin/ros_into/devel;/opt/ros/jade -- This workspace overlays: /home/martin/ros_into/devel;/opt/ros/jade -- Using PYTHON_EXECUTABLE: /usr/bin/python -- Using Debian Python package layout -- Using empy: /usr/bin/empy -- Using CATKIN_ENABLE_TESTING: ON -- Call enable_testing() -- Using CATKIN_TEST_RESULTS_DIR: /home/martin/ros_into/build/test_results -- Found gtest sources under '/usr/src/gtest': gtests will be built -- Using Python nosetests: /usr/bin/nosetests-2.7 -- catkin 0.6.16 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 1 packages in topological order: -- ~~ - ros_fmu_interface -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'ros_fmu_interface' -- ==> add_subdirectory(agro_intelli/fmu_units/ros_fmu_interface) -- Configuring done -- Generating done -- Build files have been written to: /home/martin/ros_into/build #### #### Running command: "make -j8 -l8" in "/home/martin/ros_into/build" #### Scanning dependencies of target tank [ 66%] [ 66%] [100%] Building CXX object agro_intelli/fmu_units/ros_fmu_interface/CMakeFiles/tank.dir/src/rosclass.cpp.o Building CXX object agro_intelli/fmu_units/ros_fmu_interface/CMakeFiles/tank.dir/src/roswrapper.cpp.o Building C object agro_intelli/fmu_units/ros_fmu_interface/CMakeFiles/tank.dir/src/fmu2watertank.c.o /home/martin/ros_into/src/agro_intelli/fmu_units/ros_fmu_interface/src/fmu2watertank.c:11:0: warning: "MODEL_IDENTIFIER" redefined [enabled by default] #define MODEL_IDENTIFIER tank ^:0:0: note: this is the location of the previous definition /home/martin/ros_into/src/agro_intelli/fmu_units/ros_fmu_interface/src/fmu2watertank.c:12:0: warning: "MODEL_GUID" redefined [enabled by default] #define MODEL_GUID "{8c4e810f-3df3-4a00-8276-176fa3c9f001}" ^:0:0: note: this is the location of the previous definition /home/martin/ros_into/src/agro_intelli/fmu_units/ros_fmu_interface/src/rosclass.cpp: In member function ‘void rosClass::setup()’: /home/martin/ros_into/src/agro_intelli/fmu_units/ros_fmu_interface/src/rosclass.cpp:9:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] char *argv[] = {"tank", NULL}; ^ Linking CXX shared library /home/martin/ros_into/devel/lib/libtank.so [100%] Built target tank But when I look into library file using nm I notice the following: nm -D libtank.so ... U _ZN3ros4initERiPPcRKSsj 0000000000005038 W _ZN5boost3argILi1EEC1Ev 0000000000005038 W _ZN5boost3argILi1EEC2Ev 0000000000005042 W _ZN5boost3argILi2EEC1Ev 0000000000005042 W _ZN5boost3argILi2EEC2Ev ... I seems ros::init is undefined in the library. Making me think I need to fix something in my cmake file. I am unsure what I need to change for the includes or linking process and hope somebody can point me in the rigth direction! ---------- For reference I have Included my c++ class and c wrapper. rosclass.cpp: #include "rosclass.h" #include //#include "std_msgs/Float64.h" //#include "std_msgs/Time.h" //#include "rosgraph_msgs/Clock.h" void rosClass::setup(){ int argc = 1; char *argv[] = {"tank", NULL}; ros::init(argc, argv, "fmu_interface"); //info_pub = n.advertise("info_data", 10); //time_pub = n.advertise("/clock", 1); } /* void rosClass::set_value(double f) { std_msgs::Float64 msg; msg.data = f; info_pub.publish(msg); } void rosClass::set_time(double t) { rosgraph_msgs::Clock clock; ros::Time time(t); clock.clock = time; time_pub.publish(clock); }*/ rosclass.h : #ifndef __ROSCLASS_H #define __ROSCLASS_H class rosClass { public: void setup(); //void set_value(double f); //void set_time(double t); }; #endif roswrapper.cpp: #include "rosclass.h" #include "roswrapper.h" extern "C" { rosClass* newRosClass() { return new rosClass(); } void RosClass_setup(rosClass* v){ v->setup(); } void deleteRosClass(rosClass* v) { delete v; } } roswrapper.h #ifndef __ROSWRAPPER_H #define __ROSWRAPPER_H #ifdef __cplusplus extern "C" { #endif typedef struct rosClass rosClass; rosClass* newRosClass(); void RosClass_setup(rosClass* v); void deleteRosClass(rosClass* v); #ifdef __cplusplus } #endif #endif

Optionally build a package with catkin

$
0
0
I have a package that provides a library. This library performs functions that do not explicitly rely on ROS and I want to be able to use this library in non-ROS contexts, i.e. in c++ programs I build with pure CMake. I am looking for a way to set up my package, specifically the CMakeLists.txt, such that this package builds both as a catkin package and stand alone. When building with catkin, I want to declare the library s.t. other ROS packages can find and use it. In the pure CMake case I want to just build the library and have other packages find it themselves, e.g. with a FindMYPACKAGE.cmake. I can already do this by manually defining my own variable in CMakeLists.txt, `set(ROS 1)`, and then only doing catkiny stuff if that's defined. I tried using `catkin_FOUND` for this, but I have two problems: Even when the package is not actually in a catkin workspace and I'm not building with the catkin command, `catkin_FOUND` is true (on systems with ROS installed). On systems without ROS, `find_package(catkin ...)` naturally causes an error, so I can't check for catkin that way. What variables exist that are already set at the top of a packages CMakeLists.txt with which I can check if catkin is the build tool in use? Thank you for your help

compiling msg

$
0
0
Hi, everytime, when I compile my package from scratch, I have to comment out some lines in my CMakeList.txt - addexecutable(file file.cpp ) - target_link_libraries(file {catkin_LIBRARIES} ) Afterwards it can compile my custom msg and then I include those lines and the project is ready to use. What must I do that I can compile it as once? regard, Peter

How do I remove rdynamic from link options?

$
0
0
I've determined that a certain library I am using is not working properly because CMake is appending `-rdynamic` to the `c++` compiler options for my node's object file. In other words, if I copy and paste the `/usr/bin/c++` command generated when using `VERBOSE=true catkin_make`, and I run that command manually, the node works correctly only if I remove the `-rdynamic` flag. How can I edit `CMakeLists.txt` to remove the `-rdynamic` flag, and will this cause ROS to break in unexpected ways?

catkin_make_isolated does not create env.sh

$
0
0
Heyho, I am trying to release a package containing a custom library for which we also use our custom build environment (which does add some convenient macros just as catkin would do). As it is all CMAKE I created a "wrapper" catkin package which will handle catkin dependencies and provide stuff like the package.xml (see https://github.com/fzi-forschungszentrum-informatik/fzi_icl_core ). This works really well as long as I use catkin_make to build my workspace. All sources get build and installed correctly and subsequent projects can list this as dependency and so on. When I tried to release it however jenkins failed during presumably trying to execute the code? Here is the output: [ 82%] Built target test_icl_core_config [ 83%] Built target test_icl_core_logging [ 91%] Built target ts_icl_core [ 93%] Built target ts_icl_core_config [100%] Built target ts_icl_core_thread Install the project... -- Install configuration: "Debug" -- Installing: /tmp/catkin_workspace/install_isolated/share/tinyxml/tinyxml-config.cmake -- Installing: /tmp/catkin_workspace/install_isolated/lib/libtinyxml.so < many many more lines of installing...> -- Removed runtime path from "/tmp/catkin_workspace/install_isolated/bin/ts_icl_core" -- Installing: /tmp/catkin_workspace/install_isolated/bin/ts_icl_core_config -- Removed runtime path from "/tmp/catkin_workspace/install_isolated/bin/ts_icl_core_config" -- Installing: /tmp/catkin_workspace/install_isolated/bin/ts_icl_core_thread -- Removed runtime path from "/tmp/catkin_workspace/install_isolated/bin/ts_icl_core_thread" Unhandled exception of type 'RuntimeError': Traceback (most recent call last): File "/opt/ros/indigo/lib/python2.7/dist-packages/catkin/builder.py", line 965, in build_workspace_isolated number=index + 1, of=len(ordered_packages) File "/opt/ros/indigo/lib/python2.7/dist-packages/catkin/builder.py", line 670, in build_package "'\n This sometimes occurs when a non-catkin package is " RuntimeError: No env.sh file generated at: '/tmp/catkin_workspace/install_isolated/env.sh' This sometimes occurs when a non-catkin package is interpreted as a catkin package. This can also occur when the cmake cache is stale, try --force-cmake.<== Failed to process package 'fzi_icl_core': No env.sh file generated at: '/tmp/catkin_workspace/install_isolated/env.sh' This sometimes occurs when a non-catkin package is interpreted as a catkin package. This can also occur when the cmake cache is stale, try --force-cmake. Command failed, exiting. # END SUBSECTION Build step 'Execute shell' marked build as failure [WARNINGS]Skipping publisher since build result is FAILURE Full output can be found here ( http://build.ros.org/job/Idev__fzi_icl_core__ubuntu_trusty_amd64/3/console ). I get the same error when I build the package locally with the command catkin_make_isolated The suggested --force-cmake does not change anything in this regard. So I see two solutions, both of which I have no idea how to implement: 1. Don't execute catkin_make_isolated (on the buildfarm) 2. Ensure that the env.sh file is correctly created I guess that I have mixed something without declaring it correctly or something like that but I can not find specific documentation about this (other than the REP for catkin_make_isolated http://www.ros.org/reps/rep-0134.html which does not seem to answer my problem) . Can somebody give me any pointers as to what I am missing? Thanks!

Cmake error in target_link_libraries, the target is not built in this directory

$
0
0
I'm new in ros, after downloading the hector_quadrotor package, many `Cmake error` occurred while catkin_make, it's about `target_link_libraries`, but i don't know how to solve it. For example, `Cmake error` like this: CMake Error at hector_quadrotor/hector_quadrotor_gazebo_plugins/CMakeLists.txt:63 (target_link_libraries): Attempt to add link library "/usr/lib/x86_64-linux-gnu/libpthread.so" to target "hector_gazebo_quadrotor_simple_controller" which is not built in this directory. CMake Error at hector_quadrotor/hector_quadrotor_gazebo_plugins/CMakeLists.txt:63 (target_link_libraries): Attempt to add link library "/usr/lib/x86_64-linux-gnu/libconsole_bridge.so" to target "hector_gazebo_quadrotor_simple_controller" which is not built in this directory. and the related information in CMakeLists.txt like this: add_library(hector_gazebo_ros_baro src/gazebo_ros_baro.cpp) target_link_libraries(hector_gazebo_ros_baro ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES}) add_dependencies(hector_gazebo_ros_baro hector_uav_msgs_generate_messages_cpp) add_library(hector_gazebo_quadrotor_simple_controller src/gazebo_quadrotor_simple_controller.cpp) target_link_libraries(hector_gazebo_quadrotor_simple_controller ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES}) if(hector_quadrotor_propulsion_LIBRARY) add_library(hector_gazebo_quadrotor_propulsion src/gazebo_quadrotor_propulsion.cpp) target_link_libraries(hector_gazebo_quadrotor_propulsion ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES} ${hector_quadrotor_propulsion_LIBRARY}) add_dependencies(hector_gazebo_quadrotor_propulsion hector_uav_msgs_generate_messages_cpp) else() message(WARNING "Quadrotor propulsion model is not available. Skipping target hector_gazebo_quadrotor_propulsion...") endif() if(hector_quadrotor_aerodynamics_LIBRARY) add_library(hector_gazebo_quadrotor_aerodynamics src/gazebo_quadrotor_aerodynamics.cpp) target_link_libraries(hector_gazebo_quadrotor_aerodynamics ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES} ${hector_quadrotor_aerodynamics_LIBRARY}) else() message(WARNING "Quadrotor aerodynamics model is not available. Skipping target hector_gazebo_quadrotor_aerodynamics...") endif() and the line 63 in CMakeLists.txt is : target_link_libraries(hector_gazebo_quadrotor_simple_controller ${GAZEBO_LIBRARIES} ${catkin_LIBRARIES}) wish for your help! thanks very much!

Catkin not finding Header Files

$
0
0
Hi all, i'm pulling my hair out trying to get my project to compile. I'm using some third party header files which I have copied to /home/pi/ros_catkin_ws/src/eyebot_testing/include/eyebot_testing, the parent header file is eyebot.h which then includes all others. In my node file (~/ros_catkin_ws/src/eyebot_testing/src/eyebot_testing_node.cpp) I have this: #include "ros/ros.h" #include "eyebot_testing/eyebot.h" int main() { MOTORDriveRaw(1, 0); return 0; } And my CMakeList.txt file has the following: cmake_minimum_required(VERSION 2.8.3) project(eyebot_testing) find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs ) catkin_package( INCLUDE_DIRS include LIBRARIES ${PROJECT_NAME} CATKIN_DEPENDS roscpp rospy std_msgs ) ## Specify additional locations of header files ## Your package locations should be listed before other locations include_directories( include ${catkin_INCLUDE_DIRS} ) link_directories(/home/pi/eyebot/lib) ## Declare a C++ library #add_library(eyebot_testing # src/${PROJECT_NAME}/eyebot_testing.cpp # ) ## Declare a C++ executable add_executable(eyebot_testing_node src/eyebot_testing_node.cpp) ## Specify libraries to link a library or executable target against find_library(eyebot_testing_node /home/pi/eyebot/lib/) target_link_libraries(eyebot_testing_node ${catkin_LIBRARIES} wiringPi mpsse X11 lirc_client m opencv_core opencv_highgui opencv_imgproc eyebot ) ## Mark cpp header files for installation install( DIRECTORY include/${PROJECT_NAME}/ DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} ) This is the command i'm using to just compile my package: cd /home/pi/ros_catkin_ws/build_isolated/eyebot_testing && sudo /home/pi/ros_catkin_ws/install_isolated/env.sh make VERBOSE=3 -j4 -l4BC The verbose mode show the include directories ( -I ) are being added in an earlier step and the Library i'm using is being linked in the later step, however i'm still getting a method not found error: pi@rospi:~/ros_catkin_ws/src/eyebot_testing $ cd /home/pi/ros_catkin_ws/build_isolated/eyebot_testing && sudo /home/pi/ros_catkin_ws/install_isolated/env.sh make VERBOSE=3 -j4 -l4BC /usr/bin/cmake -H/home/pi/ros_catkin_ws/src/eyebot_testing -B/home/pi/ros_catkin_ws/build_isolated/eyebot_testing --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/pi/ros_catkin_ws/build_isolated/eyebot_testing/CMakeFiles /home/pi/ros_catkin_ws/build_isolated/eyebot_testing/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/home/pi/ros_catkin_ws/build_isolated/eyebot_testing' make -f CMakeFiles/eyebot_testing_node.dir/build.make CMakeFiles/eyebot_testing_node.dir/depend make[2]: Entering directory '/home/pi/ros_catkin_ws/build_isolated/eyebot_testing' cd /home/pi/ros_catkin_ws/build_isolated/eyebot_testing && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pi/ros_catkin_ws/src/eyebot_testing /home/pi/ros_catkin_ws/src/eyebot_testing /home/pi/ros_catkin_ws/build_isolated/eyebot_testing /home/pi/ros_catkin_ws/build_isolated/eyebot_testing /home/pi/ros_catkin_ws/build_isolated/eyebot_testing/CMakeFiles/eyebot_testing_node.dir/DependInfo.cmake --color= Dependee "/home/pi/ros_catkin_ws/src/eyebot_testing/include/eyebot_testing/eyebot.h" is newer than depender "CMakeFiles/eyebot_testing_node.dir/src/eyebot_testing_node.cpp.o". Clearing dependencies in "/home/pi/ros_catkin_ws/build_isolated/eyebot_testing/CMakeFiles/eyebot_testing_node.dir/depend.make". Scanning dependencies of target eyebot_testing_node make[2]: Leaving directory '/home/pi/ros_catkin_ws/build_isolated/eyebot_testing' make -f CMakeFiles/eyebot_testing_node.dir/build.make CMakeFiles/eyebot_testing_node.dir/build make[2]: Entering directory '/home/pi/ros_catkin_ws/build_isolated/eyebot_testing' /usr/bin/cmake -E cmake_progress_report /home/pi/ros_catkin_ws/build_isolated/eyebot_testing/CMakeFiles 1 [100%] Building CXX object CMakeFiles/eyebot_testing_node.dir/src/eyebot_testing_node.cpp.o /usr/bin/c++ -DROSCONSOLE_BACKEND_LOG4CXX -DROS_PACKAGE_NAME=\"eyebot_testing\" -I/home/pi/ros_catkin_ws/src/eyebot_testing/include -I/home/pi/ros_catkin_ws/install_isolated/include -I/usr/local/include -o CMakeFiles/eyebot_testing_node.dir/src/eyebot_testing_node.cpp.o -c /home/pi/ros_catkin_ws/src/eyebot_testing/src/eyebot_testing_node.cpp In file included from /home/pi/ros_catkin_ws/src/eyebot_testing/include/eyebot_testing/eyebot.h:21:0, from /home/pi/ros_catkin_ws/src/eyebot_testing/src/eyebot_testing_node.cpp:2: /home/pi/ros_catkin_ws/src/eyebot_testing/include/eyebot_testing/lcd.h:12:0: warning: "_GNU_SOURCE" redefined #define _GNU_SOURCE ^:0:0: note: this is the location of the previous definition Linking CXX executable /home/pi/ros_catkin_ws/devel_isolated/eyebot_testing/lib/eyebot_testing/eyebot_testing_node /usr/bin/cmake -E cmake_link_script CMakeFiles/eyebot_testing_node.dir/link.txt --verbose=3 /usr/bin/c++ CMakeFiles/eyebot_testing_node.dir/src/eyebot_testing_node.cpp.o -o /home/pi/ros_catkin_ws/devel_isolated/eyebot_testing/lib/eyebot_testing/eyebot_testing_node -L/home/pi/eyebot/lib -rdynamic /home/pi/ros_catkin_ws/install_isolated/lib/libroscpp.so -lboost_signals -lboost_filesystem /home/pi/ros_catkin_ws/install_isolated/lib/librosconsole.so /home/pi/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.so /home/pi/ros_catkin_ws/install_isolated/lib/librosconsole_backend_interface.so -llog4cxx -lboost_regex /home/pi/ros_catkin_ws/install_isolated/lib/libxmlrpcpp.so /home/pi/ros_catkin_ws/install_isolated/lib/libroscpp_serialization.so /home/pi/ros_catkin_ws/install_isolated/lib/librostime.so -lboost_date_time /home/pi/ros_catkin_ws/install_isolated/lib/libcpp_common.so -lboost_system -lboost_thread -lpthread /usr/local/lib/libconsole_bridge.so -lwiringPi -lmpsse -lX11 -llirc_client -lm -lopencv_core -lopencv_highgui -lopencv_imgproc -leyebot -Wl,-rpath,/home/pi/eyebot/lib:/home/pi/ros_catkin_ws/install_isolated/lib:/usr/local/lib CMakeFiles/eyebot_testing_node.dir/src/eyebot_testing_node.cpp.o: In function `main': eyebot_testing_node.cpp:(.text+0x10): undefined reference to `MOTORDriveRaw(int, int)' collect2: error: ld returned 1 exit status CMakeFiles/eyebot_testing_node.dir/build.make:102: recipe for target '/home/pi/ros_catkin_ws/devel_isolated/eyebot_testing/lib/eyebot_testing/eyebot_testing_node' failed make[2]: *** [/home/pi/ros_catkin_ws/devel_isolated/eyebot_testing/lib/eyebot_testing/eyebot_testing_node] Error 1 make[2]: Leaving directory '/home/pi/ros_catkin_ws/build_isolated/eyebot_testing' CMakeFiles/Makefile2:184: recipe for target 'CMakeFiles/eyebot_testing_node.dir/all' failed make[1]: *** [CMakeFiles/eyebot_testing_node.dir/all] Error 2 make[1]: Leaving directory '/home/pi/ros_catkin_ws/build_isolated/eyebot_testing' Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 Anyone care to help me out, I'm utterly stuck!! - Tim

Cmake error - not able to run catkin_make

$
0
0
Hello, I have a workspace created and most of my ROS packages are in the workspace. But when I clone a new package and try to run catkin_make I get the following error. CMake Error at /opt/ros/jade/share/catkin/cmake/catkinConfig.cmake:75 (find_package): Could not find a package configuration file provided by "urdfdom_py" with any of the following names: urdfdom_pyConfig.cmake urdfdom_py-config.cmake Add the installation prefix of "urdfdom_py" to CMAKE_PREFIX_PATH or set "urdfdom_py_DIR" to a directory containing one of the above files. If "urdfdom_py" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): srdfdom/CMakeLists.txt:10 (find_package) -- Configuring incomplete, errors occurred! See also "/home/.../first_workspace/build/CMakeFiles/CMakeOutput.log". See also "/home/.../first_workspace/build/CMakeFiles/CMakeError.log". make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed $ What could be the issue and how can I solve it?
Viewing all 354 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>