Hello everyone.
My problem is when I try to use `catkin_make`.
I have my `catkin_ws` in `/home/name-of-user/`, and inside of it has a `file.cpp`.
This `file.cpp` has an `#include ` in order to make a GUI with gtk.
The `gtk.h` path is `/usr/include/gtk-2.0/gtk/`.
And here is the problem: When I use `catkin_make` it shows this error:
[ 75%] /home/name-of-user/catkin_ws/src/package/src/file.cpp:1:21: fatal error: gtk/gtk.h: No such file or directory
#include
^
compilation terminated.
make[2]: *** [package/CMakeFiles/file.dir/src/file.cpp.o] Error 1
make[1]: *** [package/CMakeFiles/package.dir/all] Error 2
...
make: *** [all] Error 2
Invoking "make -j2 -l2" failed
Does anyone know how to solve this problem? I think maybe I have to write something in `CMakeLists.txt`, but I don't know what.
Thank you in advance.
EDIT: Here is the CMakeList.txt that I think I have to modify...
cmake_minimum_required(VERSION 2.8.3)
project(mov_autom)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
kobuki_safety_controller
roscpp
turtlebot_bringup
yocs_velocity_smoother
)
## Specify additional locations of header files
## Your package locations should be listed before other locations
# include_directories(include)
include_directories(
${catkin_INCLUDE_DIRS}
)
include_directories(include ${catkin_INCLUDE_DIRS})
add_executable(randommov src/randommov.cpp)
target_link_libraries(randommov ${catkin_LIBRARIES})
add_dependencies(randommov ${catkin_EXPORTED_TARGETS})
add_executable(randomlaser src/randomlaser.cpp)
target_link_libraries(randomlaser ${catkin_LIBRARIES})
add_dependencies(randomlaser ${catkin_EXPORTED_TARGETS})
add_executable(listenermov src/listenermov.cpp)
target_link_libraries(listenermov ${catkin_LIBRARIES})
add_dependencies(listenermov ${catkin_EXPORTED_TARGETS})
add_executable(interfaz_mejorada src/interfaz_mejorada.cpp)
target_link_libraries(interfaz_mejorada ${catkin_LIBRARIES})
add_dependencies(interfaz_mejorada ${catkin_EXPORTED_TARGETS})
↧
Problem using gtk with ROS
↧
multiple start up scripts generated for rosjava package
I have made a rosjava package following the instructions at http://wiki.ros.org/rosjava_build_tools/Tutorials/indigo/Creating%20Rosjava%20Packages . However, it generates multiple executables. So, when I try to execute my package:
pete@Machine:~/catkin_ws$ rosrun mypackage_rosjava mySubproject_rosjava com.github.mypackage_rosjava.mySubproject_rosjava.MyMain [rosrun] You have chosen a non-unique executable, please pick one of the following: 1) /home/pete/catkin_ws/src/mypackage_rosjava/mySubproject_rosjava/build/scripts/mySubproject_rosjava 2) /home/pete/catkin_ws/src/mypackage_rosjava/mySubproject_rosjava/build/install/mySubproject_rosjava/bin/mySubproject_rosjava 3) /home/pete/catkin_ws/src/mypackage_rosjava/mySubproject_rosjava/build/scripts/mySubproject_rosjava 4) /home/pete/catkin_ws/src/mypackage_rosjava/mySubproject_rosjava/build/install/mySubproject_rosjava/bin/mySubproject_rosjava #?If I delete scripts from build/script, everything works nice, but it's annoying. Am I doing something wrong? Thanks
↧
↧
Problems building a node which depends on another node.
Hopefully someone can help, I've been trying to get this to work for quite a while now.
I have a custom node which provides services and messages called dp_ptu47 (it's a pan tilt unit). I'm trying to get access to the services of the dp_ptu47 node from another client node, which will be running on a different machine.
I get the following error when I catkin_make my client node:
-- +++ processing catkin package: 'sme_awareness'
-- ==> add_subdirectory(sme_awareness)
-- Using these message generators: gencpp;genlisp;genpy
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
Could not find a package configuration file provided by "dp_ptu47_msgs"
with any of the following names:
dp_ptu47_msgsConfig.cmake
dp_ptu47_msgs-config.cmake
Add the installation prefix of "dp_ptu47_msgs" to CMAKE_PREFIX_PATH or set
"dp_ptu47_msgs_DIR" to a directory containing one of the above files. If
"dp_ptu47_msgs" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
sme_awareness/CMakeLists.txt:7 (find_package)
I've checked that the 'dp_ptu47_msgs' package exists and it's there and ros seems happy, I've also looked for the file that the error message says it can't find 'dp_ptu47_msgsConfig.cmake' and this exists in the 'install/share/dp_ptu47_msgs/cmake' path of the node. The error message doesn't say where it it's looking for the file so I'm not sure if this is in the right place or not.
I've tried all sorts of things to find out what's going on, and I'm out of ideas. Does anyone have any ideas what could be causing this.
Thanks
↧
catkin_make error when using vrpn_client_ros
Hi, I want to connect Optitrack and ROS together, using the package vrpn_client_ros.
Now, I'm using ubuntu14.04 installed ros indigo. I found the package from http://wiki.ros.org/vrpn_client_ros and git clone the code form https://github.com/clearpathrobotics/vrpn_client_ros.git into my folder ~/catkin_ws/src. but when I run
catkin_make
,
it came to errors like ths:
> CMake Error at> vrpn_client_ros/CMakeLists.txt:5> (find_package): By not providing> "FindVRPN.cmake" in CMAKE_MODULE_PATH> this project has asked CMake to find> a package configuration file provided> by "VRPN", but CMake did not find> one.>> Could not find a package> configuration file provided by "VRPN"> with any of the following names:>> VRPNConfig.cmake> vrpn-config.cmake>> Add the installation prefix of> "VRPN" to CMAKE_PREFIX_PATH or set > "VRPN_DIR" to a directory containing> one of the above files. If "VRPN" > provides a separate development> package or SDK, be sure it has been > installed.>>> -- Configuring incomplete, errors occurred! See also> "/home/sen/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also> "/home/sen/catkin_ws/build/CMakeFiles/CMakeError.log".> Invoking "cmake" failed
Why this happen? What should I do next? I will appreciate if you could help. Thanks a lot!
↧
catkin_make error when using mavros.
Excuse me, I am using Ubuntu 14.04 and ROS indigo.
I downloaded the mavros package from https://github.com/mavlink/mavros.git, to the folder catkin_ws.
But when I run catkin_make, it came errors:
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
Could not find a package configuration file provided by "control_toolbox"
with any of the following names:
control_toolboxConfig.cmake
control_toolbox-config.cmake
Add the installation prefix of "control_toolbox" to CMAKE_PREFIX_PATH or
set "control_toolbox_DIR" to a directory containing one of the above files.
If "control_toolbox" provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
mavros/test_mavros/CMakeLists.txt:7 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/sen/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/sen/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
why this happened? How can I solve this problem? Thanks a lot if you could help.
↧
↧
Load ROS projects inside Eclipse
Hello all, I am trying quite a reasonable time to load a ros package as a project in Eclipse. Of course I am following the steps of section **2.2 Catkin-y approach** from the tutorial [IDEs](http://wiki.ros.org/IDEs#Reusing_your_shell.27s_environment) but It is not working. I also checked the [Catkin and eclipse](http://answers.ros.org/question/52013/catkin-and-eclipse/) answer. All the times that I tried to import a package as a Eclipse project I got **No projects are found to import** as show in the following screeshot:

I will appreciate any king of help or tip like: Should I reinstall eclipse, should I create a new catkin workspace, ...
Thanks.
↧
catkin_make error
make[2]: *** [swarm_coverage/CMakeFiles/voronoi_main.dir/src/voronoi_main.cpp.o] Error 1
make[1]: *** [swarm_coverage/CMakeFiles/voronoi_main.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX shared library /home/sourabha/catkin_ws/devel/lib/libgazebo_ros_multicamera.so
[ 96%] Built target gazebo_ros_multicamera
Linking CXX shared library /home/sourabha/catkin_ws/devel/lib/libgazebo_ros_prosilica.so
[ 96%] Built target gazebo_ros_prosilica
Linking CXX shared library /home/sourabha/catkin_ws/devel/lib/libgazebo_ros_openni_kinect.so
[ 96%] Built target gazebo_ros_openni_kinect
make: *** [all] Error 2
Invoking "make -j4 -l4" failed`
In response to `catkin_make -j1`:
/home/sourabha/catkin_ws/src/swarm_coverage/src/voronoi_main.cpp: In function ‘void createEnv(swarm_simulator::obstacleList)’:
/home/sourabha/catkin_ws/src/swarm_coverage/src/voronoi_main.cpp:31:32: error: no matching function for call to ‘Coverage::GetBestPositions(std::vector>&)’
obj.GetBestPositions(locations);
^
/home/sourabha/catkin_ws/src/swarm_coverage/src/voronoi_main.cpp:31:32: note: candidate is:
In file included from /home/sourabha/catkin_ws/src/swarm_coverage/src/voronoi_main.cpp:9:0:
/home/sourabha/catkin_ws/src/swarm_coverage/include/Coverage.h:36:7: note: void Coverage::GetBestPositions(int)
void GetBestPositions(vector& positions);
^
/home/sourabha/catkin_ws/src/swarm_coverage/include/Coverage.h:36:7: note: no known conversion for argument 1 from ‘std::vector>’ to ‘int’
make[2]: *** [swarm_coverage/CMakeFiles/voronoi_main.dir/src/voronoi_main.cpp.o] Error 1
make[1]: *** [swarm_coverage/CMakeFiles/voronoi_main.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j1" failed
↧
How to correctly use ROS and Eclipse
Hello all,
I am starting to use ROS with Eclipse and I with doubts about on how to build the source files. Should I do it from inside ** Eclipse**, should I do it with **catkin_make** or should I do it in **other way**. I am also starting with c++ and way kind of additional clarification is welcome.
Thanks!!!
↧
CMake linker warning: lib.so. may conflict with lib.so.
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
↧
↧
'Invoking "make -j4 -l4" failed - Linux Mint
Hey, I'm getting this error with catkin_make on Linux Mint and haven't really found any actual solution on the internet. It basically happens ever since I've added two repos to my workspace.
gil@cheesebacon ~/catkin_ws $ catkin_make
Base path: /home/gil/catkin_ws
Source space: /home/gil/catkin_ws/src
Build space: /home/gil/catkin_ws/build
Devel space: /home/gil/catkin_ws/devel
Install space: /home/gil/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/gil/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/gil/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/gil/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/gil/catkin_ws/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /home/gil/anaconda3/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/gil/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /home/gil/anaconda3/bin/nosetests
-- catkin 0.6.16
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 8 packages in topological order:
-- ~~ - neato_2dnav
-- ~~ - neato_driver
-- ~~ - neato_robot (metapackage)
-- ~~ - teleop_twist_keyboard
-- ~~ - exemplo_python
-- ~~ - neato_simulator
-- ~~ - gscam
-- ~~ - neato_node
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'neato_2dnav'
-- ==> add_subdirectory(robotica16/neato_robot/neato_2dnav)
-- +++ processing catkin package: 'neato_driver'
-- ==> add_subdirectory(robotica16/neato_robot/neato_driver)
-- +++ processing catkin metapackage: 'neato_robot'
-- ==> add_subdirectory(robotica16/neato_robot/neato_robot)
-- +++ processing catkin package: 'teleop_twist_keyboard'
-- ==> add_subdirectory(teleop_twist_keyboard)
-- +++ processing catkin package: 'exemplo_python'
-- ==> add_subdirectory(robotica16/exemplo_python)
-- +++ processing catkin package: 'neato_simulator'
-- ==> add_subdirectory(robotica16/neato_simulator)
-- +++ processing catkin package: 'gscam'
-- ==> add_subdirectory(robotica16/gscam)
-- gst 1.0
-- checking for module 'gstreamer-app-1.0'
-- found gstreamer-app-1.0, version 1.2.4
-- +++ processing catkin package: 'neato_node'
-- ==> add_subdirectory(robotica16/neato_robot/neato_node)
-- Using these message generators: gencpp;genlisp;genpy
-- Eigen found (include: /usr/include/eigen3)
-- neato_node: 1 messages, 0 services
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gil/catkin_ws/build
####
#### Running command: "make -j4 -l4" in "/home/gil/catkin_ws/build"
####
Scanning dependencies of target gscam
Scanning dependencies of target fix_scan_fast
Scanning dependencies of target jpg_stream
Scanning dependencies of target _neato_node_generate_messages_check_deps_Bump
[ 22%] [ 22%] Building CXX object robotica16/neato_robot/neato_node/CMakeFiles/fix_scan_fast.dir/src/fix_scan_fast.cpp.o
Building CXX object robotica16/neato_robot/neato_node/CMakeFiles/jpg_stream.dir/src/jpg_stream.cpp.o
[ 22%] Built target _neato_node_generate_messages_check_deps_Bump
Scanning dependencies of target neato_node_generate_messages_py
[ 33%] Generating Python from MSG neato_node/Bump
[ 44%] Generating Python msg __init__.py for neato_node
[ 44%] Built target neato_node_generate_messages_py
Scanning dependencies of target neato_node_generate_messages_cpp
[ 55%] Generating C++ code from neato_node/Bump.msg
Traceback (most recent call last):
File "/opt/ros/indigo/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in
import genmsg.template_tools
File "/opt/ros/indigo/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in
import em
ImportError: No module named 'em'
make[2]: *** [/home/gil/catkin_ws/devel/include/neato_node/Bump.h] Error 1
make[1]: *** [robotica16/neato_robot/neato_node/CMakeFiles/neato_node_generate_messages_cpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 66%] Building CXX object robotica16/gscam/CMakeFiles/gscam.dir/src/gscam.cpp.o
Linking CXX executable /home/gil/catkin_ws/devel/lib/neato_node/jpg_stream
Linking CXX shared library /home/gil/catkin_ws/devel/lib/libgscam.so
[ 66%] Built target gscam
[ 66%] Built target jpg_stream
Linking CXX executable /home/gil/catkin_ws/devel/lib/neato_node/fix_scan_fast
[ 66%] Built target fix_scan_fast
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
Also, I've already installed empy, soo the error on "import em" is kinda weird (specially when this line works perfectly fine when I try it on any other python2 file).
Thanks!
PS: I'm using ROS Indigo btw.
↧
getting linkage error : X11
Getting linkage error: XInitTreads unresolved in libsl_zed.so
In the past I was able to simple put the X11 linkage in my CMakeList and that worked but now this seems to have stopped working. Any ideas what can be causing this issue. I should also mention that this is being compiled on the Jetson tk1 (arm7).
cmake_minimum_required(VERSION 2.8.7)
project(zed_wrapper)
###############################################################################
## Options
option( DEBUG_ACTIVE "Enable Debug build" ON )
if(DEBUG_ACTIVE)
MESSAGE( "Debug compilation active" )
set(ROS_BUILD_TYPE Debug)
set(CMAKE_BUILD_TYPE Debug)
else()
MESSAGE( "Release compilation active" )
set(ROS_BUILD_TYPE Release)
set(CMAKE_BUILD_TYPE Release)
endif()
###############################################################################
find_package(ZED 0.9 REQUIRED)
find_package(X11 REQUIRED)
find_package(CUDA REQUIRED)
find_package(OpenCV 2.4 COMPONENTS core highgui imgproc REQUIRED)
find_package(PCL REQUIRED)
find_package(catkin REQUIRED COMPONENTS
image_transport
roscpp
rosconsole
sensor_msgs
cv_bridge
dynamic_reconfigure
)
generate_dynamic_reconfigure_options(
cfg/Zed.cfg
)
catkin_package(
CATKIN_DEPENDS
roscpp
rosconsole
sensor_msgs
opencv2
cv_bridge
image_transport
dynamic_reconfigure
)
###############################################################################
# INCLUDES
# Specify locations of header files.
include_directories(
${catkin_INCLUDE_DIRS}
${CUDA_INCLUDE_DIRS}
${ZED_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
link_directories(${X11_LIBRARY_DIR})
link_directories(${ZED_LIBRARY_DIR})
link_directories(${CUDA_LIBRARY_DIRS})
link_directories(${OpenCV_LIBRARY_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
###############################################################################
###############################################################################
# EXECUTABLE
add_definitions(-std=c++11)# -m64) #-Wall)
add_executable(
zed_wrapper_node
src/zed_wrapper_node.cpp
)
target_link_libraries(
zed_wrapper_node
${catkin_LIBRARIES}
${X11_LIBRARIES}
${ZED_LIBRARIES}
${CUDA_LIBRARIES} ${CUDA_nppi_LIBRARY} ${CUDA_npps_LIBRARY}
${OpenCV_LIBS}
${PCL_LIBRARIES}
)
add_dependencies(zed_wrapper_node ${PROJECT_NAME}_gencfg)
###############################################################################
#Add all files in subdirectories of the project in
# a dummy_target so qtcreator have access to all files
FILE(GLOB_RECURSE extra_files ${CMAKE_SOURCE_DIR}/*)
add_custom_target(dummy_${PROJECT_NAME} SOURCES ${extra_files})
Status API Training Shop Blog About Pricing
© 2016 GitHub, Inc. Terms Privacy Security Contact Help
↧
ImportError: cannot import name EXT_MSG
Hi,I am using ubuntu14.04+indigo
I got an error when I run `catkin_make`
[ 67%] Built target actionlib_msgs_generate_messages_cpp
Traceback (most recent call last):
File "/opt/ros/indigo/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py", line 41, in
from genmsg import EXT_MSG, EXT_SRV, MsgContext
ImportError: cannot import name EXT_MSG
make[2]: *** [procrob_functional/CMakeFiles/_face_recognition_generate_messages_check_deps_FaceRecognitionResult] Error 1
make[1]: *** [procrob_functional/CMakeFiles/_face_recognition_generate_messages_check_deps_FaceRecognitionResult.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "/opt/ros/indigo/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py", line 41, in
from genmsg import EXT_MSG, EXT_SRV, MsgContext
ImportError: cannot import name EXT_MSG
make[2]: *** [procrob_functional/CMakeFiles/_face_recognition_generate_messages_check_deps_FaceRecognitionGoal] Error 1
make[1]: *** [procrob_functional/CMakeFiles/_face_recognition_generate_messages_check_deps_FaceRecognitionGoal.dir/all] Error 2
Traceback (most recent call last):
File "/opt/ros/indigo/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py", line 41, in
from genmsg import EXT_MSG, EXT_SRV, MsgContext
ImportError: cannot import name EXT_MSG
make[2]: *** [procrob_functional/CMakeFiles/_face_recognition_generate_messages_check_deps_FaceRecognitionActionResult] Error 1
make[1]: *** [procrob_functional/CMakeFiles/_face_recognition_generate_messages_check_deps_FaceRecognitionActionResult.dir/all] Error 2
[ 67%] Built target std_msgs_generate_messages_cpp
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
please help me,thx
↧
Fail to make hector_gazebo_thermal_camera
Recently I am building hector_quadrotor(http://wiki.ros.org/hector_quadrotor) package. It needs another package named hector_gazebo_thermal_camera(inside http://wiki.ros.org/hector_gazebo).
Using catkin_make, the building is **successful** on **X86**-Ubuntu14.04-Indigo, but **failed** on **ARMv7l**-Ubuntu14.04-Indigo. The error message is showed below:
[ 13%] Generating dynamic reconfigure files from cfg/GazeboRosThermalCamera.cfg: /home/chris/ros_ws/devel/include/hector_gazebo_thermal_camera/GazeboRosThermalCameraConfig.h /home/chris/ros_ws/devel/lib/python2.7/dist-packages/hector_gazebo_thermal_camera/cfg/GazeboRosThermalCameraConfig.py
Traceback (most recent call last):
File "/home/chris/ros_ws/src/hector_gazebo/hector_gazebo_thermal_camera/cfg/GazeboRosThermalCamera.cfg", line 5, in
from driver_base.msg import SensorLevels
ImportError: No module named msg
make[2]: *** [/home/chris/ros_ws/devel/include/hector_gazebo_thermal_camera/GazeboRosThermalCameraConfig.h] Error 1
make[1]: *** [hector_gazebo/hector_gazebo_thermal_camera/CMakeFiles/hector_gazebo_thermal_camera_gencfg.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
P.S. It is hard to install dependencies into ARM platform. Because most of them don't provide the ARM versions. I built a lot of dependencies from source. Will this error is leaded by the dependency mistaking installed?
Thank you for helping me out!
↧
↧
Message service file not found
I am learning ROS recently as the tutorial of ROS wiki.When I use the command `catkin_build install`or `catkin_build`, it output the error:`Invoking "make cmake_check_build_system" failed`.The detailed output is here:
ubuntu@tegra-ubuntu:~/catkin_ws$ catkin_make install
Base path: /home/ubuntu/catkin_ws
Source space: /home/ubuntu/catkin_ws/src
Build space: /home/ubuntu/catkin_ws/build
Devel space: /home/ubuntu/catkin_ws/devel
Install space: /home/ubuntu/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/ubuntu/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/ubuntu/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- 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/ubuntu/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 1 packages in topological order:
-- ~~ - beginner_tutorials
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'beginner_tutorials'
-- ==> add_subdirectory(beginner_tutorials)
-- Using these message generators: gencpp;genlisp;genpy
CMake Error at /opt/ros/indigo/share/catkin/cmake/assert.cmake:20 (message):
Assertion failed: file
'/home/ubuntu/catkin_ws/src/beginner_tutorials/srv/AddTowInts.srv' does not exist. Message:
service file not found
Call Stack (most recent call first):
/opt/ros/indigo/share/genmsg/cmake/genmsg-extras.cmake:167 (assert_file_exists)
beginner_tutorials/CMakeLists.txt:54 (add_service_files)
-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
**The error files are here:**[link text](https://drive.google.com/folderview?id=0B-OKitZIRELKTER6UGpuWm9ELVU&usp=sharing)
↧
CSM Package Not Found
Hi,
I've got an issue compiling laser_scan_matcher. When running catkin_make I get the following error:
-- checking for module 'csm'
-- package 'csm' not found
Cmake error
Now I've built csm and installed it. What else do I need to do to get catkin to find it?
Thanks
Mark
↧
catkin_make can't seem to find package joyConfig
Hello,
I've attempted to install ROS on the raspi via the tutorial using the recommended ros-indigo-comm package via rosinstall_generator. In my catkin_ws I have these roscomm files (which all seem to build during a catkin_make... however the bluerov_apps cmake seems to be giving cmake errors such as sensor_msgs missing. So I rosinstall_generator that package as well but then run into pcl_conversions followed by a pcl_config missing error. I am just wondering if I followed the wrong path here because of the variety of errors.
EDIT: I commented out the pcl_conversions build dependency but now having issues with not being able to find joyConfig.cmake. With a little searching, I was able to find it in /opt/ros/indigo/share/joy/cmake... If i do an echo on $ROS_PACKAGE_PATH it has /opt/ros/indigo/share as a path...so why can't it find it and how can I point it in the right direction?
↧
where is catkin_make error log file location?
After doing catkin_make, the output has an error but it is too long so I cannot see from the start. I would like to know where or how to I can find the error log file. I search everywhere but I cannot find the answer so I ask here. Sorry if this question is silly.
Thank you.
↧
↧
Build specific package using catkin_make
Hi there,
I'm running **ROS Indigo** on **Raspberry Pi 2 model B**. I need to build some packages of my own. Whenever I do catkin_make, all the packages in the *src* is getting complied. I want to make only one package. I tried **catkin_make --pkg *package*** and **catkin_make -DCATKIN_WHITELIST_PACKAGES="package"**. Still every packages are getting build. Is there any other method to do this? Also why there are some extra folders in the workspace - build_isolated, devel_isolated and external_src. Why do we need them?
Thanks in advance.
I'm running **ROS Indigo** on **Raspberry Pi 2 model B**. I need to build some packages of my own. Whenever I do catkin_make, all the packages in the *src* is getting complied. I want to make only one package. I tried **catkin_make --pkg *package*** and **catkin_make -DCATKIN_WHITELIST_PACKAGES="package"**. Still every packages are getting build. Is there any other method to do this? Also why there are some extra folders in the workspace - build_isolated, devel_isolated and external_src. Why do we need them?
Thanks in advance.
↧
help me please (rgbd-v2)
please what 's means this probleme
i download rgbd v2 and i compile withe catkin_make
erreur :
-- +++ processing catkin package: 'rgbdslam'
-- ==> add_subdirectory(rgbdslam_v2-indigo)
-- SiftGPU library will be used
CMake Error at /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:75 (find_package):
Could not find a package configuration file provided by "pcl_conversions"
with any of the following names:
pcl_conversionsConfig.cmake
pcl_conversions-config.cmake
Add the installation prefix of "pcl_conversions" to CMAKE_PREFIX_PATH or
set "pcl_conversions_DIR" to a directory containing one of the above files.
If "pcl_conversions" provides a separate development package or SDK, be
sure it has been installed.
Call Stack (most recent call first):
rgbdslam_v2-indigo/CMakeLists.txt:55 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/home/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/home/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Erreur 1
Invoking "make cmake_check_build_system" failed
↧
[rosrun] Couldn't find executable named mavsys
Hi all,
This problem appear when I update Mavros version to 1.7.
I also update the mavlink and control toobox to the last version.
And it is not be solved.

and that should be like this

Thanks for someone who responses >< !
↧