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

Include Header file from another package - Indigo

$
0
0
Hi folks, I have a file called (every name here is FAKE) file.h from the package named "my_package." Now, main.cpp located inside package named "the_package" needs to include the library in this manner: #include but "the_package" cannot find file.h How do I make catkin allow "the_package" to find file.h **without** having to do something like: #include "../../../my_package/file.h" I am assuming I have to do it in my CMakeList.txt, but using find_package() nor find_package(catkin Required ...) are doing it. Every package is located inside my "catkin_ws" workspace. What is the proper way? Thanks

Problem with sourcing setup.bash

$
0
0
Hi, I have some packages installed with apt, and some from from source in catkin_ws. The problem Im having is that the source /opt/ros/kinetic/setup.bash file and the ~/catkin_ws/devel/setup.bash file conflicts. As soon as I source catkin I can not find some packages In opt/ros, and as soon as I source opt/ros I can not find any of my catkin nodes. I have been struggling with this for a while now and Im wondering if it is a way of resolving this conflict?

Wrap external library as catkin package

$
0
0
Hi, I have a precompiled library that I want to use in multiple catkin packages. Hence, I want to wrap this external library with a catkin package which then can be used in other packages with the XML command wrapper_library and the cmake command find_package(wrapper_library). Can you tell me which commands must be included in the cmakelists file of the wrapper_library such that it easily provides the wrapped library to other packages? Do these other catkin packages need more commands like the target_link_libraries(mypackage wrapper_library)? I don't really know how to start because this use case is not documented in the Ros tutorials, I think... And I am no cmake expert :) Thanks in advance! inspire

How to build just one package using catkin_make?

$
0
0
How do I build just one package using catkin_make? I now that I can cd to the build directory and build there but that is inconvenient. And how do I build one package and its dependencies?

Crosscompiling ROS into relocatable code

$
0
0
Hi, I am currently working on cross-compiling the ROS dependencies I need for a project for a Raspberry Pi 3. After a bit of work I got it working. I install to the default location and later build a .deb package which copies the code to /opt/ros/kinetic on the target system. My problem is that the generated files, specificly the -config.cmake files, contain references to directories in the installation-path. I don't know how to avoid this, since I cannot set the install-path to the correct location (it's not writable for me) so that I need to use an intermediate directory. I thought about using the DESTDIR environment variable or the CMAKE_STAGIN_PREFIX but I don't know which would be the correct one or whether catkin adheres these variables. Any help is very welcome! I crosscompile by simply passing this toolchain file to catkin: SET(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_SYSTEM_PROCESSOR armv7l) SET(CMAKE_C_COMPILER ${RASPI_TOOLCHAIN}/bin/arm-linux-gnueabihf-gcc) SET(CMAKE_CXX_COMPILER ${RASPI_TOOLCHAIN}/bin/arm-linux-gnueabihf-g++) SET(CMAKE_FIND_ROOT_PATH ${RASPI_ROOTFS}) SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_SYSROOT ${CMAKE_FIND_ROOT_PATH}) # Workarounds: # Not populated automaticaly SET(CMAKE_LIBRARY_ARCHITECTURE arm-linux-gnueabihf) # rootfs/usr/include/arm-linux-gnueabihf not included INCLUDE_DIRECTORIES(SYSTEM ${CMAKE_FIND_ROOT_PATH}/usr/include/arm-linux-gnueabihf) # Compilerselftest fails, rootfs/usr/lib/arm-linux-gnueabihf is not linked against, only # Symlink from rootfs/usr/lib/arm-linux-gnueabihf/4.9.3 to rootfs/usr/lib/arm-linux-gnueabihf # /usr/lib/arm-linux-gnueabif instead of rootfs/usr/lib/arm-linux-gnueabif is added to the rpath for some packages # -> happens when sysroot is prefix of runtime-dir: https://github.com/Kitware/CMake/blob/master/Source/cmComputeLinkInformation.cxx#L1753 # rootfs/lib/arm-linux-gnueabihf is not present in the rpath set(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,-rpath,${CMAKE_FIND_ROOT_PATH}/lib/arm-linux-gnueabihf:${CMAKE_FIND_ROOT_PATH}/usr/lib/arm-linux-gnueabihf:" CACHE STRING "" FORCE) set(CMAKE_EXECUTABLE_RUNTIME_CXX_FLAG "-Wl,-rpath,${CMAKE_FIND_ROOT_PATH}/lib/arm-linux-gnueabihf:${CMAKE_FIND_ROOT_PATH}/usr/lib/arm-linux-gnueabihf:" CACHE STRING "" FORCE) # console_bridge & urdfdom returns /usr/include as _INCLUDE_DIRS (https://github.com/ros/console_bridge/issues/44) # Use modified find{console_bridge,urdfdom}.cmake (find_path) # GTest adds host /usr/include to include directories # remove NO_CMAKE_FIND_ROOT_PATH from find_path calls in src/catkin/cmake/tests/gtest.cmake # pkg config looks up packages on the hostsystem set(ENV{PKG_CONFIG_DIR} ) set(ENV{PKG_CONFIG_LIBDIR} "${CMAKE_FIND_ROOT_PATH}/usr/lib/pkgconfig:${CMAKE_FIND_ROOT_PATH}/usr/share/pkgconfig") set(ENV{PKG_CONFIG_SYSROOT} "${CMAKE_FIND_ROOT_PATH}") I was thinking about using the DESTDIR environment variable or [CMAKE_STAGING_PREFIX](https://cmake.org/cmake/help/v3.8/variable/CMAKE_STAGING_PREFIX.html#variable:CMAKE_STAGING_PREFIX) to make the generated code relocatable but I am not sure which is the right one to use or whether they work with catkin.

How to stop generating msg and srv for certain languages

$
0
0
I followed ROS tutorials where I generated msg and srv and everything worked well. However, I saw that message_generation creates msgs and srvs not only for Python and C++ as I expected, but also for NodeJS, common-lisp and eusLisp. How can I "turn off" this? I need only Python and C++ types. I searched CMakeLists.txt but couldn't find anything related to these languages.

Qtcreator with Catkin

$
0
0
I've been using Qtcreator for a long time with rosbuild packages, where it puts the executables in the `package/bin/` directory just like `rosmake`. Using Qtcreator with catkin packages, I can edit and compile the code just fine, but since the binaries aren't put in the `catkin_workspace/devel/` path, I still have to run `catkin_make` by hand for the binaries to be usable. Is there a solution to this that lets Qtcreator put the libraries and executables in the correct location?

catkin build with cmake file and flags

$
0
0
Hi, I have many packages that rely on each other. With "catkin build", all packages are compiled and linked in the right order. Now I have two questions: 1. If I add some CMAKE_CXX_FLAGS arguments in the CMakeLists.txt file of the top-level package, are these flags used for all other packages that are included by this top-level package? 2. Is it possible to append a "my_config.cmake" file to the "catkin build" command that is used for the whole compilation? It should just set some CMAKE_CXX_FLAGS arguments for all packages. Thanks in advance! inspire

catkin_package(CATKIN_DEPENDS ...) vs. find_package(catkin REQUIRED COMPONENTS ...)

$
0
0
Hi, Let's say I have a package `A` that depends on `sensor_msgs`. I have to add `sensor_msgs` to both > find_package(catkin REQUIRED COMPONENTS sensor_msgs)> catkin_package(CATKIN_DEPENDS sensor_msgs) What is the difference between the two? What purpose do each of them solve? For instance, I noticed that `message_generation` has to be in the `find_package` call while the `message_runtime` has to be in `catkin_package` call. Why are they not in both? Thank you.

roslaunch Error: Cannot Launch Node of Type

$
0
0
I am trying to implement the following tutorial ( https://bitbucket.org/enddl22/autonomousrc_car After following above instruction, everything almost is done, I ran "catkin build" without error. However when doing "roslaunch ./teleop_key.launch", I got this error: ERROR: cannot launch node of type [vrep_ros_clock_server/vrep_ros_clock_server_node]: can't locate node [vrep_ros_clock_server_node] in package [vrep_ros_clock_server] I referred this link: http://answers.ros.org/question/67488/roslaunch-error-error-cannot-launch-node-of-type/ to find workaround. rospack find vrep_ros_clock_server gave me the correct address of package vrep_ros_clock_server. My OS: ubuntu 14.06 ROS Indigo (similar author of the instruction) I also tried as the above link, delete package and re-create using roscreate-pkg, but the error still exists

catkin build question

$
0
0
If I have two catkin work directories and one is dependent on the other for a package. How do I tell the build to look there. Does it use ROS environment variable for a list of source directories? I did put source setup for both in my bashrc file. But the referring directory still does not find the package in the other ws.

Proper way of including headers in catkin c++

$
0
0
Hello there! I'm experiencing a linking problem when I try to include some header files to my node. My newnode.cpp looks so: #include #include #include #include "newnode_functions.h" using namespace std; int a, b; int main() { cout << "\nInsert number a: "; cin >> a; cout << "\nInsert number b: "; cin >> b; cout << "\na + b = " << sum(a,b); return 0; } my newnode_functions.h looks so: #include int c; int sum(int, int); and my newnode_functions.cpp looks like this: #include "newnode_functions.h" int sum(int a, int b) { c = a + b; return c; } Then my CMakeLists.txt is as follows: cmake_minimum_required(VERSION 2.8.3) project(publish_imu_measurements) find_package(catkin REQUIRED COMPONENTS roscpp std_msgs # message_generation rogi_messages ) catkin_package( INCLUDE_DIRS include # LIBRARIES publish_imu_measurements CATKIN_DEPENDS message_runtime #roscpp std_msgs # DEPENDS system_lib ) include_directories(include ${catkin_INCLUDE_DIRS}) add_executable(newnode src/newnode.cpp src/newnode_functions.cpp) When i try to compile this package with `catkin_make` I get the following linking errors: 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: /home/ubuntu/catkin_ws/devel;/opt/ros/kinetic -- This workspace overlays: /home/ubuntu/catkin_ws/devel;/opt/ros/kinetic -- 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.7.6 -- BUILD_SHARED_LIBS is on -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing 2 packages in topological order: -- ~~ - rogi_messages -- ~~ - publish_imu_measurements -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ processing catkin package: 'rogi_messages' -- ==> add_subdirectory(rogi_messages) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- rogi_messages: 2 messages, 0 services -- +++ processing catkin package: 'publish_imu_measurements' -- ==> add_subdirectory(publish_imu_measurements) -- Configuring done -- Generating done -- Build files have been written to: /home/ubuntu/catkin_ws/build #### #### Running command: "make -j1 -l1" in "/home/ubuntu/catkin_ws/build" #### [ 0%] Built target std_msgs_generate_messages_nodejs [ 0%] Built target _rogi_messages_generate_messages_check_deps_Vector3Int16 [ 0%] Built target _rogi_messages_generate_messages_check_deps_ImuData [ 13%] Built target rogi_messages_generate_messages_nodejs [ 13%] Built target std_msgs_generate_messages_cpp [ 26%] Built target rogi_messages_generate_messages_cpp [ 26%] Built target std_msgs_generate_messages_eus [ 46%] Built target rogi_messages_generate_messages_eus [ 46%] Built target std_msgs_generate_messages_py [ 66%] Built target rogi_messages_generate_messages_py [ 66%] Built target std_msgs_generate_messages_lisp [ 80%] Built target rogi_messages_generate_messages_lisp [ 80%] Built target rogi_messages_generate_messages [ 86%] Linking CXX executable /home/ubuntu/catkin_ws/devel/lib/publish_imu_measurements/newnode CMakeFiles/newnode.dir/src/newnode_functions.cpp.o:(.bss+0x0): multiple definition of `c' CMakeFiles/newnode.dir/src/newnode.cpp.o:(.bss+0x0): first defined here collect2: error: ld returned 1 exit status publish_imu_measurements/CMakeFiles/newnode.dir/build.make:120: recipe for target '/home/ubuntu/catkin_ws/devel/lib/publish_imu_measurements/newnode' failed make[2]: *** [/home/ubuntu/catkin_ws/devel/lib/publish_imu_measurements/newnode] Error 1 CMakeFiles/Makefile2:968: recipe for target 'publish_imu_measurements/CMakeFiles/newnode.dir/all' failed make[1]: *** [publish_imu_measurements/CMakeFiles/newnode.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j1 -l1" failed I have run out of ideas on this. Variable c is declared only in my header file, so I don't understand why I'm getting this error. Please help me on this...

How to 'catkin_make clean' just one package?

$
0
0
Hello, How can we completely remove a single catkin package from our catkin workspace? The commands: $ cd ~/catkin_ws $ catkin_make clean package_name appears to also remove shared objects from all other packages in the workspace so that a subsequent "catkin_make" has to rebuild stuff in those packages. I would like a way to remove all build objects from a package without affecting other packages and so that subsequently removing the source tree of the package in question would remove all traces of it from the workspace. Thanks!
patrick

link to opencv2 in kinetic

$
0
0
Hello! I am using ROS Kinetic on Ubuntu 16.04 Xenial 64bit. I have installed both opencv2 (by libopencv-dev) and opencv3 (by ros-kinetic-opencv3). A project of mine depends on cv_bridge, the problem is: by compilation opencv3 is always linked instead of opencv2 that is acutally needed, although in CMakeLists.txt I have explicitly indicated to use opencv2: find_package(OpenCV 2.4.9.1 EXACT REQUIRED) I also tried: find_package(OpenCV 2 REQUIRED) but it failed too. If I remove the dependency of cv_bridge in CMakeLists.txt, opencv2 is correctly linked, but the compilation complains the lack of cv_bridge library. Any suggestion or experience on this issue? Thanks in advance! PS: when I output the path where the opencv2 header files are found to be stored in CMakeLists.txt: message( STATUS "OpenCV Include Dir: " ${OpenCV_INCLUDE_DIRS} ) it gives me a weird result: /usr/include/opencv/usr/include although it does not break the compilation when the dependency on cv_bridge is removed.

Specify gcc -pg option for catkin?

$
0
0
Hi all, I am working on a project to do some performance profiling on amcl. To do this, I want to use gprof. To use gprof, I need to compile amcl with the -pg option for gcc. How can I do this in the catkin environment? Is this the right approach? Bonus question: I don't really want to profile all of the navigation package, only amcl. How can I break amcl out of the navigation package so that I am only profiling amcl? thanks in advance! dw

Importing services declared in the same package in python and catkin

$
0
0
I'm building om groovy a catkin package that declares a service and contains a python node that acts as server for the service. The service is declared in the file `usv_comm/srv/sendTwist.srv`. The node script is in the file `usv_comm/scripts/usv_comm.py`. The service is listed correctly when I make a `rossrv list` and `rossrv show usv_comm/sendTwist`. The service is imported into the python script by `from usv_comm.srv import sendTwist`. However, when I run the node as `rosrun usv_comm usv_comm.py`, I get the following error: from usv_comm.srv import sendTwist ImportError: No module named srv I have previously declared and used services with rosbuild without problems, but I'm quite new to catkin so I'm basically lost right now. I have followed the tutorials for creating srv (wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv) and using services (wiki.ros.org/ROS/Tutorials/WritingServiceClient%28python%29) for catkin and python. Any insight in this problem will be appreciated. Configuration files: setup.py from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['usv_comm'], package_dir={'': 'scripts'} ) setup(**d) CMakeLists.txt cmake_minimum_required(VERSION 2.8.3) project(usv_comm) find_package(catkin REQUIRED COMPONENTS rospy roscpp std_msgs geometry_msgs message_generation ) add_service_files( DIRECTORY srv FILES sendTwist.srv ) generate_messages( DEPENDENCIES std_msgs geometry_msgs ) catkin_package( CATKIN_DEPENDS rospy std_msgs geometry_msgs message_runtime ) include_directories( ${catkin_INCLUDE_DIRS} ) package.xml usv_comm0.0.0The usv_comm packagemessage_generationmessage_runtimecatkinrospyroscppstd_msgsgeometry_msgsrospyroscppstd_msgsgeometry_msgs Thank you and best regards. **Edit 1:** Added CMakeLists.txt file. **Edit 2:** Added package.xml **Edit 3:** Added setup.py

catkin & uses

$
0
0
What exactly is **catkin**? How is it used in ROS? What are its different types?

Preferred method to install catkin on Debian stretch

$
0
0
Fairly new to ROS haven't looked at it in a year. This time around I was happy to see it installed via packages to Debian rather than installing a pre configured distribution .ISO, I have Debian 9 aka stretch installed on an old HP tx2000. I have ros installed by including jeffa@lunar:~$ uname -a Linux lunar 4.9.0-2-amd64 #1 SMP Debian 4.9.18-1 (2017-03-30) x86_64 GNU/Linux jeffa@lunar:~$ root@lunar:/etc/apt/sources.list.d# cat ros-latest.list deb http://packages.ros.org/ros/ubuntu stretch main I followed the directions [Debian install of ROS Lunar](http://wiki.ros.org/lunar/Installation/Debian) `apt-get install ros-lunar-desktop-full` Should I install catkin from packages? or build catkin from source? I tried both attempting building from source first then tried with apt-get [...] [ 19%] Built target pch_Generate_opencv_surface_matching Scanning dependencies of target pch_Generate_opencv_video [ 19%] Generating precomp.hpp [ 19%] Generating precomp.hpp.gch/opencv_video_Release.gch Scanning dependencies of target pch_Generate_opencv_viz [ 19%] Generating precomp.hpp [ 19%] Generating precomp.hpp.gch/opencv_viz_Release.gch In file included from /usr/include/c++/6/ext/string_conversions.h:41:0, from /usr/include/c++/6/bits/basic_string.h:5417, from /usr/include/c++/6/string:52, from /usr/include/c++/6/stdexcept:39, from /usr/include/c++/6/array:39, from /usr/include/c++/6/tuple:39, from /usr/include/c++/6/bits/stl_map.h:63, from /usr/include/c++/6/map:61, from /home/jeffa/ros_catkin_ws/build_isolated/opencv3/install/modules/viz/precomp.hpp:49: /usr/include/c++/6/cstdlib:75:25: fatal error: stdlib.h: No such file or directory #include_next ^ compilation terminated. modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62: recipe for target 'modules/viz/precomp.hpp.gch/opencv_v iz_Release.gch' failed make[2]: *** [modules/viz/precomp.hpp.gch/opencv_viz_Release.gch] Error 1 CMakeFiles/Makefile2:3082: recipe for target 'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all' failed make[1]: *** [modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 19%] Built target pch_Generate_opencv_video Makefile:160: recipe for target 'all' failed make: *** [all] Error 2<== Failed to process package 'opencv3': Command '['/home/jeffa/ros_catkin_ws/install_isolated/env.sh', 'make', '-j2', '-l2']' returned non-zero exit status 2 Reproduce this error by running: ==> cd /home/jeffa/ros_catkin_ws/build_isolated/opencv3 && /home/jeffa/ros_catkin_ws/install_isolated/env.sh make -j2 -l2 Command failed, exiting. jeffa@lunar:~/ros_catkin_ws$ Then it occurred to me to `apt-get install catkin` root@lunar:/etc/apt/sources.list.d# apt-get install catkin Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: catkin : Depends: python-catkin-pkg but it is not going to be installed E: Unable to correct problems, you have held broken packages. root@lunar:/etc/apt/sources.list.d# root@lunar:/etc/apt/sources.list.d# dpkg --get-selections | grep catk python-catkin-pkg install python-catkin-pkg-modules install ros-lunar-catkin install root@lunar:/etc/apt/sources.list.d#

About catkin_make failure

$
0
0
I am a beginner to ROS when i was following the tutorial on website http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment after entering $ cd ~/catkin_ws/ $ catkin_make It worked fine at first and i got an error as follows: [ 85%] Built target gazebo_ros_tricycle_drive In file included from /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:25:0: /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:270:35: error: ‘gazebo_ros’ has not been declared void physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level); ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:270:61: error: expected ‘,’ or ‘...’ before ‘&’ token void physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level); ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:360:50: error: ‘gazebo_ros’ was not declared in this scope boost::shared_ptr< dynamic_reconfigure::Server> physics_reconfigure_srv_; ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:360:75: error: template argument 1 is invalid boost::shared_ptr< dynamic_reconfigure::Server> physics_reconfigure_srv_; ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:360:77: error: template argument 1 is invalid boost::shared_ptr< dynamic_reconfigure::Server> physics_reconfigure_srv_; ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:361:31: error: ‘gazebo_ros’ was not declared in this scope dynamic_reconfigure::Server::CallbackType physics_reconfigure_callback_; ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:361:56: error: template argument 1 is invalid dynamic_reconfigure::Server::CallbackType physics_reconfigure_callback_; ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:361:59: error: expected ‘;’ at end of member declaration dynamic_reconfigure::Server::CallbackType physics_reconfigure_callback_; ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/include/gazebo_ros/gazebo_ros_api_plugin.h:361:72: error: ‘physics_reconfigure_callback_’ does not name a type dynamic_reconfigure::Server::CallbackType physics_reconfigure_callback_; ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:1878:53: error: variable or field ‘physicsReconfigureCallback’ declared void void GazeboRosApiPlugin::physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level) ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:1878:53: error: ‘gazebo_ros’ has not been declared /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:1878:80: error: ‘config’ was not declared in this scope void GazeboRosApiPlugin::physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level) ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:1878:97: error: expected primary-expression before ‘level’ void GazeboRosApiPlugin::physicsReconfigureCallback(gazebo_ros::PhysicsConfig &config, uint32_t level) ^ /home/sxy/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/src/gazebo_ros_api_plugin.cpp:2302:1: error: expected ‘}’ at end of input } ^ Linking CXX shared library /home/sxy/catkin_ws/devel/lib/libgazebo_ros_video.so Linking CXX shared library /home/sxy/catkin_ws/devel/lib/libgazebo_ros_diff_drive.so make[2]: *** [gazebo_ros_pkgs/gazebo_ros/CMakeFiles/gazebo_ros_api_plugin.dir/src/gazebo_ros_api_plugin.cpp.o] Error 1 make[1]: *** [gazebo_ros_pkgs/gazebo_ros/CMakeFiles/gazebo_ros_api_plugin.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 85%] Built target gazebo_ros_diff_drive [ 85%] Built target gazebo_ros_video make: *** [all] Error 2 make: INTERNAL: Exiting with 5 jobserver tokens available; should be 4! Invoking "make -j4 -l4" failed please help me. This is the first time i post question here, if the format is not right, please do tell me. Thank u in advance

problem with catkin to building a node, "not found in the workspace"

$
0
0
Hi, I tried to building a node (chapter2_tutorials) but I can't build the package I created a workspace at home/user/ros_workspace I put the package in this folder --> chapter2_tutorials. When I try to find this package with rospack find chapter2_tutorials, it is ok. But when I try to execture catkin_make --pkg chapter2_tutorials I have: Packages "chapter2_tutorials" not found in the workspace. For information, I put at the end of bashrc source /home/user/ros_workspace/catkin/devel/setup.bash export ROS_PACKAGE_PATH=~ros_workspace:/opt/ros/kinetic/share
Viewing all 670 articles
Browse latest View live


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