Comments (4)
We've discussed with @saching13 regarding this issue (just a bump)
Main issue seems to be that depthai-core was build as static library instead of shared. If you want to use a static library you should specify the -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake
to create relocatable code that can be linked into a shared library at the end. (Also clear hunter cache rm -r ~/.hunter
between, as -fPIC
doesn't properly create a different cache than non -fPIC
builds)
from depthai-ros.
Thank you! I had not realised that I'd built depthai-core as a static library, building it with this option did not work but I built it as a dynamic library and it successfully linked.
from depthai-ros.
Sorry for the trouble.
Can you share the steps followed here, ROS version and OS here ?
from depthai-ros.
Hi again,
The Docker container has ROS Noetic and Ubuntu 20.04 Focal.
With rosdep installed and set up, I followed the following steps:
- Installed
libopencv-dev
andpython3-vcstool
- Tried to execute
sudo wget -qO- https://raw.githubusercontent.com/luxonis/depthai-ros/noetic-devel/install_dependencies.sh | sudo bash
, which resulted in the following:
SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"
Failed to send reload request: No such file or directory
- This was caused by the command
sudo udevadm control --reload-rules
(udev doesn't work properly in Docker containers), so I followed the steps outlined by Brandon in luxonis/depthai#295 (comment) - This time I got the error in luxonis/depthai-core#121 (comment) (This occurred when building XLink and was caused by the following lines in
XLink.cmake
:
if(NOT LIBUSB_INCLUDE_DIR OR NOT LIBUSB_LIBRARY)
message(FATAL_ERROR "libusb is required")
endif()
- I tried to fix this by setting the variables
LIBUSB_LIBRARY
andLIBUSB_INCLUDE_DIR
in my .bashrc and passing them to cmake when building XLink, but it kept occurring. - When I ran
sudo apt-get -y install cmake libusb-1.0-0-dev build-essential
as outlined in the previous issue thread, this got resolved (But I assume I will run into problems when trying to connect the OAK, because udev is enabled in Docker). - Now that the dependencies are installed, I kept following the steps on https://github.com/luxonis/depthai-ros. When I ran
catkin_make
, I bumped into the issue in #2, which turned out to be because I had not installed depthai-core. - When I installed this, I ran the script again and I ran into the issue outlined here. I do not know how to proceed.
from depthai-ros.
Related Issues (20)
- [BUG] Humble ros_bridge does spatial detection missing fields
- [BUG] Missing depthai-ros packages on Noetic HOT 2
- rtabmap_fix_noetic
- [Dockerfile humble] Doesn't build
- Different intrinsic matrix values for rectified left and right lens HOT 2
- Issue with launching depthai_ros_driver camera.launch.py [Oak-D Pro POE camera] HOT 1
- [BUG] Generic ROS2 driver output for spatial yolo is incorrect HOT 3
- [BUG] error failing to build the package for ROS noetic HOT 1
- [BUG] Error when including xacro file in my robot description HOT 7
- [BUG] WLS filtered image all black HOT 4
- rtabmap.launch Did not receive data since 5 seconds!(ROS-noetic)
- how to config rgb or stereo camera via by ros2 system? HOT 1
- Camera factory calibration interpretation HOT 4
- [BUG] {Low and drop in FPS and unsynchronized} HOT 1
- [BUG] Unable to set manual exposure HOT 1
- [Feature-Request] Use image_transport even when IPC is enabled in Jazzy/Rolling HOT 1
- How to access depthai_filters detection data? HOT 1
- [PERFORMANCE] RGBD ROS noetic synchronize HOT 1
- [BUG] Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND HOT 7
- how to adapt imu extrinsics after stereo rectification
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from depthai-ros.