ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Ruud's profile - activity

2021-06-16 06:40:10 -0500 received badge  Great Question (source)
2020-10-04 06:43:50 -0500 received badge  Good Answer (source)
2019-11-08 09:53:12 -0500 received badge  Famous Question (source)
2019-07-05 14:35:05 -0500 received badge  Taxonomist
2018-01-30 23:01:50 -0500 marked best answer OpenCV2 under Groovy not compiling

Hi all,

I am trying to fix a compiling problem for a week now, without success. :(

Basically I am implementing this tutorial: http://wiki.ros.org/image_transport/T...

However, when I compile, I get the following errors:

In file included from /opt/ros/groovy/include/opencv2/opencv.hpp:47:0,
                 from /home/ruud/Dropbox/ros/catkin_workspace/src/test_package/include/node.h:14,
                 from /home/ruud/Dropbox/ros/catkin_workspace/src/test_package/src/node.cpp:1:
/opt/ros/groovy/include/opencv2/core/core.hpp:4126:9: error: expected identifier before ‘int’
/opt/ros/groovy/include/opencv2/core/core.hpp:4126:9: error: expected ‘}’ before ‘int’
/opt/ros/groovy/include/opencv2/core/core.hpp:4126:12: error: expected unqualified-id before ‘=’ token
/opt/ros/groovy/include/opencv2/core/core.hpp:4141:22: error: expected unqualified-id before ‘)’ token
/opt/ros/groovy/include/opencv2/core/core.hpp:4143:14: error: expected unqualified-id before ‘const’
/opt/ros/groovy/include/opencv2/core/core.hpp:4143:14: error: expected ‘)’ before ‘const’ ....

In the CMakeLists.txt I have added the following according to the tutorial:

find_package(OpenCV)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(node ${OpenCV_LIBRARIES})

In the package.xml I have added:

  <build_depend>cv_bridge</build_depend>
  <build_depend>image_transport</build_depend>
  <run_depend>cv_bridge</run_depend>
  <run_depend>image_transport</run_depend>

On the website here ( http://wiki.ros.org/opencv2 ) I read OpenCV is deprecated under groovy and you need to install it as a third party library? However, why are there OpenCV packages installed under /opt/ros/groovy/include/opencv and /opt/ros/groovy/include/opencv2.

Very confusing! :)

Thanks, Ruud

2017-12-10 18:14:02 -0500 received badge  Nice Answer (source)
2017-12-04 13:45:31 -0500 received badge  Good Question (source)
2017-08-10 17:02:15 -0500 marked best answer Compilation error whilst no coding errors

Hi everyone,

The strangest thing is happening; a weird compilation behaviour under Catkin Groovy, Ubuntu 12.04. Whilst running catkin_make, sometimes it will result in the following error although the code compiled just fine in a previous compilation. No code was altered in the meantime. Furthermore, the issue is temporarily 'solved' when I throw away the /build and /devel folders in my catkin workspace. Adding a CATKIN_IGNORE file in the presumed package of error does not help, as the error will then pop up for the next package. I wonder what causes the strange behaviour, it is quite inconvenient.

user@computer:~/Dropbox/ros/catkin_workspace$ catkin_make
Base path: /home/user/Dropbox/ros/catkin_workspace
Source space: /home/user/Dropbox/ros/catkin_workspace/src
Build space: /home/user/Dropbox/ros/catkin_workspace/build
Devel space: /home/user/Dropbox/ros/catkin_workspace/devel
Install space: /home/user/Dropbox/ros/catkin_workspace/install
####
#### Running command: "make cmake_check_build_system" in "/home/user/Dropbox/ros/catkin_workspace/build"
####
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Using CATKIN_DEVEL_PREFIX: /home/user/Dropbox/ros/catkin_workspace/devel
-- Using CMAKE_PREFIX_PATH: /home/user/Dropbox/ros/catkin_workspace/devel;/opt/ros/groovy
-- This workspace overlays: /home/user/Dropbox/ros/catkin_workspace/devel;/opt/ros/groovy
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/user/Dropbox/ros/catkin_workspace/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.89
-- BUILD_SHARED_LIBS is on
WARNING: Package "libg2o" does not follow the version conventions. It should not contain leading zeros (unless the number is 0).
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 5 packages in topological order:
-- ~~  - halcon
-- ~~  - slam
-- ~~  - servo_nodes
-- ~~  - baxter
-- ~~  - servo_state_machine
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'halcon'
-- ==> add_subdirectory(halcon)
CMake Error at /opt/ros/groovy/share/roscpp/cmake/roscppConfig.cmake:141 (message):
  Project 'halcon' tried to find library 'pthread'.  The library is neither a
  target nor built/installed properly.  Did you compile project 'roscpp'? Did
  you find_package() it before the subdirectory containing its code is
  included?
Call Stack (most recent call first):
  /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:75 (find_package)
  halcon/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
2017-07-28 04:00:01 -0500 received badge  Great Question (source)
2017-03-28 23:42:47 -0500 received badge  Good Question (source)
2017-03-27 19:45:40 -0500 received badge  Nice Question (source)
2016-07-12 09:21:17 -0500 marked best answer Get Const::PTR from message

Hi all,

For a specific function that is not a callback, I require a const sensor_msgs::ImageConstPtr& image_pointer to work with that is derived from a regular sensor_msgs::Image source_image that I already have.

How would one get such a constant image pointer from a regular message?

Thanks! Ruud

2016-07-12 09:21:15 -0500 received badge  Nice Question (source)
2016-05-04 17:32:05 -0500 received badge  Famous Question (source)
2016-05-04 17:32:05 -0500 received badge  Notable Question (source)
2016-02-24 15:48:48 -0500 received badge  Famous Question (source)
2015-12-15 07:01:36 -0500 received badge  Famous Question (source)
2015-11-29 00:24:17 -0500 received badge  Famous Question (source)
2015-11-29 00:24:17 -0500 received badge  Popular Question (source)
2015-11-29 00:24:17 -0500 received badge  Notable Question (source)
2015-11-23 09:19:46 -0500 received badge  Notable Question (source)
2015-11-23 09:19:46 -0500 received badge  Famous Question (source)
2015-11-21 01:02:10 -0500 received badge  Notable Question (source)
2015-11-08 21:00:05 -0500 received badge  Popular Question (source)
2015-11-08 09:40:11 -0500 commented answer catkin_make failure due to Python Anaconda

Awesome, that works! Good to know that CMake caches like that.

2015-11-07 04:03:50 -0500 commented answer catkin_make failure due to Python Anaconda

Hi William,

Which build folder are you referring too, the Anaconda build folder?

If I do so, wouldn't it imply that I cannot use the Anaconda when I switch back?

I also need the Anaconda setup for another application, and recompiling and switching the whole time would not be optimal!

Thanks! Ruu

2015-11-06 09:57:31 -0500 asked a question catkin_make failure due to Python Anaconda

Hi all,

I have been cracking my head over this one. Recently I installed Anaconda Python for a different project. Today I tried installing ROS indigo on my 14.04 Ubuntu. When I do a catkin_make, it cannot find catkin_pkg:

-- Using PYTHON_EXECUTABLE: /home/ruud/anaconda/bin/python
-- Using Debian Python package layout
-- Using Python nosetests: /usr/bin/nosetests-2.7
ImportError: "from catkin_pkg.package import parse_package" failed: No module named catkin_pkg.package
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
CMake Error at /opt/ros/indigo/share/catkin/cmake/safe_execute_process.cmake:11 (message):

But it is installed under the python distribution that came with ubuntu:

ruud@computer:~$ dpkg -L python-catkin-pkg
/usr/lib/python2.7/dist-packages/catkin_pkg

When I check which version of pyhon is being used I get:

ruud@computer:~$ python --version
Python 2.7.10 :: Anaconda 2.3.0 (64-bit)

And when I turn off Anaconda python in the .bashrc I get:

ruud@computer:~/sweeper/trunk$ python --version
Python 2.7.6

But running catkin_make in that case results in the same error above. Catkin keeps using:

  -- Using PYTHON_EXECUTABLE: /home/ruud/anaconda/bin/python

Please help!

Ruud

2015-07-29 02:22:44 -0500 received badge  Notable Question (source)
2015-07-10 01:25:47 -0500 received badge  Popular Question (source)
2015-07-09 03:24:16 -0500 commented question ImportError: No module named wx

@gvdhoorn, thank you for your input. Currently I get a different compilation error, I will remove my question until I can provide a clear overview of what is going on.

2015-07-07 08:34:58 -0500 commented question ImportError: No module named wx

Of course! It cannot find the module.

Python 2.7.10 |Anaconda 2.2.0 (64-bit)| (default, May 28 2015, 17:02:03) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2

import wx Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named wx

2015-07-07 08:32:58 -0500 edited question ImportError: No module named wx

Hi all,

When launching the node "joint_state_publisher" , I get the following error:

Traceback (most recent call last): File "/opt/ros/indigo/lib/joint_state_publisher/joint_state_publisher", line 5, in <module>import wx ImportError: No module named wx

I had a similar problem not long ago with a different module: see my question here

I think it has something to do with my python installation, however I have no idea how to check if this is installed correctly.

Best, Ruud