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

can't find linkage dependency

$
0
0
Hi, I am trying to compile my package but I am getting the following error: /usr/bin/ld: cannot find -lgripper_click_ui collect2: ld returned 1 exit status In my manifest I have the following two dependencies which possibly give me the hard time but it should be including the missing library: This error occurs when I run make or rosmake. I am using diamondback. Any clues? Many thanks.

How to redirect warnings to the screen?

$
0
0
Hello all, I am writing code C code that uses ROS and my OS is Linux. I also use launch file in order to run my program. **My problem:** I don´t see the warnings on the screen after compilation. The only thing I am able to see is this message: > [rosmake-3] Finished <<< guiPackage> [PASS] [ 4.21 seconds ] -- WARNING: 2> compiler warnings **My Questions:** 1. Is this problem connected to the launch file or not? 2. Whatever the answer for 1 is, how can I see the warnings on the shell screen of Linux in this case? Thank you all for your time, Felix.

Rosjava fails to build when custom messages are listed as a dependency

$
0
0
Hello, Currently, I have a package containing all of my custom messages called "OryxMessages". This builds fine, and other packages can use these messages. A few weeks ago, my rosjava package had no problem generating the proper files for these messages building. Today, however, I removed 1 of the messages from that package and rebuilt it. Everything works fine, except now my rosjava package won't build, giving me the following error: compile: [javac] Compiling 4 source files to /home/oryx/.ros/rosjava/build/OryxMessages [javac] javac: invalid flag: -g:${debuglevel} [javac] Usage: javac [javac] use -help for a list of possible options BUILD FAILED /home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/scripts/build-msg.xml:72: Compile failed; see the compiler error output for details. Total time: 1 second Traceback (most recent call last): File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 108, in main(sys.argv) File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 100, in main build(rospack, package) File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/make.py", line 70, in build generate_msg_depends.generate_msg_depends(package) File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/generate_msg_depends.py", line 214, in generate_msg_depends _generate_msgs(rospack, p, up_to_date) File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/generate_msg_depends.py", line 198, in _generate_msgs run_ant(properties) File "/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/src/main/python/rosjava_bootstrap/generate_msg_depends.py", line 111, in run_ant subprocess.check_call(command) File "/usr/lib/python2.7/subprocess.py", line 504, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['ant', '-f', '/home/oryx/ros_workspace/rosjava_core/rosjava_bootstrap/scripts/build-msg.xml', u'-Dproperties=/home/oryx/.ros/rosjava/properties/build-OryxMessages.properties', 'maven-install']' returned non-zero exit status 1 I am not sure what could be causing it. To verify that it wasn't a code problem, I removed all dependencies except rosjava and built it. Like expected, it built fine. When I added in OryxMessages as a dependency, it once again failed to compile. Again, I am confused at what happened because it was working before I removed the one message. Thank you, -Joseph Amato

Fedora 16 / Electric / Gazebo / Build Issues

$
0
0
Having just preupgraded from Fedora 15, I set about installing ROS all over again. Fortunately, unlike the [previous](http://answers.ros.org/question/2636/fedora-15-electric-build-issues-gazebo) time, I had much fewer issues getting to the point of building gazebo. I had to build assimp, and that was it. Build first failed due to fltk issues [ 15%] Building CXX object server/physics/ode/CMakeFiles/gazebo_physics_ode.dir/ODEHeightmapShape.o Linking CXX shared library libgazebo_physics_ode.so make[4]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' [ 15%] Built target gazebo_physics_ode make[4]: Entering directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' make[4]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' make[4]: Entering directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' [ 16%] Building CXX object server/rendering/CMakeFiles/gazebo_rendering.dir/OgreCreator.o /home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/server/rendering/OgreCreator.cc: In member function ‘Ogre::RenderWindow* gazebo::OgreCreator::CreateWindow(Fl_Window*, unsigned int, unsigned int)’: /home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/server/rendering/OgreCreator.cc:380:19: error: incomplete type ‘Fl_X’ used in nested name specifier make[4]: *** [server/rendering/CMakeFiles/gazebo_rendering.dir/OgreCreator.o] Error 1 make[4]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' make[3]: *** [server/rendering/CMakeFiles/gazebo_rendering.dir/all] Error 2 make[3]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' make[1]: *** [installed] Error 2 make[1]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo' CMake Error at CMakeLists.txt:32 (message): Build of Gazebo failed UPDATE 1 : This seems to be some issue with the updating of fltk as per [this](http://https://bugs.gentoo.org/show_bug.cgi?id=368607). However, looking at the x.h header from the Fl include directory, and comparing, I tried this (Sensible) patch. In ros/simulator_gazebo/gazebo/build/gazebo/server/rendering/OgreCreator.cc -- win = OgreCreator::CreateWindow( fl_display, fl_visual->screen, (int32_t)(Fl_X::i(flWindow)->xid), width, height); ++ win = OgreCreator::CreateWindow( fl_display, fl_visual->screen, (int32_t)(fl_xid(flWindow)), width, height); This resulted in the build process continuing further, with the following error [ 46%] Building CXX object server/gui/CMakeFiles/gazebo_gui.dir/GLWindow.o In file included from /usr/include/FL/fl_utf8.h:73:0, from /usr/include/FL/Fl.H:39, from /home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/server/gui/Gui.hh:33, from /home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/server/gui/GLWindow.cc:51: /usr/include/FL/Xutf8.h:161:5: error: ‘Status’ has not been declared make[4]: *** [server/gui/CMakeFiles/gazebo_gui.dir/GLWindow.o] Error 1 make[4]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' make[3]: *** [server/gui/CMakeFiles/gazebo_gui.dir/all] Error 2 make[3]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo/build/gazebo/build' make[1]: *** [installed] Error 2 make[1]: Leaving directory `/home/kshaurya/ros/simulator_gazebo/gazebo' CMake Error at CMakeLists.txt:32 (message): Build of Gazebo failed Any dice? UPDATE 2: I just went ahead and commented(!) out the relevant portion in the offending library header file. The build proceeded further. However [this](http://old.nabble.com/Problem-installing-gazebo-(make)-td28287759.html) seems to suggest that the relevant flags need to be set. What's that about? Gazebo built, but then a `roslaunch gazebo_worlds empty_world.launch` gave another error SUMMARY ======== PARAMETERS * /rosversion * /use_sim_time * /rosdistro NODES / gazebo (gazebo/gazebo) auto-starting new master process[master]: started with pid [3743] ROS_MASTER_URI=http://localhost:11311 setting /run_id to cb88f5d4-3ece-11e1-96c9-88532e12696b process[rosout-1]: started with pid [3756] started core service [/rosout] process[gazebo-2]: started with pid [3759] /home/kshaurya/ros/simulator_gazebo/gazebo/bin/gazebo: error while loading shared libraries: libboost_signals-mt.so.1.46.0: cannot open shared object file: No such file or directory [gazebo-2] process has died [pid 3759, exit code 127]. log files: /home/kshaurya/.ros/log/cb88f5d4-3ece-11e1-96c9-88532e12696b/gazebo-2*.log ^C[rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done I just checked - I have boost-devel-1.47. Why is it requiring 1.46? :S Update 3: I cleaned all hte build directories, and when I attempted to build gazebo_worlds, build of cminpack failed as the md5 sum of the downloaded tarball didn't match the offical md5. Replacing it by the official tarball gave me this huge boost error subsequently along the build process In file included from /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:24:0, from /usr/include/boost/ptr_container/ptr_sequence_adapter.hpp:20, from /usr/include/boost/ptr_container/ptr_vector.hpp:20, from /home/kshaurya/ros/image_common/image_transport/src/publisher.cpp:38: /usr/include/boost/ptr_container/clone_allocator.hpp: In function ‘T* boost::new_clone(const T&) [with T = image_transport::PublisherPlugin]’: /usr/include/boost/ptr_container/clone_allocator.hpp:68:33: instantiated from ‘static U* boost::heap_clone_allocator::allocate_clone(const U&) [with U = image_transport::PublisherPlugin]’ /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:110:63: instantiated from ‘static boost::ptr_container_detail::reversible_ptr_container::Ty_* boost::ptr_container_detail::reversible_ptr_container::null_clone_allocator::allocate_clone(const Ty_*) [with bool allow_null_values = false, Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator, boost::ptr_container_detail::reversible_ptr_container::Ty_ = image_transport::PublisherPlugin]’ /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:95:71: instantiated from ‘static boost::ptr_container_detail::reversible_ptr_container::Ty_* boost::ptr_container_detail::reversible_ptr_container::null_clone_allocator::allocate_clone_from_iterator(Iter) [with Iter = boost::void_ptr_iterator<__gnu_cxx::__normal_iterator>>, const image_transport::PublisherPlugin>, bool allow_null_values = false, Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator, boost::ptr_container_detail::reversible_ptr_container::Ty_ = image_transport::PublisherPlugin]’ /usr/include/boost/ptr_container/detail/scoped_deleter.hpp:70:21: instantiated from ‘boost::ptr_container_detail::scoped_deleter::scoped_deleter(InputIterator, InputIterator) [with InputIterator = boost::void_ptr_iterator<__gnu_cxx::__normal_iterator>>, const image_transport::PublisherPlugin>, T = image_transport::PublisherPlugin, CloneAllocator = boost::ptr_container_detail::reversible_ptr_container>>, boost::heap_clone_allocator>::null_clone_allocator]’ /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:212:44: instantiated from ‘void boost::ptr_container_detail::reversible_ptr_container::clone_back_insert(ForwardIterator, ForwardIterator) [with ForwardIterator = boost::void_ptr_iterator<__gnu_cxx::__normal_iterator>>, const image_transport::PublisherPlugin>, Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator]’ /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:303:13: instantiated from ‘void boost::ptr_container_detail::reversible_ptr_container::constructor_impl(I, I, std::forward_iterator_tag) [with I = boost::void_ptr_iterator<__gnu_cxx::__normal_iterator>>, const image_transport::PublisherPlugin>, Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator]’ /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:348:13: instantiated from ‘boost::ptr_container_detail::reversible_ptr_container::reversible_ptr_container(const boost::ptr_container_detail::reversible_ptr_container&) [with Config = boost::ptr_container_detail::sequence_config>>, CloneAllocator = boost::heap_clone_allocator, boost::ptr_container_detail::reversible_ptr_container = boost::ptr_container_detail::reversible_ptr_container>>, boost::heap_clone_allocator>]’ /usr/include/boost/ptr_container/ptr_sequence_adapter.hpp:203:26: instantiated from ‘boost::ptr_sequence_adapter::ptr_sequence_adapter(const boost::ptr_sequence_adapter&) [with T = image_transport::PublisherPlugin, VoidPtrSeq = std::vector>, CloneAllocator = boost::heap_clone_allocator, boost::ptr_sequence_adapter = boost::ptr_sequence_adapter>, boost::heap_clone_allocator>]’ /usr/include/boost/ptr_container/ptr_vector.hpp:31:11: instantiated from ‘boost::foreach_detail_::simple_variant::simple_variant(const T&) [with T = boost::ptr_vector]’ /usr/include/boost/foreach.hpp:648:95: instantiated from ‘boost::foreach_detail_::auto_any> boost::foreach_detail_::contain(const T&, bool*) [with T = boost::ptr_vector]’ /home/kshaurya/ros/image_common/image_transport/src/publisher.cpp:59:943: instantiated from here /usr/include/boost/ptr_container/clone_allocator.hpp:34:27: error: cannot allocate an object of abstract type ‘image_transport::PublisherPlugin’ /home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:13:7: note: because the following virtual functions are pure within ‘image_transport::PublisherPlugin’: /home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:22:23: note: virtual std::string image_transport::PublisherPlugin::getTransportName() const /home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:49:20: note: virtual uint32_t image_transport::PublisherPlugin::getNumSubscribers() const /home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:54:23: note: virtual std::string image_transport::PublisherPlugin::getTopic() const /home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:59:16: note: virtual void image_transport::PublisherPlugin::publish(const Image&) const /home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:72:16: note: virtual void image_transport::PublisherPlugin::shutdown() /home/kshaurya/ros/image_common/image_transport/include/image_transport/publisher_plugin.h:87:16: note: virtual void image_transport::PublisherPlugin::advertiseImpl(ros::NodeHandle&, const string&, uint32_t, const SubscriberStatusCallback&, const SubscriberStatusCallback&, const VoidPtr&, bool) make[3]: *** [CMakeFiles/image_transport.dir/src/publisher.o] Error 1 Possible clone of [this](http://answers.ros.org/question/1906/diamondbacks-image_transport-fails-to-compile-how)? Bad news :S

Compiling PCL on Pandaboard, linking error

$
0
0
Hello, I've been stuck for a while now trying to get PCL to compile on my Pandaboard. The issue is with some libvtk library, which I've never heard of. Searching google did not yield much promising results either. The linking error I'm getting is this : /usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libvtkIO.so: undefined reference to `__aeabi_d2lz@libmysqlclient_16' /usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libvtkIO.so: undefined reference to `__aeabi_f2lz@libmysqlclient_16' /usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libvtkIO.so: undefined reference to `__aeabi_f2ulz@libmysqlclient_16' /usr/lib/gcc/arm-linux-gnueabi/4.6.1/../../../../lib/libvtkIO.so: undefined reference to `__aeabi_d2ulz@libmysqlclient_16' Some mismatch with libmysqlclient and libvtk? I don't know what to do from here, any help is appreciated.

Problems compiling nodes using pcl in Ubuntu 11.10

$
0
0
There seems to be an issue with compiling ROS nodes that use pcl on Ubuntu 11.10. When I try to compile my node on 10.04 I don't have any problems. Both installations were installed from the debian packages ros-electric-desktop-full and ros-electric-perception-pcl-addons. 1. Ubuntu 10.04, 32-bit, ROS Electric: **Works** 2. Ubuntu 11.10, 32-bit, ROS Electric: **Doesn't compile** My node is pretty simple, mainly just visualizing a static point cloud that I create. In the second case, I get the following compiler error during linking. ... Linking CXX executable ../bin/publish_primitives /usr/bin/ld: CMakeFiles/publish_primitives.dir/src/publish_primitives.o: undefined reference to symbol 'vtkSmartPointerBase::operator=(vtkObjectBase*)' /usr/bin/ld: note: 'vtkSmartPointerBase::operator=(vtkObjectBase*)' is defined in DSO /usr/lib/libvtkCommon.so.5.6 so try adding it to the linker command line /usr/lib/libvtkCommon.so.5.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status ... I manually added the required libraries in CMakeLists.txt (below) and it fixes the compiler problem. rosbuild_add_executable(publish_primitives src/publish_primitives.cpp) target_link_libraries(publish_primitives libvtkCommon.so libvtkFiltering.so ) Messing with the compiler flags for pcl is beyond me, so I'll leave it to the higher ups to figure out what is going on.

Error when using PCLVisualizer

$
0
0
I was trying to use PCLVisualizer in a node but when I try to compile (using rosmake) I get as error /usr/bin/ld: CMakeFiles/viz.dir/src/cluster_visualizer.o: undefined reference to symbol 'vtkSmartPointerBase::operator=(vtkObjectBase*)' /usr/bin/ld: note: 'vtkSmartPointerBase::operator=(vtkObjectBase*)' is defined in DSO /usr/lib/libvtkCommon.so.5.6 so try adding it to the linker command line /usr/lib/libvtkCommon.so.5.6: could not read symbols: Invalid operation Here's the `CMakeLists.txt` I use >cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)>rosbuild_init()>set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/include/cluster_extraction )>list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(Eigen REQUIRED)
include_directories(${Eigen_INCLUDE_DIRS})>rosbuild_add_executable(viz src/cluster_visualizer.cpp) and here's the source code: #include #include #include #include #include int main () { pcl::PointCloud::Ptr cloud (new pcl::PointCloud); pcl::io::loadPCDFile ("/tmp/pointCloud0.pcd", *cloud); boost::shared_ptr viewer (new pcl::visualization::PCLVisualizer ("3D Viewer")); viewer->setBackgroundColor (0, 0, 0); viewer->addPointCloud (cloud, "sample cloud"); viewer->setPointCloudRenderingProperties (pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 1, "sample cloud"); viewer->addCoordinateSystem (1.0); viewer->initCameraParameters (); viewer->spin(); } Any suggestion on how can I fix? I'm using Ubuntu 11.10 with electric EDIT: my manifest.xml is cluster_extraction ManlioBSDhttp://ros.org/wiki/cluster_extraction

Compiling ROS with boost >1.41

$
0
0
Hello everybody. I have Ubuntu 64 bits 10.04 with kernel 2.6.32-38-generic and gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3. The problem I have is that I need to compile ROS (Electric or Fuerte) with boost 1.47, but it looks like it only works for boost 1.41 or lower. Is there any workaround? [Following this tutorial](http://ros.org/wiki/fuerte/Installation/Ubuntu/Source) , I've successfully compiled ROS Fuerte with boost 1.41. But when I try to compile ROS Fuerte with boost 1.42 (or higher, I've also tried with boost 1.44 and 1.47 and they give even more errors), and this is the output I get: ~/ros-underlay/build$ make -j [Everything goes ok up to the following point] [ 29%] Generating Lisp code from actionlib/TestRequestResult.msg Linking CXX executable ../bin/rospack [ 29%] Generating Lisp code from actionlib/TestRequestFeedback.msg [ 29%] [ 29%] Linking CXX executable ../bin/rosstack Generating Python from MSG rosgraph_msgs/Log Generating Python from MSG actionlib/TwoIntsActionResult [ 29%] Generating Lisp code from actionlib/TwoIntsAction.msg [ 29%] Built target rosgraph_msgs_gencpp ../lib/librospack.so: undefined reference to `boost::program_options::options_description::options_description(std::basic_string, std::allocator> const&, unsigned int, unsigned int)' collect2: ld returned 1 exit status make[2]: *** [bin/rospack] Error 1 make[1]: *** [rospack/CMakeFiles/rospackexe.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Scanning dependencies of target std_srvs_gencpp [ 29%] Generating Python from MSG actionlib/TwoIntsActionFeedback [ 29%] Generating C++ code from std_srvs/Empty.srv [ 29%] [ 29%] Generating Lisp code from actionlib/TwoIntsActionGoal.msg Generating Python from MSG actionlib/TwoIntsGoal [ 29%] ../lib/librospack.so: undefined reference to `boost::program_options::options_description::options_description(std::basic_string, std::allocator> const&, unsigned int, unsigned int)' collect2: ld returned 1 exit status make[2]: *** [bin/rosstack] Error 1 make[1]: *** [rospack/CMakeFiles/rosstackexe.dir/all] Error 2 Before executing make, I execute cmake, with the following result, which perhaps could be helpful in guessing what's happening: ~/ros-underlay/build$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte CMake Error: The source directory "/home/findeton" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. findeton@findeton-laptop:~/ros-underlay$ cd build findeton@findeton-laptop:~/ros-underlay/build$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/fuerte -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - 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 -- +++ catkin -- Found PythonInterp: /usr/bin/python2.6 -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found gtest: gtests will be built. TODO: implement add_roslaunch_check() in rostest-extras.cmake. -- BUILD_SHARED_LIBS is on. -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- ~~ traversing stacks/projects in dependency order ~~ -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- +++ genmsg -- +++ genpy -- +++ gencpp -- +++ genlisp -- +++ rospack -- Rospack building shared objects. -- Boost version: 1.42.0 -- Found the following Boost libraries: -- system -- filesystem -- program_options -- +++ std_msgs -- std_msgs: 32 messages -- +++ ros -- Boost version: 1.42.0 -- Found the following Boost libraries: -- thread -- Making toplevel forward script for bash script rosrun -- +++ roscpp_core -- Looking for execinfo.h -- Looking for execinfo.h - found -- Performing Test HAVE_CXXABI_H -- Performing Test HAVE_CXXABI_H - Failed -- Looking for backtrace -- Looking for backtrace - found -- Boost version: 1.42.0 -- Found the following Boost libraries: -- date_time -- thread -- +++ ros_comm -- rosgraph_msgs: 2 messages -- std_srvs: 0 messages TODO: consider moving xmlrpcpp's headers into a subdirectory -- Boost version: 1.42.0 -- Found the following Boost libraries: -- regex -- thread -- Boost version: 1.42.0 -- Found the following Boost libraries: -- signals -- filesystem -- system -- Looking for include files HAVE_IFADDRS_H -- Looking for include files HAVE_IFADDRS_H - found -- Looking for trunc -- Looking for trunc - not found -- roscpp: 1 messages -- topic_tools: 0 messages CMake Warning at build/cmake/rosunit/rosunit-extras.cmake:17 (message): add_pyunit() is deprecated. For Python tests, use add_nostests() instead. Call Stack (most recent call first): ros_comm/tools/topic_tools/CMakeLists.txt:70 (add_pyunit) -- Found BZip2: /usr/lib/libbz2.so -- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so -- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.so - found CMake Warning at build/cmake/rosunit/rosunit-extras.cmake:17 (message): add_pyunit() is deprecated. For Python tests, use add_nostests() instead. Call Stack (most recent call first): ros_comm/tools/rosbag/CMakeLists.txt:62 (add_pyunit) -- test_ros: 15 messages -- test_roslib_comm: 15 messages -- test_rospy: 12 messages -- test_rosservice: 0 messages -- test_roscpp: 4 messages -- test_roscpp_serialization: 18 messages -- test_roscpp_serialization_perf: 3 messages -- perf_roscpp: 2 messages -- test_crosspackage: 2 messages -- test_rosbag: 12 messages CMake Warning at build/cmake/rosunit/rosunit-extras.cmake:17 (message): add_pyunit() is deprecated. For Python tests, use add_nostests() instead. Call Stack (most recent call first): ros_comm/test/test_rosbag/CMakeLists.txt:52 (add_pyunit) -- +++ rx -- Found wxWidgets: TRUE -- Found PythonLibs: /usr/lib/libpython2.6.so -- +++ common_msgs -- geometry_msgs: 23 messages -- sensor_msgs: 18 messages -- nav_msgs: 5 messages -- actionlib_msgs: 3 messages -- visualization_msgs: 10 messages -- stereo_msgs: 1 messages -- diagnostic_msgs: 3 messages -- trajectory_msgs: 2 messages -- +++ ros_tutorials -- rospy_tutorials: 2 messages -- roscpp_tutorials: 0 messages -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Looking for Q_WS_QWS -- Looking for Q_WS_QWS - not found. -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Found Qt-Version 4.6.2 (using /usr/bin/qmake) -- Looking for _POSIX_TIMERS -- Looking for _POSIX_TIMERS - found -- turtlesim: 3 messages -- +++ actionlib -- Generating .msg files for action actionlib/Test /home/findeton/ros-underlay/actionlib/action/Test.action Generating for action Test -- Generating .msg files for action actionlib/TestRequest /home/findeton/ros-underlay/actionlib/action/TestRequest.action Generating for action TestRequest -- Generating .msg files for action actionlib/TwoInts /home/findeton/ros-underlay/actionlib/action/TwoInts.action Generating for action TwoInts -- actionlib: 21 messages -- Configuring done -- Generating done -- Build files have been written to: /home/findeton/ros-underlay/build

Did rosjava break at most recent push?

$
0
0
I get the following error when building rosjava after I pulled just now: :rosjava_bootstrap:jar :rosjava_messages:generateSources :rosjava_messages:compileJava /home/tommy/my_workspace/rosjava_core/rosjava_messages/build/generated-src/test_rosjava_jni/TestDataTypes.java:52: getByte() is already defined in test_rosjava_jni.TestDataTypes std_msgs.Byte getByte(); ^ /home/tommy/my_workspace/rosjava_core/rosjava_messages/build/generated-src/test_rosjava_jni/TestDataTypes.java:54: getByteV() is already defined in test_rosjava_jni.TestDataTypes java.util.List getByteV(); Is there something I'm not seeing or is this a bug?

ROS including headers

$
0
0
Hi all, How can I make that ROS look for headers files in /usr/include directory when compiling? I want to use some headers present in that folder, but when I include them in my code and make it, the compiler cannot find the header files. Concretelly, I want to use gtkmm.h, in /usr/include/gtkmm-2.4/gtkmm.h. If I include the file like: #include it works, but it start to ask for another headers. I want it to search in /usr/include for all dependencies. This is exactly the error I am getting when making the package: cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake .. [rosbuild] Building package prglade [rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake [rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake [rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_TOOLCHAIN_FILE -- Build files have been written to: /home/ruben/ROS_workspace/prglade/build cd build && make make[1]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build» make[2]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build» make[3]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build» make[3]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build» [ 0%] Built target rospack_genmsg_libexe make[3]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build» make[3]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build» [ 0%] Built target rosbuild_precompile make[3]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build» make[3]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build» make[3]: se ingresa al directorio «/home/ruben/ROS_workspace/prglade/build» [ 50%] Building CXX object CMakeFiles/main_node.dir/src/main_node.o In file included from /home/ruben/ROS_workspace/prglade/src/main_node.cpp:5:0: /home/ruben/ROS_workspace/prglade/src/viewer.h:5:19: error fatal: gtkmm.h: No existe el archivo o el directorio compilación terminada. make[3]: *** [CMakeFiles/main_node.dir/src/main_node.o] Error 1 make[3]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build» make[2]: *** [CMakeFiles/main_node.dir/all] Error 2 make[2]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build» make[1]: *** [all] Error 2 make[1]: se sale del directorio «/home/ruben/ROS_workspace/prglade/build» make: *** [all] Error 2 Thanks in advance

ROS C++ Custom header not found

$
0
0
Hi, I created a ROS package with one main cpp file and another my_class.cpp file + my_class.h with some simple cpp code. As long as I have all files in the src folder of the package, it works fine. As soon as I move the header file to another directory (for example my_package/include/my_package/my_class.h) and change the #include in main to the new path, the header file can't be found (`error: include/sendPgmMarker/my_class.h: No such file or directory`) when I try to compile. I tried it like in this post: [http://answers.ros.org/question/41873/ros-c-custom-class-compiler-and-linker/](http://answers.ros.org/question/41873/ros-c-custom-class-compiler-and-linker/) but it doesn't work for me. What changes do I have to make so the header can be found? Sure I could just let the header in the source folder, but I also want to add other external .h and .cpp files that are in other folders than my package.

Problem with twist message: unqualified-id before numeric constant

$
0
0
Hi folks! I'm having a bit of trouble assigning values to a Twist type message, my code below runs into an error: /home/parcon/ros_workspace/arl_ardrone/arl_ardrone_control/src/pid_to_point.cpp:183:22: error: expected unqualified-id before numeric constant /home/parcon/ros_workspace/arl_ardrone/arl_ardrone_control/src/pid_to_point.cpp:183:22: error: expected ‘;’ before numeric constant /home/parcon/ros_workspace/arl_ardrone/arl_ardrone_control/src/pid_to_point.cpp:184:22: error: expected unqualified-id before numeric constant /home/parcon/ros_workspace/arl_ardrone/arl_ardrone_control/src/pid_to_point.cpp:184:22: error: expected ‘;’ before numeric constant /home/parcon/ros_workspace/arl_ardrone/arl_ardrone_control/src/pid_to_point.cpp:185:22: error: expected unqualified-id before numeric constant /home/parcon/ros_workspace/arl_ardrone/arl_ardrone_control/src/pid_to_point.cpp:185:22: error: expected ‘;’ before numeric constant /home/parcon/ros_workspace/arl_ardrone/arl_ardrone_control/src/pid_to_point.cpp:186:23: error: expected unqualified-id before numeric constant /home/parcon/ros_workspace/arl_ardrone/arl_ardrone_control/src/pid_to_point.cpp:186:23: error: expected ‘;’ before numeric constant The error comes from the last few lines of the code where the Twist message values are assigned. I've looked at the types, the definition of Twist, with no success. Can anyone see where I'm going wrong? I expect to be able to assign a float to this value: twist_msg.linear.x Thanks for the help! /* * Copyright (c) 2012, Parker Conroy * ARLab @ University of Utah * All rights reserved. * * * * * * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #include "ros/ros.h" #include #include #include "tf/transform_listener.h" #include "geometry_msgs/TransformStamped.h" #include "ros/time.h" #include #define yaw 0 #define pitch 1 #define roll 2 #define thrust 3 #define x 0 #define y 1 #define z 2 #define t 3 // Variables!!! tf::Transformer transformer; tf::TransformListener tf_listener; tf::TransformBroadcaster br; tf::StampedTransform desired_pos; tf::StampedTransform ardrone; tf::StampedTransform trackee; tf::StampedTransform desired_in_ardrone_coords; ros::Publisher pub_twist; geometry_msgs::Twist twist_msg; //btQuaternion ardrone_yawed; double new_data[4]; double old_data[4]; double integration[4]; double derivative[4]; float controls[4]; float min_control[4]; float max_control[4]; double pid[4]; float min_pid; float max_pid; float map(float value, float in_min, float in_max, float out_min, float out_max) { return (float)((value - in_min) * (out_max - out_min) / (in_max - in_min) + out_min); } int main(int argc, char **argv) { int rate= 200; float inv_rate=1/rate; ros::init(argc, argv, "Tracker"); ros::NodeHandle n; ros::Rate r(200); //update @ 200hz memset(controls, 0, sizeof(int64_t)*4); memset(old_data, 0, sizeof(double)*4); memset(new_data, 0, sizeof(double)*4); memset(integration, 0, sizeof(double)*4); memset(derivative, 0, sizeof(double)*4); memset(pid, 0, sizeof(double)*4); //PID params min_control[yaw] =-1.0; min_control[roll] =-1.0; min_control[pitch]=-1.0; min_control[thrust]=-1.0; max_control[yaw]=1.0; max_control[roll]=1.0; max_control[pitch]=1.0; max_control[thrust]=1.0; min_pid =-5.0; max_pid =5.0; float K_p[] = {1, 1, 1}; float K_d[] = {0,0,0}; float K_i[] = {0,0,0}; while (ros::ok()) { try { //Get desired position transform tf_listener.waitForTransform("/optitrak", "/desired_position", ros::Time(0), ros::Duration(inv_rate)); tf_listener.lookupTransform("/optitrak", "/desired_position", ros::Time(0), desired_pos); // Get the quad rotor transform tf_listener.waitForTransform("/optitrak", "/ardrone", ros::Time(0), ros::Duration(inv_rate)); tf_listener.lookupTransform("/optitrak", "/ardrone", ros::Time(0), ardrone); // desired_position = trackee.getOrigin(); //vector of position (x,y,z) // btMatrix3x3(trackee.getRotation()).getRPY(roll, pitch, yaw); // vector of orientation (roll, pitch, yaw) // Isolate the yaw component /* double y1, p1, r1; btMatrix3x3(ardrone.getRotation()).getRPY(r1, p1, y1); ardrone_yawed(y1, 0.0, 0.0); ardrone.setRotation(ardrone_yawed); */ double y1, p1, r1; btMatrix3x3(ardrone.getRotation()).getRPY(r1, p1, y1); btQuaternion ardrone_yawed(y1, 0.0, 0.0); ardrone.setRotation(ardrone_yawed); //set up twist publisher pub_twist = n.advertise("/cmd_vel", 1); /* Message queue length is just 1 */ // Register the ardrone without roll and pitch with the transform system br.sendTransform( tf::StampedTransform(ardrone, ros::Time::now(), "/optitrak", "ardrone_wo_rp") ); // Get the vector between quad without roll and pitch and the desired point tf_listener.waitForTransform("/ardrone_wo_rp", "/desired", ros::Time(0), ros::Duration(inv_rate)); tf_listener.lookupTransform("/qardrone_wo_rp", "/desired", ros::Time(0), desired_in_ardrone_coords); // Extract the x, y, & z components /* diff = desired_in_ardrone_coords.getOrigin(); new_data[x] = diff.getX(); new_data[y] = diff.getY(); new_data[z] = diff.getZ(); */ new_data[x] = desired_in_ardrone_coords.getOrigin().getX(); new_data[y] = desired_in_ardrone_coords.getOrigin().getY(); new_data[z] = desired_in_ardrone_coords.getOrigin().getZ(); new_data[t] = (double)ros::Time::now().toSec(); ROS_DEBUG("Error: [x: %f y: %f z: %f]", new_data[x], new_data[y], new_data[z]); // Integrate the data double deltaT = (new_data[t] - old_data[t]); integration[x] += new_data[x] * deltaT; integration[y] += new_data[y] * deltaT; integration[z] += new_data[z] * deltaT; ROS_DEBUG("Integration: [deltaT: %f x: %f y: %f z: %f]", deltaT, integration[x], integration[y], integration[z]); derivative[x] = (new_data[x] - old_data[x])/deltaT; derivative[y] = (new_data[y] - old_data[y])/deltaT; derivative[z] = (new_data[z] - old_data[z])/deltaT; ROS_DEBUG("Derivative: [deltaT: %f x: %f y: %f z: %f]", deltaT, derivative[x], derivative[y], derivative[z]); // Calculate the PID values pid[x] = K_p[x] * new_data[x] + K_d[x] * derivative[x] + K_i[x] * integration[x]; pid[y] = K_p[y] * new_data[y] + K_d[y] * derivative[y] + K_i[y] * integration[y]; pid[z] = K_p[z] * new_data[z] + K_d[z] * derivative[z] + K_i[z] * integration[z]; ROS_DEBUG("PID: [x: %f y: %f z: %f]", pid[x], pid[y], pid[z]); memcpy(old_data, new_data, sizeof(double)*4); controls[yaw] = map(0.0, min_pid, max_pid, min_control[yaw], max_control[yaw]); controls[roll] = map(pid[x], min_pid, max_pid, min_control[roll], max_control[roll]); controls[pitch] = map(pid[y], min_pid, max_pid, min_control[pitch], max_control[pitch]); controls[thrust] = map(pid[z], min_pid, max_pid, min_control[thrust], max_control[thrust]); ROS_DEBUG("Controls: [yaw: %f roll: %f pitch: %f thrust: %f]", controls[yaw], controls[roll], controls[pitch], controls[thrust]); //change the ref frame to inverted x-y-z coords. by modifying the directional control twist_msg.linear.x=-control[roll]; twist_msg.linear.y=-control[pitch]; twist_msg.linear.z=-control[thrust]; twist_msg.angular.z=controls[yaw]; pub_twist.publish(twist_msg); } catch (...) { ROS_ERROR("Failed on Trackee TF");} }//while ros ok }//main

Compile two classes with same name

$
0
0
I'm trying to get rgbdslam to work with fuerte, which seems difficult from what I have culled from other posts. I am now encountering an error with compiling two classes that have the same name. I tried removing one but they both are required by other files. This is an excerpt of the error message I get after trying `rosmake rgbdslam` [ 41%] Building CXX object CMakeFiles/rgbdslam.dir/src/main.o In file included from /opt/ros/fuerte/include/g2o/core/hyper_dijkstra.h:34:0, from /home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/src/graph_manager.h:53, from /home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/src/openni_listener.h:30, from /home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/src/main.cpp:17: /opt/ros/fuerte/include/g2o/core/hyper_graph.h:59:22: error: redefinition of ‘class g2o::HyperGraph’ /home/linus/Fuerte/sandbox/g2o/include/g2o/core/hyper_graph.h:47:9: error: previous definition of ‘class g2o::HyperGraph’ make[3]: *** [CMakeFiles/rgbdslam.dir/src/main.o] Error 1 make[3]: Leaving directory `/home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/build' make[2]: *** [CMakeFiles/rgbdslam.dir/all] Error 2 make[2]: Leaving directory `/home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/linus/Fuerte/sandbox/rgbdslam_freiburg/rgbdslam/build' -------------------------------------------------------------------------------} [ rosmake ] Output from build of package rgbdslam written to: [ rosmake ] /home/linus/.ros/rosmake/rosmake_output-20121211-223719/rgbdslam/build_output.log [rosmake-2] Finished <<< rgbdslam [FAIL] [ 9.35 seconds ] [ rosmake ] Halting due to failure in package rgbdslam. [ rosmake ] Waiting for other threads to complete. [ rosmake ] Results: [ rosmake ] Built 32 packages with 1 failures. It appears that I am close, or at least 41% of the way, to getting the code to compile but I am unsure how to solve the 2-classes-1-name issue with my minimal C++ exposure. In addition, below is a portion of the hyper_graph.h file. The class declaration is near the end #ifndef G2O_AIS_HYPER_GRAPH_HH #define G2O_AIS_HYPER_GRAPH_HH #include #include #include #include #include #include #include #ifdef _MSC_VER #include #else #include #endif #include "g2o_core_api.h" /** @addtogroup graph */ //@{ namespace g2o { class G2O_CORE_API HyperGraph {

Problem Building camera_calibration_parsers - where is yaml-cpp/yaml.h?

$
0
0
Hi, Updated my version of ROS - and I'm getting a build error in camera_calibration_parsers. Anyone any idea where yaml.h is? as in the error message: ~/ros/image_common/camera_calibration_parsers/src/parse_yml.cpp:3:27: fatal error: yaml-cpp/yaml.h: No such file or directory compilation terminated. Most other packages are building without issue Many Thanks Mark

Problem building pcl_ros

$
0
0
Hi All, As part of freenect_stack it builds pcl_ros. I'm getting the compilation error below...any why this is a problem. I've downloaded PCL-1.6 source. Thanks Mark [ 40%] Building CXX object CMakeFiles/pcl_ros_tf.dir/src/pcl_ros/transforms.o In file included from /home/pi/ros/perception_pcl/pcl_ros/src/pcl_ros /transforms.cpp:39:0: /home/pi/PCL-1.6.0-Source/common/include/pcl/point_types.h:56:0: warning: ignoring #pragma warning [-Wunknown-pragmas] In file included from /home/pi/ros/perception_pcl/pcl_ros/src/pcl_ros/transforms.cpp:39:0: /home/pi/PCL-1.6.0-Source/common/include/pcl/point_types.h:590:0: warning: ignoring #pragma warning [-Wunknown-pragmas] In file included from /home/pi/ros/perception_pcl/pcl_ros/src/pcl_ros/transforms.cpp:40:0: /home/pi/ros/perception_pcl/pcl_ros/include/pcl_ros/transforms.h:41:41: fatal error: pcl/registration/transforms.h: No such file or directory compilation terminated. make[3]: *** [CMakeFiles/pcl_ros_tf.dir/src/pcl_ros/transforms.o] Error 1 make[3]: Leaving directory `/home/pi/ros/perception_pcl/pcl_ros/build' make[2]: *** [CMakeFiles/pcl_ros_tf.dir/all] Error 2 make[2]: Leaving directory `/home/pi/ros/perception_pcl/pcl_ros/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/pi/ros/perception_pcl/pcl_ros/build'

Compile error for dynamixel_controllers

$
0
0
Hello, I am trying to compile the dynamixel_controllers package in ROS Fuerte in Ubuntu. I get this compile error: Build failures with context: --------------------- dynamixel_controllers mkdir -p bin cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find rosbuild`/rostoolchain.cmake .. [rosbuild] Building package dynamixel_controllers [rosbuild] Including /opt/ros/fuerte/share/rospy/rosbuild/rospy.cmake [rosbuild] Including /opt/ros/fuerte/share/roscpp/rosbuild/roscpp.cmake [rosbuild] Including /opt/ros/fuerte/share/roslisp/rosbuild/roslisp.cmake -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_TOOLCHAIN_FILE -- Build files have been written to: /home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build cd build && make -j2 -l2 make[1]: Entering directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[2]: Entering directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[3]: Entering directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[3]: Leaving directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' [ 0%] Built target rosbuild_premsgsrvgen make[3]: Entering directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[3]: Entering directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[3]: Leaving directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[3]: Leaving directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[3]: Entering directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[3]: Entering directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' [ 7%] [ 7%] Generating ../src/dynamixel_controllers/srv/_StopController.py Generating ../srv_gen/lisp/RestartController.lisp, ../srv_gen/lisp/_package.lisp, ../srv_gen/lisp/_package_RestartController.lisp Traceback (most recent call last): File "/opt/ros/fuerte/share/rospy/rosbuild/scripts/genutil.py", line 131, in genmain retcode = generate_messages(rospack, package, msg_file, subdir) File "/opt/ros/fuerte/share/rospy/rosbuild/scripts/genutil.py", line 90, in generate_messages for d in rospack.get_depends(package): File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 201, in get_depends s.update(self.get_depends(p, implicit)) File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 201, in get_depends s.update(self.get_depends(p, implicit)) File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 195, in get_depends names = [p.name for p in self.get_manifest(name).depends] File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 133, in get_manifest return self._load_manifest(name) File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 172, in _load_manifest retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name) File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 164, in get_path raise ResourceNotFound(name, ros_paths=self._ros_paths) ResourceNotFound: genpy ROS path [0]=/opt/ros/fuerte/share/ros ROS path [1]=/home/cd/fuerte_workspace/actionlib ROS path [2]=/home/cd/fuerte_workspace/common_msgs ROS path [3]=/home/cd/fuerte_workspace/ros_comm ROS path [4]=/home/cd/fuerte_workspace/dynamixel_motor ROS path [5]=/home/cd/fuerte_workspace/laser_lms ROS path [6]=/home/cd/fuerte_workspace/laser_driver ROS path [7]=/home/cd/fuerte_workspace/turtlesim ROS path [8]=/home/cd/fuerte_workspace/taurob/ROS_Demo_Frontend ROS path [9]=/home/cd/fuerte_workspace/taurob/ROS_Demo_Sources ROS path [10]=/home/cd/fuerte_workspace/sandbox ROS path [11]=/home/cd/fuerte_workspace/turtlebot ROS path [12]=/opt/ros/fuerte/stacks ROS path [13]=/opt/ros/fuerte/share ROS path [14]=/opt/ros/fuerte/share/ros ROS path [15]=/opt/ros/fuerte/share ROS path [16]=/opt/ros/fuerte/stacks ERROR: genpy ROS path [0]=/opt/ros/fuerte/share/ros ROS path [1]=/home/cd/fuerte_workspace/actionlib ROS path [2]=/home/cd/fuerte_workspace/common_msgs ROS path [3]=/home/cd/fuerte_workspace/ros_comm ROS path [4]=/home/cd/fuerte_workspace/dynamixel_motor ROS path [5]=/home/cd/fuerte_workspace/laser_lms ROS path [6]=/home/cd/fuerte_workspace/laser_driver ROS path [7]=/home/cd/fuerte_workspace/turtlesim ROS path [8]=/home/cd/fuerte_workspace/taurob/ROS_Demo_Frontend ROS path [9]=/home/cd/fuerte_workspace/taurob/ROS_Demo_Sources ROS path [10]=/home/cd/fuerte_workspace/sandbox ROS path [11]=/home/cd/fuerte_workspace/turtlebot ROS path [12]=/opt/ros/fuerte/stacks ROS path [13]=/opt/ros/fuerte/share ROS path [14]=/opt/ros/fuerte/share/ros ROS path [15]=/opt/ros/fuerte/share ROS path [16]=/opt/ros/fuerte/stacks make[3]: *** [../src/dynamixel_controllers/srv/_StopController.py] Error 3 make[3]: Leaving directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[2]: *** [CMakeFiles/ROSBUILD_gensrv_py.dir/all] Error 2 make[2]: *** Waiting for unfinished jobs.... [ 10%] Generating ../srv_gen/lisp/StartController.lisp, ../srv_gen/lisp/_package.lisp, ../srv_gen/lisp/_package_StartController.lisp Traceback (most recent call last): File "/opt/ros/fuerte/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 873, in generate_srv(sys.argv[1]) File "/opt/ros/fuerte/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 822, in generate_srv write_srv_component(s, spec.request, spec) File "/opt/ros/fuerte/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 697, in write_srv_component write_md5sum(s, spec, parent) File "/opt/ros/fuerte/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 596, in write_md5sum compute_files=False) File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/gentools.py", line 314, in get_dependencies _add_msgs_depends(rospack, spec.response, deps, package) File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/gentools.py", line 75, in _add_msgs_depends valid_packages = valid_packages + rospack.get_depends(package_context, implicit=True) TypeError: can only concatenate list (not "set") to list make[3]: *** [../srv_gen/lisp/RestartController.lisp] Error 1 make[3]: *** Waiting for unfinished jobs.... Traceback (most recent call last): File "/opt/ros/fuerte/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 873, in generate_srv(sys.argv[1]) File "/opt/ros/fuerte/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 822, in generate_srv write_srv_component(s, spec.request, spec) File "/opt/ros/fuerte/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 697, in write_srv_component write_md5sum(s, spec, parent) File "/opt/ros/fuerte/share/roslisp/rosbuild/scripts/genmsg_lisp.py", line 596, in write_md5sum compute_files=False) File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/gentools.py", line 314, in get_dependencies _add_msgs_depends(rospack, spec.response, deps, package) File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/gentools.py", line 75, in _add_msgs_depends valid_packages = valid_packages + rospack.get_depends(package_context, implicit=True) TypeError: can only concatenate list (not "set") to list make[3]: *** [../srv_gen/lisp/StartController.lisp] Error 1 make[3]: Leaving directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[2]: *** [CMakeFiles/ROSBUILD_gensrv_lisp.dir/all] Error 2 make[2]: Leaving directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/cd/fuerte_workspace/dynamixel_motor/dynamixel_controllers/build' make: *** [all] Error 2 Any idea how to resolve this? BR

compiling pr2_build_map_gazebo_demo on debian

$
0
0
The compilation stops on debian/amd64 because the package `pr2_mechanism_model` requests the file `hardware_interface/hardware_interface.h`. Where is this file ?

ar_pose/ARMarkers.h not found

$
0
0
Hi, i am trying to include the ar_pose/ARMarkers.h header in a ROS node with #include I added *artoolkit* and *ar_pose* to the dependencies in the manifest file. But when making my package, it says "ar_pose/ARMarkers.h : No such file or directory" *rospack find artoolkit* and *rospack find ar_pose* successfully bring up the path to these packages I am using fuerte and installed the ar toolkit through ccny_vision first the ARMarker(s).h is located at *ccny_vision/ar_pose/msg_gen/cpp/include/ar_pose*. I copied the files to */ccny_vision/ar_pose/include/ar_pose* but nothing helped. update: The files using AR Toolkit should be in the correct path, i got some other includes (pcl and ros) that work. AR and my package are in an extra path i added in my /home/user space because i have to work without superuser rights. The path is included in the ROS_PACKAGE_PATH. What makes me wonder is, that the packages can be located with ROS but when compiling it fails... update: I downloaded the bag files today to test if the package itself works correct. The demo_mutli and demo_single do work properly Also tried now with the newer ar_toolkti package from IHeartEngineering, getting the same error when including manifest.xml obstacle_detectionmeBSD link deleted, insufficient karma code #include #include void processing (const ar_pose::ARMarkers::ConstPtr& msg){ ar_pose::ARMarker ar_pose_marker; for(i=0;i<=msg->markers.size();i++){ ar_pose_marker = msg->markers.at(i); std::cout<<"x " << ar_pose_marker.pose.pose.position.x<

catkin_make only working with -j1 option, giving compile error otherwise?

$
0
0
We are working with a pretty large catkin project that compiled just fine for months. Without code changes, we started seeing compile errors after some groovy updates and building from scratch, looking like: [ 2%] Building CXX object flor_common/flor_interactive_marker_server_custom/CMakeFiles/flor_interactive_marker_server_custom.dir/src/interactive_marker_server_custom.cpp.o In file included from /home/kohlbrecher/flor_repo/catkin_ws/src/flor_common/flor_interactive_marker_server_custom/src/interactive_marker_server_custom.cpp:68:0: /home/kohlbrecher/flor_repo/catkin_ws/src/flor_common/flor_interactive_marker_server_custom/include/flor_interactive_marker_server_custom/interactive_marker_server_custom.h:80:45: fatal error: flor_ocs_msgs/OCSTemplateUpdate.h: No such file or directory compilation terminated. make[2]: *** [flor_common/flor_interactive_marker_server_custom/CMakeFiles/flor_interactive_marker_server_custom.dir/src/interactive_marker_server_custom.cpp.o] Error 1 make[1]: *** [flor_common/flor_interactive_marker_server_custom/CMakeFiles/flor_interactive_marker_server_custom.dir/all] Error 2 make: *** [all] Error 2 make: INTERNAL: Exiting with 3 jobserver tokens available; should be 2! Invoking "make" failed Noticing that the actual error messages changed when executing "catkin_make" multiple times, I figured there might be some issue with parallel jobs and different timings leading to different errors. Sure enough, when running "catkin_make -j1", the project compiles. Any ideas if there's something on our side making this error appear, or if this is a catkin bug?

CMake Errors whilst building Catkin (Raspbian)

$
0
0
Hey everyone Really sorry if this is something silly or small I've gotten wrong, or if it's something that has been answered somewhere else on here. I am having issues getting through compiling on my raspberry pi. Below I have the last few lines that seem relevant before it stopped running. I also need to point out that I'm new to this. Am studying robotics at university and have followed the ROS Platform forever but only recently started trying to learn how to use it. -- Using CATKIN_TEST_RESULTS_DIR: /home/pi/build_isolated/orocos_kdl/test_results -- catkin 0.5.65 -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") -- checking for module 'eigen3' -- package 'eigen3' not found CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find Eigen (missing: EIGEN_INCLUDE_DIR) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) /opt/ros/groovy/share/eigen/cmake/eigen-config.cmake:31 (find_package_handle_standard_args) CMakeLists.txt:7 (find_package) -- Configuring incomplete, errors occurred! Traceback (most recent call last): File "./src/catkin/bin/../python/catkin/builder.py", line 658, in build_workspace_isolated number=index + 1, of=len(ordered_packages) File "./src/catkin/bin/../python/catkin/builder.py", line 443, in build_package install, jobs, force_cmake, quiet, last_env, cmake_args, make_args File "./src/catkin/bin/../python/catkin/builder.py", line 278, in build_catkin_package os.remove(makefile) OSError: [Errno 2] No such file or directory: '/home/pi/build_isolated/orocos_kdl/Makefile' <== Failed to process package 'orocos_kdl': [Errno 2] No such file or directory: '/home/pi/build_isolated/orocos_kdl/Makefile' Command failed, exiting. Again, really sorry if this is something silly or small I've gotten wrong. Thank you in advance for any help you can give!
Viewing all 46 articles
Browse latest View live


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