Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using catkin_make on ubuntu 14 + ros indigo #748

Closed
Deastan opened this issue Apr 29, 2019 · 8 comments
Closed

Error using catkin_make on ubuntu 14 + ros indigo #748

Deastan opened this issue Apr 29, 2019 · 8 comments

Comments

@Deastan
Copy link

Deastan commented Apr 29, 2019

Hello every one,

I worked on Ubunutu 14.04 with ROS indigo. The camera is the realsense d435.
Python version is 3.6.8, gcc 5.5.
Following the answer of this discussion: IntelRealSense/librealsense#1030, I supposed that everything should work on ubuntu 14 with ros indigo.

Do, I follow: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
which mean compiling from source for ubuntu 14. The output is:

Install the project... -- Install configuration: "" -- Installing: /usr/local/lib/librealsense2.so.2.21.0 -- Installing: /usr/local/lib/librealsense2.so.2.21 -- Installing: /usr/local/lib/librealsense2.so -- Up-to-date: /usr/local/include/librealsense2 -- Installing: /usr/local/include/librealsense2/rs_advanced_mode.hpp -- Installing: /usr/local/include/librealsense2/rsutil.h -- Installing: /usr/local/include/librealsense2/rs.h -- Installing: /usr/local/include/librealsense2/rs.hpp -- Installing: /usr/local/include/librealsense2/rs_advanced_mode.h -- Up-to-date: /usr/local/include/librealsense2/hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_processing.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_internal.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_sensor.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_device.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_context.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_options.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_pipeline.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_frame.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_record_playback.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_export.hpp -- Installing: /usr/local/include/librealsense2/hpp/rs_types.hpp -- Up-to-date: /usr/local/include/librealsense2/h -- Installing: /usr/local/include/librealsense2/h/rs_advanced_mode_command.h -- Installing: /usr/local/include/librealsense2/h/rs_types.h -- Installing: /usr/local/include/librealsense2/h/rs_device.h -- Installing: /usr/local/include/librealsense2/h/rs_option.h -- Installing: /usr/local/include/librealsense2/h/rs_processing.h -- Installing: /usr/local/include/librealsense2/h/rs_pipeline.h -- Installing: /usr/local/include/librealsense2/h/rs_config.h -- Installing: /usr/local/include/librealsense2/h/rs_record_playback.h -- Installing: /usr/local/include/librealsense2/h/rs_sensor.h -- Installing: /usr/local/include/librealsense2/h/rs_internal.h -- Installing: /usr/local/include/librealsense2/h/rs_context.h -- Installing: /usr/local/include/librealsense2/h/rs_frame.h -- Installing: /usr/local/lib/cmake/realsense2/realsense2Targets.cmake -- Installing: /usr/local/lib/cmake/realsense2/realsense2Targets-noconfig.cmake -- Installing: /usr/local/lib/cmake/realsense2/realsense2Config.cmake -- Installing: /usr/local/lib/cmake/realsense2/realsense2ConfigVersion.cmake -- Installing: /usr/local/lib/pkgconfig/realsense2.pc -- Installing: /usr/local/lib/librealsense-file.a -- Installing: /usr/local/bin/rs-hello-realsense -- Set runtime path of "/usr/local/bin/rs-hello-realsense" to "" -- Installing: /usr/local/bin/rs-software-device -- Set runtime path of "/usr/local/bin/rs-software-device" to "" -- Installing: /usr/local/bin/rs-capture -- Set runtime path of "/usr/local/bin/rs-capture" to "" -- Installing: /usr/local/bin/rs-callback -- Set runtime path of "/usr/local/bin/rs-callback" to "" -- Installing: /usr/local/bin/rs-save-to-disk -- Set runtime path of "/usr/local/bin/rs-save-to-disk" to "" -- Installing: /usr/local/bin/rs-multicam -- Set runtime path of "/usr/local/bin/rs-multicam" to "" -- Installing: /usr/local/bin/rs-pointcloud -- Set runtime path of "/usr/local/bin/rs-pointcloud" to "" -- Installing: /usr/local/bin/rs-align -- Set runtime path of "/usr/local/bin/rs-align" to "" -- Installing: /usr/local/bin/rs-align-advanced -- Set runtime path of "/usr/local/bin/rs-align-advanced" to "" -- Installing: /usr/local/bin/rs-sensor-control -- Set runtime path of "/usr/local/bin/rs-sensor-control" to "" -- Installing: /usr/local/bin/rs-measure -- Set runtime path of "/usr/local/bin/rs-measure" to "" -- Installing: /usr/local/bin/rs-depth -- Set runtime path of "/usr/local/bin/rs-depth" to "" -- Installing: /usr/local/bin/rs-color -- Set runtime path of "/usr/local/bin/rs-color" to "" -- Installing: /usr/local/bin/rs-distance -- Set runtime path of "/usr/local/bin/rs-distance" to "" -- Installing: /usr/local/bin/rs-post-processing -- Set runtime path of "/usr/local/bin/rs-post-processing" to "" -- Installing: /usr/local/bin/rs-record-playback -- Set runtime path of "/usr/local/bin/rs-record-playback" to "" -- Installing: /usr/local/bin/rs-motion -- Set runtime path of "/usr/local/bin/rs-motion" to "" -- Installing: /usr/local/bin/rs-pose -- Set runtime path of "/usr/local/bin/rs-pose" to "" -- Installing: /usr/local/bin/rs-pose-predict -- Set runtime path of "/usr/local/bin/rs-pose-predict" to "" -- Installing: /usr/local/bin/rs-pose-and-image -- Set runtime path of "/usr/local/bin/rs-pose-and-image" to "" -- Installing: /usr/local/bin/rs-trajectory -- Set runtime path of "/usr/local/bin/rs-trajectory" to "" -- Installing: /usr/local/bin/rs-ar-basic -- Set runtime path of "/usr/local/bin/rs-ar-basic" to "" -- Installing: /usr/local/bin/rs-terminal -- Set runtime path of "/usr/local/bin/rs-terminal" to "" -- Installing: /usr/local/bin/rs-fw-logger -- Set runtime path of "/usr/local/bin/rs-fw-logger" to "" -- Installing: /usr/local/bin/rs-enumerate-devices -- Set runtime path of "/usr/local/bin/rs-enumerate-devices" to "" -- Installing: /usr/local/bin/realsense-viewer -- Set runtime path of "/usr/local/bin/realsense-viewer" to "" -- Installing: /usr/local/bin/rs-data-collect -- Set runtime path of "/usr/local/bin/rs-data-collect" to "" -- Installing: /usr/local/bin/rs-depth-quality -- Set runtime path of "/usr/local/bin/rs-depth-quality" to "" -- Installing: /usr/local/bin/rs-rosbag-inspector -- Set runtime path of "/usr/local/bin/rs-rosbag-inspector" to "" -- Installing: /usr/local/bin/rs-convert -- Set runtime path of "/usr/local/bin/rs-convert" to "" -- Installing: /usr/local/lib/libfw.a -- Installing: /usr/local/lib/libtm.a

I have also follow this link:
https://github.com/intel-ros/realsense/tree/development

`roboticlab14@roboticlab14:~/catkin_ws_camera$ catkin_make
Base path: /home/roboticlab14/catkin_ws_camera
Source space: /home/roboticlab14/catkin_ws_camera/src
Build space: /home/roboticlab14/catkin_ws_camera/build
Devel space: /home/roboticlab14/catkin_ws_camera/devel
Install space: /home/roboticlab14/catkin_ws_camera/install

Running command: "cmake /home/roboticlab14/catkin_ws_camera/src -DCATKIN_DEVEL_PREFIX=/home/roboticlab14/catkin_ws_camera/devel -DCMAKE_INSTALL_PREFIX=/home/roboticlab14/catkin_ws_camera/install -G Unix Makefiles" in "/home/roboticlab14/catkin_ws_camera/build"

-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.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
-- Using CATKIN_DEVEL_PREFIX: /home/roboticlab14/catkin_ws_camera/devel
-- Using CMAKE_PREFIX_PATH: /home/roboticlab14/catkin_ws_camera/devel;/home/roboticlab14/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/roboticlab14/catkin_ws_camera/devel;/home/roboticlab14/catkin_ws/devel;/opt/ros/indigo
-- Found PythonInterp: /usr/bin/python (found version "2.7.6")
-- 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/roboticlab14/catkin_ws_camera/build/test_results
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not 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 sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.6.19
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 2 packages in topological order:
-- ~~ - ddynamic_reconfigure
-- ~~ - realsense2_camera
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'ddynamic_reconfigure'
-- ==> add_subdirectory(realsense/ddynamic_reconfigure)
-- Using these message generators: gencpp;genlisp;genpy
-- ddynamic_reconfigure: 0 messages, 1 services
-- +++ processing catkin package: 'realsense2_camera'
-- ==> add_subdirectory(realsense/realsense2_camera)
-- Using these message generators: gencpp;genlisp;genpy
-- Create Debug Build.
-- realsense2_camera: 2 messages, 0 services
-- Configuring done
-- Generating done
-- Build files have been written to: /home/roboticlab14/catkin_ws_camera/build

Running command: "make -j8 -l8" in "/home/roboticlab14/catkin_ws_camera/build"

Scanning dependencies of target _ddynamic_reconfigure_generate_messages_check_deps_TutorialParams
Scanning dependencies of target std_msgs_generate_messages_lisp
Scanning dependencies of target ddynamic_reconfigure
Scanning dependencies of target sensor_msgs_generate_messages_lisp
Scanning dependencies of target std_msgs_generate_messages_py
Scanning dependencies of target std_msgs_generate_messages_cpp
Scanning dependencies of target rosgraph_msgs_generate_messages_py
Scanning dependencies of target roscpp_generate_messages_py
[ 0%] Built target sensor_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target std_msgs_generate_messages_lisp
[ 0%] Built target std_msgs_generate_messages_cpp
[ 0%] Built target roscpp_generate_messages_py
Scanning dependencies of target rosgraph_msgs_generate_messages_lisp
Scanning dependencies of target dynamic_reconfigure_generate_messages_lisp
Scanning dependencies of target roscpp_generate_messages_cpp
Scanning dependencies of target dynamic_reconfigure_generate_messages_py
[ 0%] Built target rosgraph_msgs_generate_messages_lisp
[ 0%] Built target dynamic_reconfigure_generate_messages_lisp
[ 4%] Building CXX object realsense/ddynamic_reconfigure/CMakeFiles/ddynamic_reconfigure.dir/src/ddynamic_reconfigure.cpp.o
[ 4%] Built target roscpp_generate_messages_cpp
[ 4%] Built target dynamic_reconfigure_generate_messages_py
[ 8%] Building CXX object realsense/ddynamic_reconfigure/CMakeFiles/ddynamic_reconfigure.dir/src/param/dd_int_param.cpp.o
Scanning dependencies of target rosgraph_msgs_generate_messages_cpp
Scanning dependencies of target dynamic_reconfigure_generate_messages_cpp
[ 12%] Building CXX object realsense/ddynamic_reconfigure/CMakeFiles/ddynamic_reconfigure.dir/src/param/dd_double_param.cpp.o
[ 12%] Built target rosgraph_msgs_generate_messages_cpp
[ 12%] Built target dynamic_reconfigure_generate_messages_cpp
[ 16%] Building CXX object realsense/ddynamic_reconfigure/CMakeFiles/ddynamic_reconfigure.dir/src/param/dd_bool_param.cpp.o
[ 20%] Building CXX object realsense/ddynamic_reconfigure/CMakeFiles/ddynamic_reconfigure.dir/src/param/dd_string_param.cpp.o
Scanning dependencies of target roscpp_generate_messages_lisp
[ 20%] Built target rosgraph_msgs_generate_messages_py
[ 20%] Built target roscpp_generate_messages_lisp
[ 24%] Building CXX object realsense/ddynamic_reconfigure/CMakeFiles/ddynamic_reconfigure.dir/src/param/dd_enum_param.cpp.o
[ 24%] Built target _ddynamic_reconfigure_generate_messages_check_deps_TutorialParams
Scanning dependencies of target nodelet_generate_messages_py
[ 24%] Built target nodelet_generate_messages_py
Scanning dependencies of target nodelet_generate_messages_lisp
[ 24%] Built target nodelet_generate_messages_lisp
Scanning dependencies of target dynamic_reconfigure_gencfg
Scanning dependencies of target sensor_msgs_generate_messages_cpp
[ 24%] Built target dynamic_reconfigure_gencfg
[ 24%] Built target sensor_msgs_generate_messages_cpp
Scanning dependencies of target tf_generate_messages_cpp
[ 24%] Built target tf_generate_messages_cpp
Scanning dependencies of target actionlib_msgs_generate_messages_py
[ 24%] Built target actionlib_msgs_generate_messages_py
Scanning dependencies of target bond_generate_messages_lisp
[ 24%] Built target bond_generate_messages_lisp
Scanning dependencies of target geometry_msgs_generate_messages_py
[ 28%] Building CXX object realsense/ddynamic_reconfigure/CMakeFiles/ddynamic_reconfigure.dir/src/dd_param.cpp.o
[ 28%] Built target geometry_msgs_generate_messages_py
Scanning dependencies of target _catkin_empty_exported_target
[ 28%] Built target _catkin_empty_exported_target
Scanning dependencies of target actionlib_msgs_generate_messages_lisp
[ 28%] Built target actionlib_msgs_generate_messages_lisp
Scanning dependencies of target diagnostic_msgs_generate_messages_cpp
[ 28%] Built target diagnostic_msgs_generate_messages_cpp
Scanning dependencies of target nav_msgs_generate_messages_lisp
[ 28%] Built target nav_msgs_generate_messages_lisp
Scanning dependencies of target tf_generate_messages_lisp
[ 28%] Built target tf_generate_messages_lisp
Scanning dependencies of target actionlib_msgs_generate_messages_cpp
[ 28%] Built target actionlib_msgs_generate_messages_cpp
Scanning dependencies of target _realsense2_camera_generate_messages_check_deps_IMUInfo
[ 28%] Built target _realsense2_camera_generate_messages_check_deps_IMUInfo
Scanning dependencies of target _realsense2_camera_generate_messages_check_deps_Extrinsics
[ 28%] Built target _realsense2_camera_generate_messages_check_deps_Extrinsics
Scanning dependencies of target nav_msgs_generate_messages_py
[ 28%] Built target nav_msgs_generate_messages_py
Scanning dependencies of target bond_generate_messages_cpp
[ 28%] Built target bond_generate_messages_cpp
Scanning dependencies of target nav_msgs_generate_messages_cpp
[ 28%] Built target nav_msgs_generate_messages_cpp
Scanning dependencies of target geometry_msgs_generate_messages_lisp
[ 28%] Built target geometry_msgs_generate_messages_lisp
Scanning dependencies of target geometry_msgs_generate_messages_cpp
[ 28%] Built target geometry_msgs_generate_messages_cpp
Scanning dependencies of target diagnostic_msgs_generate_messages_py
[ 28%] Built target diagnostic_msgs_generate_messages_py
Scanning dependencies of target sensor_msgs_generate_messages_py
[ 28%] Built target sensor_msgs_generate_messages_py
Scanning dependencies of target tf_generate_messages_py
[ 28%] Built target tf_generate_messages_py
Scanning dependencies of target actionlib_generate_messages_cpp
[ 28%] Built target actionlib_generate_messages_cpp
Scanning dependencies of target nodelet_generate_messages_cpp
[ 28%] Built target nodelet_generate_messages_cpp
Scanning dependencies of target bond_generate_messages_py
[ 28%] Built target bond_generate_messages_py
Scanning dependencies of target actionlib_generate_messages_lisp
[ 28%] Built target actionlib_generate_messages_lisp
Scanning dependencies of target actionlib_generate_messages_py
[ 28%] Built target actionlib_generate_messages_py
Scanning dependencies of target tf2_msgs_generate_messages_cpp
[ 28%] Built target tf2_msgs_generate_messages_cpp
Scanning dependencies of target tf2_msgs_generate_messages_py
[ 28%] Built target tf2_msgs_generate_messages_py
Scanning dependencies of target tf2_msgs_generate_messages_lisp
[ 28%] Built target tf2_msgs_generate_messages_lisp
Scanning dependencies of target diagnostic_msgs_generate_messages_lisp
[ 28%] Built target diagnostic_msgs_generate_messages_lisp
Scanning dependencies of target realsense2_camera_generate_messages_lisp
[ 32%] Generating Lisp code from realsense2_camera/Extrinsics.msg
[ 36%] Generating Lisp code from realsense2_camera/IMUInfo.msg
[ 36%] Built target realsense2_camera_generate_messages_lisp
Scanning dependencies of target realsense2_camera_generate_messages_py
[ 40%] Generating Python from MSG realsense2_camera/Extrinsics
[ 44%] Generating Python from MSG realsense2_camera/IMUInfo
[ 48%] Generating Python msg init.py for realsense2_camera
[ 48%] Built target realsense2_camera_generate_messages_py
Scanning dependencies of target ddynamic_reconfigure_generate_messages_cpp
Scanning dependencies of target ddynamic_reconfigure_generate_messages_lisp
Scanning dependencies of target ddynamic_reconfigure_generate_messages_py
Scanning dependencies of target realsense2_camera_generate_messages_cpp
[ 56%] Generating C++ code from ddynamic_reconfigure/TutorialParams.srv
[ 56%] Generating Lisp code from ddynamic_reconfigure/TutorialParams.srv
[ 60%] Generating Python code from SRV ddynamic_reconfigure/TutorialParams
[ 64%] Generating C++ code from realsense2_camera/Extrinsics.msg
[ 68%] Generating C++ code from realsense2_camera/IMUInfo.msg
[ 72%] Generating Python srv init.py for ddynamic_reconfigure
[ 72%] Built target ddynamic_reconfigure_generate_messages_lisp
[ 72%] Built target ddynamic_reconfigure_generate_messages_py
[ 72%] Built target realsense2_camera_generate_messages_cpp
Scanning dependencies of target realsense2_camera_generate_messages
[ 72%] Built target realsense2_camera_generate_messages
[ 72%] Built target ddynamic_reconfigure_generate_messages_cpp
Scanning dependencies of target ddynamic_reconfigure_generate_messages
Scanning dependencies of target ddynamic_reconfigure_gencpp
[ 72%] Built target ddynamic_reconfigure_generate_messages
[ 72%] Built target ddynamic_reconfigure_gencpp
[ 76%] Linking CXX shared library /home/roboticlab14/catkin_ws_camera/devel/lib/libddynamic_reconfigure.so
[ 76%] Built target ddynamic_reconfigure
Scanning dependencies of target dd_server
Scanning dependencies of target realsense2_camera
[ 80%] Building CXX object realsense/ddynamic_reconfigure/CMakeFiles/dd_server.dir/test/dd_full_scale/dd_server.cpp.o
[ 84%] Building CXX object realsense/realsense2_camera/CMakeFiles/realsense2_camera.dir/src/realsense_node_factory.cpp.o
[ 88%] Building CXX object realsense/realsense2_camera/CMakeFiles/realsense2_camera.dir/src/base_realsense_node.cpp.o
[ 92%] Building CXX object realsense/realsense2_camera/CMakeFiles/realsense2_camera.dir/src/t265_realsense_node.cpp.o
[ 96%] Linking CXX executable /home/roboticlab14/catkin_ws_camera/devel/lib/ddynamic_reconfigure/dd_server
[ 96%] Built target dd_server
/home/roboticlab14/catkin_ws_camera/src/realsense/realsense2_camera/src/base_realsense_node.cpp: In member function ‘void realsense2_camera::BaseRealSenseNode::registerDynamicOption(ros::NodeHandle&, rs2::options, std::string&)’:
/home/roboticlab14/catkin_ws_camera/src/realsense/realsense2_camera/src/base_realsense_node.cpp:277:26: error: could not convert ‘nh1.ros::NodeHandle::param(option_name, option_value, option_value)’ from ‘void’ to ‘bool’
if (nh1.param(option_name, option_value, option_value))
^
/home/roboticlab14/catkin_ws_camera/src/realsense/realsense2_camera/src/base_realsense_node.cpp:290:26: error: could not convert ‘nh1.ros::NodeHandle::param(option_name, option_value, option_value)’ from ‘void’ to ‘bool’
if (nh1.param(option_name, option_value, option_value))
^
/home/roboticlab14/catkin_ws_camera/src/realsense/realsense2_camera/src/base_realsense_node.cpp:331:26: error: could not convert ‘nh1.ros::NodeHandle::param(option_name, option_value, option_value)’ from ‘void’ to ‘bool’
if (nh1.param(option_name, option_value, option_value))
^
make[2]: *** [realsense/realsense2_camera/CMakeFiles/realsense2_camera.dir/src/base_realsense_node.cpp.o] Error 1
make[1]: *** [realsense/realsense2_camera/CMakeFiles/realsense2_camera.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j8 -l8" failed
`

I also tried to installed with pip using "pip3 install pyrealsense2 --user" but if I tried to import pyrealsense2 it crashed with the following error.. And also with the tutorial test as showing in the terminal output :
roboticlab14@roboticlab14:~/catkin_ws_camera$ python3 /home/roboticlab14/Documents/Git/librealsense/wrappers/python/examples/python-tutorial-1-depth.py Traceback (most recent call last): File "/home/roboticlab14/Documents/Git/librealsense/wrappers/python/examples/python-tutorial-1-depth.py", line 9, in <module> import pyrealsense2 as rs File "/home/roboticlab14/.local/lib/python3.6/site-packages/pyrealsense2/__init__.py", line 2, in <module> from .pyrealsense2 import * ImportError: /home/roboticlab14/.local/lib/python3.6/site-packages/pyrealsense2/pyrealsense2.cpython-36m-x86_64-linux-gnu.so: symbol _ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

Do someone have some ideas to help me please ? I start to be mad with this issue...

Thank you very much for your future help.

Best,

Jonathan

@doronhi
Copy link
Contributor

doronhi commented May 13, 2019

Hi Jonathan,
I am sorry for the long delay and the frustration.
I didn't try this realsense2_camera version on indigo but based on the build log you published there really seems to be a problem: The param function returns bool on kinetic onward but void in Indigo. I don't know if there are any other changes to the interface.
This version does not officially supports Indigo...

@Deastan
Copy link
Author

Deastan commented May 15, 2019

No problem. Thank you for your feedback.

@blocka23
Copy link

blocka23 commented Sep 4, 2019

Were you able to create a workaround for this? I'm having a similar issue.

@ravijo
Copy link

ravijo commented Sep 25, 2019

@blocka23: I am using ROS Indigo on Ubuntu 14.04 LTS. As expected, the realsense_ros throws the following error error: could not convert ‘nh1.ros::NodeHandle::param(option_name, option_value, option_value)’ from ‘void’ to ‘bool’. I checked out an older version and recompiled to make it work.

Please use version 2.2.1 as I did just now. More specifically, instead of executing the following command:

git checkout `git tag | sort -V | grep -P "^\d+\.\d+\.\d+" | tail -1`

Please execute the following command:

git checkout 2.2.1

While compilation, it may show multiple ddynamic_reconfigure package. You need to delete ddynamic_reconfigure, which is inside ros_ws/src. Please remember not to delete ddynamic_reconfigure which is inside ros_ws/src/realsense-ros.

Cheers

@blocka23
Copy link

Dear @ravijo
Thank you very much for your response. I did what you suggested and used git checkout 2.2.1

Unfortunately, I'm still having errors when I try to catkin_make

/home/block/catkin_ws/src/moveit/moveit_ros/manipulation/move_group_pick_place_capability/src/pick_place_action_capability.cpp:42:45: fatal error: manipulation_msgs/GraspPlanning.h: No such file or directory
compilation terminated.
make[2]: *** [moveit/moveit_ros/manipulation/move_group_pick_place_capability/CMakeFiles/moveit_move_group_pick_place_capability.dir/src/pick_place_action_capability.cpp.o] Error 1
make[1]: *** [moveit/moveit_ros/manipulation/move_group_pick_place_capability/CMakeFiles/moveit_move_group_pick_place_capability.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 87%] Linking CXX shared library /home/block/catkin_ws/devel/lib/python2.7/dist-packages/moveit_ros_planning_interface/_moveit_roscpp_initializer.so
[ 87%] Built target moveit_py_bindings_tools_python
[ 88%] Linking CXX shared library /home/block/catkin_ws/devel/lib/libmoveit_planning_scene_interface.so
[ 88%] Built target moveit_planning_scene_interface
[ 88%] Linking CXX shared library /home/block/catkin_ws/devel/lib/python2.7/dist-packages/moveit_ros_planning_interface/_moveit_robot_interface.so
[ 88%] Built target moveit_robot_interface_python
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

Do you have any suggestions on how to fix this?

@ravijo
Copy link

ravijo commented Sep 25, 2019

Hi @blocka23

The error is generated from moveit. This is a kind of common issue. You should run catkin_make install and catkin_make repeatedly a few times. It should disappear with in 2-3 runs.

@blocka23
Copy link

Hi @ravijo
Thank you for your continued assistance.

I did as you suggested and ran catkin_make install and catkin_make several times. I was able to get to 100%, but it still says Invoking "make -j8 -l8" failed The error I'm getting is still this fatal error from moveit. Do you have any other suggestions?
/home/block/catkin_ws/src/moveit/moveit_ros/manipulation/move_group_pick_place_capability/src/pick_place_action_capability.cpp:42:45: fatal error: manipulation_msgs/GraspPlanning.h: No such file or directory compilation terminated. make[2]: *** [moveit/moveit_ros/manipulation/move_group_pick_place_capability/CMakeFiles/moveit_move_group_pick_place_capability.dir/src/pick_place_action_capability.cpp.o] Error 1 make[1]: *** [moveit/moveit_ros/manipulation/move_group_pick_place_capability/CMakeFiles/moveit_move_group_pick_place_capability.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [100%] Linking CXX executable /home/block/catkin_ws/devel/lib/moveit_setup_assistant/moveit_setup_assistant /usr/bin/ld: warning: libboost_system.so.1.54.0, needed by /opt/ros/indigo/lib/libroscpp.so, may conflict with libboost_system.so.1.57.0 /usr/bin/ld: warning: libboost_program_options.so.1.54.0, needed by /opt/ros/indigo/lib/librviz.so, may conflict with libboost_program_options.so.1.57.0 [100%] Built target moveit_setup_assistant make: *** [all] Error 2 Invoking "make -j8 -l8" failed

@ravijo
Copy link

ravijo commented Sep 26, 2019

Hi @blocka23

This is a bit surprising for me to see manipulation_msgs. Which version of ROS are you using? As per official ROS page, ROS Indigo was released on July 22nd, 2014. The CHANGELOG file of moveit says that it no longer depends on manipulation_msgs from Sep 23th, 2013.

Furthermore, the GitHub page of manipulation_msgs where GraspPlanning is defined says that the package in this repo is DEPRECATED.

I definitely suggest you update the moveit. On ROS Indigo sudo apt-get install ros-indigo-moveit-full should work, although some users have experienced difficulties while installing ros-indigo-moveit-full as mentioned here. Anyway, you can always build moveit from the source. I believe that the proper installation of moveit should fix your error.

Lastly, if you still fail, you should build manipulation_msgs package by copying it in your ROS workspace. However, please note that this package is deprecated.

PS: On a side note, you are having two versions of boost i.e, v1.54 and v1.57.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants