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

cannot find -lOpenNI2Orbbec. ROS Orbbec Astra camera

asked 2016-12-13 15:34:51 -0600

voxl gravatar image

I'm trying to interface my Orbbec Astra camera using ROS (c++).

I figured out I need to use the custom OpenNI2 by Orbbec. I built it according to the instructions.

Then I tried to build ros_astra_camera.
catkin_make --pkg astra_camera gives me /usr/bin/ld: cannot find -lOpenNI2Orbbec

My CMakeLists.txt:

cmake_minimum_required(VERSION 2.8.3)
project(camera)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  std_msgs
  message_generation
  image_transport
  cv_bridge
)
find_package( OpenCV REQUIRED )

 add_message_files(
   FILES
   TrackedPosition.msg
 )

 generate_messages(
   DEPENDENCIES
   std_msgs
 )

catkin_package(
  CATKIN_DEPENDS roscpp std_msgs message_runtime
)

include_directories(
  ${catkin_INCLUDE_DIRS}
  ${OpenCV_INCLUDE_DIRS}
)

add_executable(tracker src/tracker.cpp)
target_link_libraries(tracker ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})
add_dependencies(tracker camera_generate_messages_cpp)

My package.xml:

<?xml version="1.0"?>
<package>
  <name>camera</name>
  <version>0.0.0</version>
  <description>The camera package</description>

  <maintainer email="jeff@todo.todo">jeff</maintainer>

  <license>TODO</license>

  <buildtool_depend>catkin</buildtool_depend>
  <build_depend>roscpp</build_depend>
  <build_depend>std_msgs</build_depend>
  <build_depend>message_generation</build_depend>
  <build_depend>image_transport</build_depend>
  <build_depend>cv_bridge</build_depend>
  <run_depend>roscpp</run_depend>
  <run_depend>std_msgs</run_depend>
  <run_depend>message_runtime</run_depend>
  <run_depend>image_transport</run_depend>
  <run_depend>cv_image</run_depend>

</package>

Any help is very much appreciated.
Please let me know if you need any additional information.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-01-28 16:56:27 -0600

MarkyMark2012 gravatar image

Had this issue myself - Rename Astra OpenNI2 file to OpenNI2Orbbec in /usr/lib

Mark

edit flag offensive delete link more

Comments

Are you suggesting to rename the library itself?

gvdhoorn gravatar image gvdhoorn  ( 2017-01-29 04:03:07 -0600 )edit

You can simply add a sym link to the OpenNI2 library file. Calling the link libOpenNI2Orbbec or there abouts

MarkyMark2012 gravatar image MarkyMark2012  ( 2017-01-29 09:36:04 -0600 )edit

There is no Astra OpenNI2 file in my /usr/lib

dwikyerl gravatar image dwikyerl  ( 2017-01-29 21:05:15 -0600 )edit
0

answered 2018-07-04 08:40:13 -0600

Check if you got the libOpenNI2.so in /usr/lib/ and then:

sudo ln -s /usr/lib/libOpenNI2.so /usr/lib/libOpenNI2Orbbec.so

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-12-13 15:34:51 -0600

Seen: 999 times

Last updated: Jan 28 '17