error: ‘class rs2::sensor’ has no member named ‘get_motion_intrinsics’
-
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
- Consider checking out SDK examples.
- Have you looked in our documentations?
- Is you question a frequently asked one?
- Try searching our GitHub Issues (open and closed) for a similar issue.
-
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
| Required Info | |
|---|---|
| Camera Model | { R200 / F200 / SR300 / ZR300 / D400 } |
| Firmware Version | (Open RealSense Viewer --> Click info) |
| Operating System & Version | {Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS |
| Kernel Version (Linux Only) | (e.g. 4.14.13) |
| Platform | PC/Raspberry Pi/ NVIDIA Jetson / etc.. |
| SDK Version | { legacy / 2.>.> } |
Issue Description
<Describe your issue / question / feature request / etc..> hello ~~ I want install realsense-2.0.1 but i have some problem
/catkin_ws/src/realsense-2.0.1/realsense_ros_camera/src/realsense_camera_node.cpp:993:58: error: ‘class rs2::sensor’ has no member named ‘get_motion_intrinsics’ auto imuIntrinsics = _sensors[stream_index]->get_motion_intrinsics(stream_index.first); ^ make[2]: *** [realsense-2.0.1/realsense_ros_camera/CMakeFiles/realsense_ros_camera.dir/src/realsense_camera_node.cpp.o] Error 1 make[1]: *** [realsense-2.0.1/realsense_ros_camera/CMakeFiles/realsense_ros_camera.dir/all] Error 2 make: *** [all] Error 2 Invoking "make -j4 -l4" failed
Hello @kimkildae, the ROS wrapper 2.0.1 compiles only with RealSense SDK 2.9.1. Please install the SDK following the installation instruction and update if it solved the issue.
Thank you I already install RealSense SDK 2.9.1 following instruction (https://github.com/IntelRealSense/librealsense/blob/v2.9.1/doc/distribution_linux.md)
but, i have this problem
Sorry my bad, the ROS wrapper 2.0.1 compiles with RealSense SDK 2.8.1. Please remove the SDK 2.9.1 Debian Package and install the 2.8.1 from sources.
Only i can install debian package because my cmake vesion is 2.8.12.2. when upgrade cmake, my other packages do not run... so i try to install ros wrapper 2.0.2 there is some issue
CMake Error at realsense-2.0.2/realsense_ros_camera/CMakeLists.txt:21 (message):
OpenMP is missing!
-- Configuring incomplete, errors occurred!
gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~14.04)
Regarding the compilation issue please try to compile the ROS wrapper without OpenMP by the following line catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_OPENMP=false
Thank you I try to
catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_OPENMP=false
but there are some problem
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/librealsense-file.a(rate.cpp.o): unrecognized relocation (0x2a) in section `.text.startup'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
@kimkildae, could you please post the whole output ?
Thank you for replying
Base path: /home/eti/catkin_ws
Source space: /home/eti/catkin_ws/src
Build space: /home/eti/catkin_ws/build
Devel space: /home/eti/catkin_ws/devel
Install space: /home/eti/catkin_ws/install
####
#### Running command: "cmake /home/eti/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/eti/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/eti/catkin_ws/install -G Unix Makefiles" in "/home/eti/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/eti/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/eti/catkin_ws/devel;/opt/ros/indigo
-- This workspace overlays: /home/eti/catkin_ws/devel;/opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: False
-- catkin 0.6.19
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 12 packages in topological order:
-- ~~ - geometry (metapackage)
-- ~~ - medicart_msgs
-- ~~ - eigen_conversions
-- ~~ - kdl_conversions
-- ~~ - hokuyo_node
-- ~~ - tf
-- ~~ - realsense_ros_camera
-- ~~ - rosaria
-- ~~ - bag2bi
-- ~~ - navigation
-- ~~ - rosaria_client
-- ~~ - tf_conversions
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'geometry'
-- ==> add_subdirectory(geometry/geometry)
-- +++ processing catkin package: 'medicart_msgs'
-- ==> add_subdirectory(medicart_msgs)
-- +++ processing catkin package: 'eigen_conversions'
-- ==> add_subdirectory(geometry/eigen_conversions)
-- +++ processing catkin package: 'kdl_conversions'
-- ==> add_subdirectory(geometry/kdl_conversions)
-- +++ processing catkin package: 'hokuyo_node'
-- ==> add_subdirectory(hokuyo_node)
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- system
-- thread
-- +++ processing catkin package: 'tf'
-- ==> add_subdirectory(geometry/tf)
-- Using these message generators: gencpp;genlisp;genpy
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- thread
-- signals
-- system
-- tf: 1 messages, 1 services
-- +++ processing catkin package: 'realsense_ros_camera'
-- ==> add_subdirectory(realsense-2.0.2/realsense_ros_camera)
-- Using these message generators: gencpp;genlisp;genpy
-- Create Debug Build.
-- realsense_ros_camera: 2 messages, 0 services
-- +++ processing catkin package: 'rosaria'
-- ==> add_subdirectory(rosaria)
-- Using these message generators: gencpp;genlisp;genpy
-- Boost version: 1.54.0
-- Found the following Boost libraries:
-- thread
-- rosaria: 1 messages, 0 services
-- +++ processing catkin package: 'bag2bi'
-- ==> add_subdirectory(bag2bi)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'navigation'
-- ==> add_subdirectory(navigation)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'rosaria_client'
-- ==> add_subdirectory(rosaria_client)
-- Using these message generators: gencpp;genlisp;genpy
-- +++ processing catkin package: 'tf_conversions'
-- ==> add_subdirectory(geometry/tf_conversions)
-- Using these message generators: gencpp;genlisp;genpy
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eti/catkin_ws/build
####
#### Running command: "make -j4 -l4" in "/home/eti/catkin_ws/build"
####
[ 0%] [ 0%] Built target geometry_msgs_generate_messages_py
Built target geometry_msgs_generate_messages_lisp
[ 0%] [ 0%] Built target std_msgs_generate_messages_cpp
Built target geometry_msgs_generate_messages_cpp
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] [ 1%] [ 3%] Built target std_msgs_generate_messages_lisp
Built target libhokuyo
Built target hokuyo_node_gencfg
[ 3%] Built target sensor_msgs_generate_messages_lisp
[ 3%] Built target sensor_msgs_generate_messages_py
[ 3%] Built target roscpp_generate_messages_py
[ 3%] Built target rosgraph_msgs_generate_messages_lisp
[ 3%] Built target rosgraph_msgs_generate_messages_py
[ 3%] Built target roscpp_generate_messages_cpp
[ 3%] Built target _tf_generate_messages_check_deps_tfMessage
[ 3%] Built target roscpp_generate_messages_lisp
[ 3%] Built target _tf_generate_messages_check_deps_FrameGraph
[ 3%] [ 3%] Built target rosgraph_msgs_generate_messages_cpp
[ 3%] Built target sensor_msgs_generate_messages_cpp
Built target actionlib_generate_messages_py
[ 3%] Built target actionlib_generate_messages_lisp
[ 3%] Built target actionlib_msgs_generate_messages_cpp
[ 3%] Built target actionlib_msgs_generate_messages_lisp
[ 3%] Built target tf2_msgs_generate_messages_lisp
[ 3%] [ 3%] Built target tf2_msgs_generate_messages_cpp
Built target actionlib_generate_messages_cpp
[ 3%] Built target actionlib_msgs_generate_messages_py
[ 3%] Built target tf2_msgs_generate_messages_py
[ 3%] [ 6%] Built target tf_generate_messages_cpp
Built target bond_generate_messages_py
[ 6%] Built target _catkin_empty_exported_target
[ 6%] Built target dynamic_reconfigure_generate_messages_lisp
[ 6%] [ 6%] Built target dynamic_reconfigure_gencfg
[ 6%] Built target dynamic_reconfigure_generate_messages_cpp
Built target dynamic_reconfigure_generate_messages_py
[ 6%] Built target nodelet_generate_messages_cpp
[ 6%] Built target nodelet_generate_messages_lisp
[ 6%] [ 12%] Built target nodelet_generate_messages_py
[ 12%] Built target realsense_ros_camera_gencfg
Built target bond_generate_messages_cpp
[ 12%] Built target bond_generate_messages_lisp
[ 14%] Built target rosaria_gencfg
[ 14%] [ 14%] Built target _realsense_ros_camera_generate_messages_check_deps_Extrinsics
Built target _realsense_ros_camera_generate_messages_check_deps_IMUInfo
[ 14%] Built target _rosaria_generate_messages_check_deps_BumperState
[ 14%] [ 14%] Built target nav_msgs_generate_messages_py
[ 14%] Built target nav_msgs_generate_messages_lisp
Built target nav_msgs_generate_messages_cpp
[ 17%] [ 18%] [ 20%] Built target eigen_conversions
Built target kdl_conversions
[ 21%] Built target getID
Built target getFirmwareVersion
[ 25%] [ 28%] Built target tf_generate_messages_lisp
Built target realsense_ros_camera_generate_messages_cpp
[ 29%] Built target hokuyo_node
[ 35%] Built target tf_generate_messages_py
[ 40%] [ 43%] [ 45%] Built target realsense_ros_camera_generate_messages_py
[ 46%] Built target realsense_ros_camera_generate_messages_lisp
Built target rosaria_generate_messages_cpp
Built target rosaria_generate_messages_lisp
[ 46%] Built target tf_generate_messages
[ 50%] [ 50%] Built target rosaria_generate_messages_py
Built target realsense_ros_camera_generate_messages
[ 56%] Built target tf
[ 56%] Built target rosaria_gencpp
[ 56%] Built target rosaria_generate_messages
[ 57%] Built target static_transform_publisher
[ 59%] [ 60%] Built target tf_echo
[ 62%] Built target tf_change_notifier
Built target tf_empty_listener
[ 64%] Built target tf_monitor
Linking CXX shared library /home/eti/catkin_ws/devel/lib/librealsense_ros_camera.so
[ 65%] Built target odom_node
[ 68%] Built target RosAria
[ 70%] Built target scan_node
[ 71%] Built target scan_odom_node
[ 73%] Built target Fingerprint
[ 75%] [ 76%] Built target GlobalLocalizer
Built target GlobalLocationSimpleViewer
[ 78%] Built target GlobalLocationViewer
[ 79%] Built target enable_motors
[ 81%] Built target go_three_second
[ 82%] Built target interface
[ 84%] [ 85%] Built target spin_clockwise
[ 87%] Built target print_state
Built target spin_counterclockwise
[ 89%] Built target teleop
[ 92%] Built target tf_conversions
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/librealsense-file.a(rate.cpp.o): unrecognized relocation (0x2a) in section `.text.startup'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [/home/eti/catkin_ws/devel/lib/librealsense_ros_camera.so] Error 1
make[1]: *** [realsense-2.0.2/realsense_ros_camera/CMakeFiles/realsense_ros_camera.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
[Realsense Customer Engineering Team Comment] HI @kimkildae,
Do you still need to support this issue? If so, you can try ROS wrapper 2.0.3 + ROS Kinetic + librealsense 2.10.2 on Ubuntu 16.04.
[Realsense Customer Engineering Team Comment] Hi @kimkildae,
I will close this first. If you still have any issue, you can still re-open or create another ticket.