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

How to link with ros ARM libraries when cross compiling?

$
0
0
Hello, I am cross compiling for the raspberry pi, on my Ubuntu 12.04 machine with ROS hydro. I am almost there, but am still unable to link to the proper (ARM native) ROS libraries when cross-compiling. I have a nodelet that is dependent on several ros libraries, including actionlib. I also have installed ROS on the raspberry pi natively ([Setting up Hydro on RaspberryPi](http://wiki.ros.org/ROSberryPi/Setting%20up%20Hydro%20on%20RaspberryPi)), and copied those libraries to the buildroot of my cross-compile on my Ubuntu machine (set to ~/rpi/rootfs). However, I cannot get Catkin and CMake to link to those ros libraries in the buildroot, instead it always tries to use the ones in /opt/ros/hydro. The error is: > Linking CXX shared library...> /opt/ros/hydro/lib/libactionlib.so: could not read symbols: File in wrong format collect2: ld returned 1 exit status So, the linker is trying to link with the libactionlib.so in /opt/ros/hydro, when, it should link to the libactionlib.so in my buildroot folder. I have setup a toolchain.raspi.cmake that looks like this: set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc) set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++-4.4) set(CMAKE_FIND_ROOT_PATH $ENV{HOME}/rpi/tools/arm-bcm2708/arm-bcm2708-linux-gnueabi/arm-bcm2708-linux-gnueabi/sysroot $ENV{HOME}/rpi/rootfs $ENV{HOME}/rpi/rootfs/e2fsprogs-1.42.9 $ENV{HOME}/rpi/rootfs/usr $ENV{HOME}/rpi/rootfs/usr/lib $ENV{HOME}/rpi/rootfs/usr/include $ENV{HOME}/rpi/ros_catkin_ws/install_isolated) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) I have also tried running the following script, before running catkin_make, to no avail: #!/usr/bin/env sh export ROS_PACKAGE_PATH=/home/uav/catkin_ws:/home/uav/rpi/ros_catkin_ws/install_isolated export ROS_ROOT=/home/uav/rpi/ros_catkin_ws/install_isolated export LD_LIBRARY_PATH=/home/uav/rpi/ros_catkin_ws/install_isolated/lib:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=/home/uav/rpi/ros_catkin_ws/install_isolated/lib/pkgconfig:$PKG_CONFIG_PATH export CMAKE_PREFIX_PATH=/home/uav/rpi/ros_catkin_ws/install_isolated:$CMAKE_PREFIX_PATH Also, my catkin_make looks like this: catkin_make_isolated --cmake-args -DCMAKE_TOOLCHAIN_FILE=/home/uav/rpi/toolchain.raspi.cmake -DBoost_INCLUDE_DIR=/home/uav/rpi/rootfs/usr/include Is this an overlay issue? What do I need to do to get Catkin to link to the ROS libraries in the buildroot (for the raspi) and not in /opt/ros/hydro? Another note, I got to this point because when I tried to run the nodelet on the raspi, it could not be loaded. Another post suggested that I explicitly link to the catkin_libraries in the CMakeLists.txt of the nodelet: target_link_libraries(my_nodelet ${catkin_LIBRARIES} ) Thanks in advance!

first 'roscore' and a question arrises- like i'm 5

$
0
0
~beginner decrypting the workings of ROS~ hmm.. how to phrase this.. well, partly, I'm wondering 1. if I need to also be in my catkin workspace before roslaunching... 2. what is the difference between the catkin and roslaunch? 3. I understand that the catkin is like a framework/build system basically for package management?? 4. So now that I'm learning about nodes, I'm wondering, how is the node different from a catkin built package? 5. How are roslaunch and associated tools, different from catkin?

ROSJava & catkin_make run_tests

$
0
0
It looks like at present `catkin run_tests` doesn't run the `gradle test` command for ROS java projects. Is there any easy way to cause that to happen? I'd like to be able to use this functionality in the ShadowRobot CI setup on Circle and that invokes `catkin run_tests` and then handles copying the test reports to where Circle can access them, but this only works for my C++ packages not for my Java ones. Once `gradle test` is invoked, I can handle putting the results where the ShadowRobot system expects them, but if it's never called there's not much I feel I can do. I'm not fully familiar with Catkin\CMake so I'm curious if I can just add the expected functionality to the CMakeLists.txt in my Java packages somehow without having to modify the whole rosjava Catkin plugin. Any ideas?

What for catkin needs to link to librt (realtime extension)?

$
0
0
(Setting aside my knowledge about build system is limited,) There's a macro in catkin: [catkin/cmake/tools/rt.cmake](https://github.com/ros/catkin/blob/85556d6776337e9cb1970f0f1733687dbbcb8a42/cmake/tools/rt.cmake), inside of which it tries to find `librt` I think. Does `catkin` need realtime extension for: - building `catkin` itself? OR - building whatever packages that require `rt`? or both? I'm wondering, because while trying to build `catkin` workspace from source (following [this doc](http://ros.org/rosdoclite/groovy/api/catkin/html/adv_user_guide/underlay.html)) on non-Ubuntu platform (`QNX`), I get this error: # cd catkinws && mkdir build && cd build && cmake ../src : -- Found gtest sources under '/home/rosuer/catkin_ws/src/gtest': gtests will be built CMake Error at catkin/cmake/assert.cmake:17 (message): Assertion failed: check for file existence, but filename (RT_LIBRARY-NOTFOUND) unset. Message: RT Library Call Stack (most recent call first): catkin/cmake/tools/rt.cmake:42 (assert_file_exists) catkin/cmake/all.cmake:134 (include) CMakeLists.txt:12 (include) -- Configuring incomplete, errors occurred! While remaining not so sure, I modified [a line](https://github.com/ros/catkin/blob/85556d6776337e9cb1970f0f1733687dbbcb8a42/cmake/tools/rt.cmake#L34) of `rt.cmake` as follows that bypass the error above on `QNX`. And no build-time error occurs on `Ubuntu` (`Quantal`) too (I don't know if there's any runtime misbehavior): x if(NOT (APPLE OR WIN32 OR MINGW OR ANDROID)) o if(NOT (APPLE OR WIN32 OR MINGW OR ANDROID OR UNIX)) Although I'm not sure if `UNIX` symbol is recognized by `cmake` on Ubuntu/Linux, succeeding this even on Ubuntu made me wonder why linking to `rt` is needed in `catkin` level. Thank you!

rososc tutorial- rosbuild catkin

$
0
0
these tutorials http://wiki.ros.org/rososc_tutorials start out using rosbuild but I have been taught to use catkin. Can I simply replace all rosws and other rosbuild commands with catkin commands or is it recommended to use rosbuild w tutorials from that era? 1. what do I have to do to use a rosbuild built system which is also from a different distro?

How can I add libicp library in my catkin package ?

$
0
0
EDIT: I installed following package [link text](https://github.com/ylatif/rrr) as mentioned in instructions. Now I want to use this package in my Cmakelist.txt so that I can use it in my program. I tried find_package(RRR) but it gives me error related to package config file. I have series of .hpp files in my source directory. I either want to convert them to a library file or add the whole package so that I can use them in my source files as headers.

Set build order in catkin: generate custom messages before generating ros_lib

$
0
0
**Quesiton:** When using catkin to build a project, how do you set one package to finish compiling before another executes? ---------- **Background:** I am making a robot with custom messages/services on an Arduino using catkin. The project layout is rather similar to the [Clearpath Robotics Husky](https://github.com/husky/husky/tree/kinetic-devel) where the project is separated into packages: msgs, hardware, description, ... etc. Everything works and the Arduino even compiles and uploads though catkin_make commands as outlined by this rosserial_arduino [tutorial](http://wiki.ros.org/rosserial_arduino/Tutorials/CMake). The current project layout is as follows: - **catkin_ws/** - **src/** - **robot_msgs:** description of custom ros messages/services (Status.msg & Command.srv) - **robot_hardware:** source code for Arduino (runs rosserial_client & rosserial_arduino) - **robot_description:** robot description files (urdf/xacro) - **robot_viz:** opens RVIZ with robot model ---------- **Problem**: When building from a fresh install (no build/devel folders in the main catkin workspace), the issue arises when executing `catkin_make` for the first time. It seems that the `robot_hardware` package builds and compiles a new `ros_lib` before `robot_msgs` can add `Status.msg` or `Command.srv` to the project directory (robot_msgs folder is absent in the final ros_lib folder). However, if `robot_hardware` is temporarily removed while `catkin_make` is run, then afterwards replaced and `catkin_make` is run again, everything compiles and robot_msgs now exists in ros_lib. Is there anyway to add a dependency to the CMakeLists.txt file in `robot_hardware` to force it to go last so that the project compiles using `catkin_make` without tinkering with the project folders in a such a way? ---------- **Supplementary:** robot_hardware/CMakeLists.txt cmake_minimum_required(VERSION 2.8.3) project(robot_hardware) find_package(catkin REQUIRED COMPONENTS rosserial_arduino rosserial_client robot_msgs ) catkin_package() rosserial_generate_ros_lib( PACKAGE rosserial_arduino SCRIPT make_libraries.py ) # Added as a suggestion from @jayess (Sept 15 '17) add_dependencies(robot_hardware_ros_lib robot_msgs_generate_messages robot_msgs_generate_messages_cpp robot_msgs_generate_messages_eus robot_msgs_generate_messages_lisp robot_msgs_generate_messages_nodejs robot_msgs_generate_messages_py ) rosserial_configure_client( DIRECTORY firmware TOOLCHAIN_FILE ${ROSSERIAL_ARDUINO_TOOLCHAIN} ) rosserial_add_client_target(firmware robot_base ALL) rosserial_add_client_target(firmware robot_base-upload) robot_msgs/CMakeLists.txt cmake_minimum_required(VERSION 2.8.3) project(robot_msgs) find_package(catkin REQUIRED COMPONENTS message_generation std_msgs ) add_message_files(FILES Status.msg ) add_service_files(FILES Command.srv ) generate_messages(DEPENDENCIES std_msgs ) catkin_package(CATKIN_DEPENDS std_msgs message_runtime) runtime error on fresh build ... [86%] Building CXX object CMakeFiles/robot_base.dir/robot_hardware.cpp.obj /home/user/catkin_ws/src/robot_hardware/firmware/robot_hardware.cpp:52:34: fatal error: robot_msgs/Command.h: No such file or directory #include ^ compilation terminated. ...

Catkin: run specific unit test

$
0
0
I know there are specific test commands `catkin_make run_tests` to run all tests and `catkin_make run_tests__gtest_` to run specific test declared by `catkin_add_gtest(…)` One test file can have multiple tests though. Example: TEST(testsuit1, test1) { .. } TEST(testsuit1, test2) { .. } TEST(testsuit2, test3) { .. } int main(int argc, char **argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } Is that possible to run only testsuit1 or only test3 from my example?

unable to open catkin workspace with QT creator

$
0
0
I am using Ubuntu 14.04, ROS indigo, Qt Creator 3.0.1 when I try to open any catkin package in the workspace, following error pops up every time. CMake Error at CMakeLists.txt:7 (find_package): By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "catkin", but CMake did not find one. Could not find a package configuration file provided by "catkin" with any of the following names: catkinConfig.cmake catkin-config.cmake Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set "catkin_DIR" to a directory containing one of the above files. If "catkin" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! See also "/home/kk/catkin_ws_navigation/build/nav2d_exploration/CMakeFiles/CMakeOutput.log". I am trying to open Navigation_2d package present [here] (https://github.com/skasperski/navigation_2d/tree/indigo) .All the packages are successfully built in the build directory. Can anyone please help me out I am totally stuck

Why does sourcing my workspace cause the error "catkin_make: command not found"?

$
0
0
I've been messing around with my catkin workspace in an attempt to get QtCreator working with ROS (Indigo Igloo, Ubuntu 14.04, QtCreator 5.9.1), and somewhere along the way I've messed up something important. So now, if I run: $ source /opt/ros/indigo/setup.bash $ cd repo/workspace/ $ catkin_make Everything builds properly, but if I source my workspace between sourcing the ROS distro and running `catkin_make` then the command fails. I.e. if I run: $ source /opt/ros/indigo/setup.bash $ source /home/user/repo/workspace/devel/setup.bash $ cd repo/workspace/ $ catkin_make Then I get the following error catkin_make: command not found Does anyone know why this is the case? Obviously, there is something wrong with my setup but I don't understand enough about CMake to figure it out. I'm also not sure what diagnostic info I need to post here to help others, so if there is something specific about my setup that I should post here, let me know. Thanks in advance for any help or advice. ### Updates ### As per @psammut's comments, I tried copying all the source code into a new workspace. I can run `catkin_make` in the new workspace just fine, regardless of whether it is sourced or not. But the minute I source my original workspace, `catkin_make` throws an error in *either* workspace.

Catkin/Cmake includes directories as -isystem (Custom OpenCV)

$
0
0
Hello, I am trying to get a custom-built version of OpenCV 3.3.0 (with CUDA-support) to work with ROS Kinetic on a NVIDIA Jetson TX1. OpenCV is installed to `/usr/local`. I have tried following [this](https://answers.ros.org/question/257581/how-to-use-arbitrary-version-of-opencv/) and [this](https://answers.ros.org/question/128691/standalone-opencv/) answer, but they didn't work for me. My `CMakeLists.txt`-file (currently) looks like this: cmake_minimum_required(VERSION 2.8.3) project() find_package( OpenCV 3 REQUIRED NO_MODULE PATHS /usr/local NO_DEFAULT_PATH ) find_package(catkin REQUIRED COMPONENTS cv_bridge # ... others ... ) include_directories( ${OpenCV_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} ) # add_executable, add_dependencies... target_link_libraries( ${OpenCV_LIBRARIES} ${catkin_LIBRARIES} ) I also downloaded and built the `vision_opencv`-package in my workspace. When building a node, Cmake finds the correct version of OpenCV. -- Found OpenCV: /usr/local (found suitable version "3.3.0", minimum required is "3") However the node still includes the wrong header-files and is linked against the ROS-OpenCV-Version, as I can find out at Run-Time in my code. Looking at the build-commands with VERBOSE=1 I can see that the include-directories are part of the command, but are included with the `-isystem`-Flag, meaning the ROS-Includes (included with `-I`) will be preferred. /usr/bin/c++ -DROSCONSOLE_BACKEND_LOG4CXX -DROS_BUILD_SHARED_LIBS=1 -DROS_PACKAGE_NAME=\"\" -isystem /usr/local/include -isystem /usr/local/include/opencv -I/src/vision_opencv-kinetic/cv_bridge/include -I/opt/ros/kinetic/include -I/opt/ros/kinetic/include/opencv-3.2.0-dev -I/opt/ros/kinetic/include/opencv-3.2.0-dev/opencv -I/opt/ros/kinetic/share/xmlrpcpp/cmake/../../../include/xmlrpcpp -std=c++11 -o CMakeFiles/.dir/src/.cpp.o -c /src//src/.cpp This is the linker command. I tried to shorten it a bit by using `=/opt/ros/kinetic/lib` and `=/usr/local/lib`. /usr/bin/c++ CMakeFiles/.dir/src/.cpp.o -o /devel/lib// -L/usr/local/cuda-8.0/lib64 -rdynamic /libopencv_cudabgsegm.so.3.3.0 /libopencv_cudaobjdetect.so.3.3.0 /libopencv_cudastereo.so.3.3.0 /libopencv_dnn.so.3.3.0 /libopencv_ml.so.3.3.0 /libopencv_shape.so.3.3.0 /libopencv_stitching.so.3.3.0 /libopencv_superres.so.3.3.0 /libopencv_videostab.so.3.3.0 /libcompressed_image_transport.so /libopencv_calib3d3.so.3.2.0 /libopencv_core3.so.3.2.0 /libopencv_features2d3.so.3.2.0 /libopencv_flann3.so.3.2.0 /libopencv_highgui3.so.3.2.0 /libopencv_imgcodecs3.so.3.2.0 /libopencv_imgproc3.so.3.2.0 /libopencv_ml3.so.3.2.0 /libopencv_objdetect3.so.3.2.0 /libopencv_photo3.so.3.2.0 /libopencv_shape3.so.3.2.0 /libopencv_stitching3.so.3.2.0 /libopencv_superres3.so.3.2.0 /libopencv_video3.so.3.2.0 /libopencv_videoio3.so.3.2.0 /libopencv_videostab3.so.3.2.0 /libopencv_viz3.so.3.2.0 /libopencv_aruco3.so.3.2.0 /libopencv_bgsegm3.so.3.2.0 /libopencv_bioinspired3.so.3.2.0 /libopencv_ccalib3.so.3.2.0 /libopencv_cvv3.so.3.2.0 /libopencv_datasets3.so.3.2.0 /libopencv_dpm3.so.3.2.0 /libopencv_face3.so.3.2.0 /libopencv_fuzzy3.so.3.2.0 /libopencv_hdf3.so.3.2.0 /libopencv_line_descriptor3.so.3.2.0 /libopencv_optflow3.so.3.2.0 /libopencv_phase_unwrapping3.so.3.2.0 /libopencv_plot3.so.3.2.0 /libopencv_reg3.so.3.2.0 /libopencv_rgbd3.so.3.2.0 /libopencv_saliency3.so.3.2.0 /libopencv_stereo3.so.3.2.0 /libopencv_structured_light3.so.3.2.0 /libopencv_surface_matching3.so.3.2.0 /libopencv_text3.so.3.2.0 /libopencv_xfeatures2d3.so.3.2.0 /libopencv_ximgproc3.so.3.2.0 /libopencv_xobjdetect3.so.3.2.0 /libopencv_xphoto3.so.3.2.0 /libdynamic_reconfigure_config_init_mutex.so /devel/lib/libcv_bridge.so /libopencv_core.so.3.3.0 /libopencv_imgproc.so.3.3.0 /libopencv_imgcodecs.so.3.3.0 /libimage_transport.so /libmessage_filters.so /libclass_loader.so -lPocoFoundation -ldl /libroslib.so /librospack.so -lpython2.7 -lboost_program_options -ltinyxml /libroscpp.so -lboost_signals -lboost_filesystem /librosconsole.so /librosconsole_log4cxx.so /librosconsole_backend_interface.so -llog4cxx -lboost_regex /libxmlrpcpp.so /libroscpp_serialization.so /librostime.so /libcpp_common.so -lboost_system -lboost_thread -lboost_chrono -lboost_date_time -lboost_atomic -lpthread -lconsole_bridge /libopencv_cudafeatures2d.so.3.3.0 /libopencv_cudacodec.so.3.3.0 /libopencv_cudaoptflow.so.3.3.0 /libopencv_cudalegacy.so.3.3.0 /libopencv_calib3d.so.3.3.0 /libopencv_cudawarping.so.3.3.0 /libopencv_features2d.so.3.3.0 /libopencv_flann.so.3.3.0 /libopencv_highgui.so.3.3.0 /libopencv_objdetect.so.3.3.0 /libopencv_photo.so.3.3.0 /libopencv_cudaimgproc.so.3.3.0 /libopencv_cudafilters.so.3.3.0 /libopencv_cudaarithm.so.3.3.0 /libopencv_video.so.3.3.0 /libopencv_videoio.so.3.3.0 /libopencv_imgcodecs.so.3.3.0 /libopencv_imgproc.so.3.3.0 /libopencv_core.so.3.3.0 /libopencv_cudev.so.3.3.0 -Wl,-rpath,/usr/local/cuda-8.0/lib64::/devel/lib: The program appears to be linked against the wrong libraries since `cv::cuda::getCudaEnabledDeviceCount()` returns 0, which it doesn't with the right library. So I have the following questions: 1. Why are the include-directories included with `-isystem`? Can this be "turned off"? 2. How do I link against the correct libraries? So all in all, what changes do I have to make to my `CMakeLists.txt`? Thank you!

error while loading shared libraries

$
0
0
I want to use shared objects as libraries. The .so files of them are at my disposal. I created a catkin_package. That package contains a source, include and lib folder (where I put the .so files) My CMakeLists.txt of the package is the following: cmake_minimum_required(VERSION 2.8.3) project(yocto3d) find_package(catkin REQUIRED COMPONENTS) catkin_package() include_directories(include ${catkin_INCLUDE_DIRS}) add_executable(yocto3d src/main.cpp) target_link_libraries(yocto3d ${catkin_LIBRARIES} ${PROJECT_SOURCE_DIR}/lib/libyapi.so.1.0.1 ${PROJECT_SOURCE_DIR}/lib/libyocto.so.1.0.1) Everything compiles without warnings and errors, but when I run rosrun yocto3d yocto3d I get the following error (can't find the libraries) /home/dh/catkin_ws/devel/lib/yocto3d/yocto3d: error while loading shared libraries: libyocto.so.1.0.1: cannot open shared object file: No such file or directory What am I missing?

How can I use test nodes in rostest which are not part of rostest itself?

$
0
0
I want to test a ROS node with [rostest](http://wiki.ros.org/rostest) but with a test node which is not included in `rostest` itself. Means instead of using the [hztest test node](http://wiki.ros.org/rostest/Nodes#hztest) like in this [rostest test](https://github.com/ros/ros_comm/blob/lunar-devel/tools/rostest/test/hztest.test)... ... I would like to use my own test node `owntest` from my own ROS Python package `ownpackage` instead: ... I built and installed `ownpackage` with `catkin_make --pkg ownpackage`, `cd /build/ownpackage` and `make install`. However if I run the test I get an error because `rostest` does not know about the existence of `owntest`: FAILURE: Test Fixture Nodes ['owntest'] failed to launch File "/usr/lib/python2.7/unittest/case.py", line 329, in run testMethod() File "/home/florian/ws_catkin/src/ros_comm/tools/rostest/src/rostest/runner.py", line 121, in fn self.assert_(not failed, "Test Fixture Nodes %s failed to launch"%failed) File "/usr/lib/python2.7/unittest/case.py", line 422, in assertTrue raise self.failureException(msg) How can I let `rostest` know about the existence of the `owntest` node from `ownpackage` that `rostest` can use it in a test? Or alternativelly: What is the best approach/development procedure when I would place `owntest` into [ros_comm/rostest/nodes](https://github.com/ros/ros_comm/tree/lunar-devel/tools/rostest/nodes) instead of into `ownpackage`?

Catkinising package- Unable to include a header file from another package- Indigo

$
0
0
I have **three packages** in the same workspace called: **art_msgs** (contains messages in art_msgs/msg folder) **art_common** (contains some nodes in *art_common/srcfolder* which depend on messages from *art_msgs*; and *art_common/include/art* folder) **art_map** (contains nodes in art_map/src which depend on art_common) I am able to successfully compile art_msgs and art_common. However the nodes of art_map include header files from **art_common/include/art** which are not included when I catkin_build the workspace. Based on another post, I have tried installing the header file, by adding the following in CMakeLists.txt of art_common install(DIRECTORY include/art/ DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} FILES_MATCHING PATTERN "*.h" PATTERN ".svn" EXCLUDE) which results in the following error: In file included from /home/amogh/rosws2/src/art_map/src/DrawLanes.cc:2:0: /home/amogh/rosws2/src/art_map/include/art_map/euclidean_distance.h:20:25: fatal error: art/epsilon.h: No such file or directory #include Also when I add the following, in CMakeLists.txt of art_map: find_package(catkin REQUIRED COMPONENTS art_common) The following error arises: Errors << art_map:check /home/amogh/rosws2/logs/art_map/build.check.044.log CMake Error at /home/amogh/rosws2/devel/share/art_common/cmake/art_commonConfig.cmake:165 (find_package): By not providing "Findart_msgs.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "art_msgs", but CMake did not find one. Could not find a package configuration file provided by "art_msgs" with any of the following names: art_msgsConfig.cmake art_msgs-config.cmake Other required dependencies have been resolved in package.xml and CMakeLists.txt. You can see the complete code [here](https://github.com/amogh112/mappingRNDF/tree/master/src).

building roscpp

$
0
0
All I need is roscpp libs for Android. I'm hoping there's a way I can build just these by themselves. So without knowing much about cmake, I did ... $ git clone https://github.com/ros/ros_comm $ cd ros_comm/ros_comm $ mkdir build && cd build $ cmake .. And ended up with the following ... $ cmake .. -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:3 (find_package): By not providing "Findcatkin.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "catkin", but CMake did not find one. Could not find a package configuration file provided by "catkin" with any of the following names: catkinConfig.cmake catkin-config.cmake Add the installation prefix of "catkin" to CMAKE_PREFIX_PATH or set "catkin_DIR" to a directory containing one of the above files. If "catkin" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred! Is there a way to build just roscpp? The reason I'm doing this is that I'd eventually like to get to a point where I can modify things to start cross compiling using aarch64 tools, even if that means I have to do the port to an arm-v8a arch. The docker image for Android doesn't support the toolchains I need.

catkin_make hangs forever

$
0
0
ROS Indigo on Ubuntu 14.04 LTS catkin_make starts up and gets as far as BUILD_SHARED_LIBS is on and then hangs. There are no high cpu processes listed in top, and no output to dmesg at all. What else can I check to investigate why it hangs?

Unable to build nav2d_karto

$
0
0
When trying to build nav2d_karto using catkin_make, I get the following error: 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: CSPARSE_INCLUDE_DIR used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto used as include directory in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto CSPARSE_LIBRARY linked by target "mapper" in directory /home/matt/catkin_ws/src/navigation_2d/nav2d_karto -- Configuring incomplete, errors occurred! See also "/home/matt/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/matt/catkin_ws/build/CMakeFiles/CMakeError.log". Makefile:9292: recipe for target 'cmake_check_build_system' failed make: *** [cmake_check_build_system] Error 1 Invoking "make cmake_check_build_system" failed I can't seem to fix it. Does anyone know how to resolve this problem? Thanks.

catkin configuration question

$
0
0
I have ros kinetic installed I have projects that use rosmake I have projects that use catkin_make I have projects that use catkin build I can not longer seem to get some of them to locate executable. I had them under a single directory under different src's What is the proper structure for a system like this. Since I added PTAM to src_nstd/src it can not find executable s when using the launch file , keeps looking in src path and not devel. My .bashrc file currently looks like this: source /opt/ros/kinetic/setup.bash source /home/rjn/catkin_ws/src_nstd/setup.bash # for rosmake source /home/rjn/catkin_ws/src_nstd/devel/setup.bash # for catkin_make source /home/rjn/catkin_ws/devel/setup.bash # for catkin build catkin source structure looks like: /home/rjn/catkin_ws/src_nstd/ # for rosmake -- does not use a src /home/rjn/catkin_ws/src_nstd/src # for catkin_make /home/rjn/catkin_ws/src # for catkin build I moved the catkin_make stuff to its own workspace. I will do the same for rosmake. But, Only the workspace build with catkin build a nd the kinetic installed launch files work. The ones built in catkin_make_ws exit with out giving an error. I can run them if I use rosrun which is odd but not launch file.

setup.py not installing python module during catkin build

$
0
0
Hi, I'm trying to install a python module defined in a ros package using the [guide defined here](http://docs.ros.org/api/catkin/html/howto/format2/installing_python.html). However I find that my package defined in the:/src//*.* is not showing up in the the `install/lib/python/dist-utils` of my build. I only get the `__init__.py` from my package installed there. The contents of my package include multiple subpackages but these folders are not being copied at all. However, two of my scripts that have been defined in the `catkin_install_python()` function of CMakeLists.txt do show up. I am using catkin build tools, and my package.xml has a build dependency on rospy, if that matters. Any guidance would be appreciated.

Mess between catkin ws

$
0
0
Dear All, I require your advice because actually I created a catkin ws (referred to as WS1) for Hector quadrator gazebo which was working fine so far. Then in order to test hector with a lidar I created another workspace (referred to as WS2) with hector slam. I succeded in creating a map with the lidar but what is puzzling me is that now the hecto quadrotor demo is not working anymore because it looks like that it launches the hector mapping from WS2 and not the one from WS1. How is this possible? And then how to correct it? Advice will be very very helpfull Fabrice
Viewing all 670 articles
Browse latest View live


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