Astra camera, ROS ros_aster_camera

asked 2019-03-08 09:00:41 -0600

Yehor gravatar image

updated 2019-03-08 09:36:05 -0600

Hello, I have a problem trying to use the Orbbec Aster camera. I downloaded the git pkj for camera ros_astra_camera from https://github.com/orbbec/ros_astra_c... . And doing everything step-by-step, by on the compiling step, catkin_make, I got next error and don't know what to do:

In file included from /home/odroid/catkin_ws/src/ros_astra_camera/src/astra_timer_filter.cpp:33:0:
/home/odroid/catkin_ws/src/ros_astra_camera/include/astra_camera/astra_timer_filter.h:38:28: fatal error: openni2/OpenNI.h: No such file or directory
compilation terminated.
ros_astra_camera/CMakeFiles/astra_wrapper.dir/build.make:134: recipe for target 'ros_astra_camera/CMakeFiles/astra_wrapper.dir/src/astra_timer_filter.cpp.o' failed
make[2]: *** [ros_astra_camera/CMakeFiles/astra_wrapper.dir/src/astra_timer_filter.cpp.o] Error 1
/home/odroid/catkin_ws/src/ros_astra_camera/src/astra_frame_listener.cpp:32:28: fatal error: openni2/OpenNI.h: No such file or directory
compilation terminated.
ros_astra_camera/CMakeFiles/astra_wrapper.dir/build.make:158: recipe for target 'ros_astra_camera/CMakeFiles/astra_wrapper.dir/src/astra_frame_listener.cpp.o' failed
make[2]: *** [ros_astra_camera/CMakeFiles/astra_wrapper.dir/src/astra_frame_listener.cpp.o] Error 1
In file included from /home/odroid/catkin_ws/src/ros_astra_camera/src/astra_convert.cpp:33:0:
/home/odroid/catkin_ws/src/ros_astra_camera/include/astra_camera/astra_convert.h:40:28: fatal error: openni2/OpenNI.h: No such file or directory
compilation terminated.
ros_astra_camera/CMakeFiles/astra_wrapper.dir/build.make:62: recipe for target 'ros_astra_camera/CMakeFiles/astra_wrapper.dir/src/astra_convert.cpp.o' failed
make[2]: *** [ros_astra_camera/CMakeFiles/astra_wrapper.dir/src/astra_convert.cpp.o] Error 1
In file included from /home/odroid/catkin_ws/src/ros_astra_camera/src/astra_device_manager.cpp:34:0:
/home/odroid/catkin_ws/src/ros_astra_camera/include/astra_camera/astra_convert.h:40:28: fatal error: openni2/OpenNI.h: No such file or directory
compilation terminated.
ros_astra_camera/CMakeFiles/astra_wrapper.dir/build.make:182: recipe for target 'ros_astra_camera/CMakeFiles/astra_wrapper.dir/src/astra_device_manager.cpp.o' failed
make[2]: *** [ros_astra_camera/CMakeFiles/astra_wrapper.dir/src/astra_device_manager.cpp.o] Error 1
CMakeFiles/Makefile2:5657: recipe for target 'ros_astra_camera/CMakeFiles/astra_wrapper.dir/all' failed
make[1]: *** [ros_astra_camera/CMakeFiles/astra_wrapper.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

help me, regards

edit retag flag offensive close merge delete

Comments

Can you please tell us why you are using a fork instead of the main repository (ie: orbbec/ros_astra_camera)?

gvdhoorn gravatar image gvdhoorn  ( 2019-03-08 09:11:37 -0600 )edit

Can't answer this question, I just found that git for astra camera on google. I forgot to mention one thing, I tried to install OpenNI but I think I couldn't, and I also don't know how to check itю

Yehor gravatar image Yehor  ( 2019-03-08 09:15:50 -0600 )edit

If you absolutely must build from source, then I would suggest to use the upstream repository.

Otherwise, see: astra_camera, which seems to suggest that you can install the packages using apt-get install ros-kinetic-astra-camera.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-08 09:21:20 -0600 )edit

So, you suggest to download not from folk but from main?

Yehor gravatar image Yehor  ( 2019-03-08 09:34:17 -0600 )edit

and probably I made a mistake and download not from folk, but from main https://github.com/orbbec/ros_astra_c...

Yehor gravatar image Yehor  ( 2019-03-08 09:35:23 -0600 )edit

If you must build from source, then yes, I'd use the source repository (ie: not a fork, unless you have a reason to).

gvdhoorn gravatar image gvdhoorn  ( 2019-03-08 09:35:39 -0600 )edit

I change the question because I've made a mistake, I downloaded from main and there is instruction which I was following.

Yehor gravatar image Yehor  ( 2019-03-08 09:37:23 -0600 )edit