Comments (12)
No worries. This is cool stuff but it's all advancing so its no wonder the documentation lags. What there was already still helped me to work out what was going on. Thanks for your hard work on this.
from depthai-ros.
Thanks a lot for the detailed logs and feedback.
Looks like python3 -m pip install opencv-python
and sudo wget -qO- http://docs.luxonis.com/_static/install_dependencies.sh | bash
fixed the issue for you.
will add a reference to those for first-time users.
from depthai-ros.
Sorted.
I reran catkin_make_isolated and then after that a new setup.bash appeared in devel_isolated.
The command I used was
catkin_make_isolated --cmake-args -D depthai_DIR=~/depthai-core/build/install/lib/cmake/depthai
I ran
source devel_isolated/setup.bash
from
~/ros_ws
packages still didn't show in rospack but roslaunch now works.
It fails to find device but that is a different problem.
from depthai-ros.
FYI the device connection was just needing to ensure the depthai python api is setup correctly to gen2 spec beforehand.
from depthai-ros.
FYI the device connection was just needing to ensure the depthai python api is setup correctly to gen2 spec beforehand.
Thanks for the comments @jonititan . I updated the path to a static path.
can you elaborate on the quoted reply so that I can add steps to cover that.
I think this is about the adding USB rules (Will add the link to that script here) is that the same?
from depthai-ros.
What it turned out was I needed the depthai-python installed and configured. Essentially my trouble shooting method was ensuring the gen2 examples worked correctly so that I could rule out faults in the camera or usb.
Once I had followed the instructions and verified that worked I retried and roslaunch completed correctly.
I didn't install opencv separately.
Does that make sense?
If needed I can compile a command history
from depthai-ros.
yeah I think so. I get there in the end but as you can probably see I have to do a lot of wandering to work it out. Still learning.
I think it's because there are assumed dependencies prior to installing depthai-ros. I naively didn't anticipate them. Sorry about the formatting.
from depthai-ros.
Yes, It was my bad that I made that assumption. Will fix it.
from depthai-ros.
Thanks for making the issue and circling back with information on how to solve it. This is super helpful for others who may run into it - so much appreciated. :-)
from depthai-ros.
I think one is opencv which will be installed during installation of depthai-python.
Second would be usb rules.
Will add these two here.
If needed I can compile a command history
Thanks alot. if it's not too much work this would be helpful in checking if I am missing something.
from depthai-ros.
Here is the slightly pruned command history from ~/.bash_history
Anything preceded by a # is a comment from me. Edit: Markdown formatting makes it all headings but i'm going to leave it as is.
first I installed ROS Noetic http://wiki.ros.org/noetic/Installation/Ubuntu
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
sudo apt install ros-noetic-desktop-full
source /opt/ros/noetic/setup.bash
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
sudo apt install python3-rosdep
sudo rosdep init
rosdep update
then i followed the instructions to install depthai ros found here https://github.com/luxonis/depthai-ros they have subsequently been revised
git clone --recursive https://github.com/luxonis/depthai-core.git --branch develop
cd depthai-core
mkdir build
cd build
cmake .. -D BUILD_SHARED_LIBS=ON
cmake --build . --parallel --config Release --target install
cd ~
mkdir -p ros_ws/src
cd ros_ws/src
git clone https://github.com/luxonis/depthai-ros.git --branch noetic-devel
git clone https://github.com/luxonis/depthai-ros-examples.git --branch noetic-devel
git clone https://github.com/ros-perception/vision_msgs.git --branch noetic-devel
cd ~/ros_ws
catkin_make_isolated --cmake-args -D depthai_DIR=depthai-core/lib/cmake/depthai
this command gave the error message that the path was wrong and led to much screwing around trying to work it out. I've omitted that.
catkin_make_isolated --cmake-args -D depthai_DIR=~/depthai-core/build/install/lib/cmake/depthai
roslaunch depthai_examples stereo_node.launch && roslaunch
then roslaunch wouldn't launch...
cue more screwing around until i worked out like with much of ROS i needed to source a setup.bash file. Sadly this wasn't listed and I had to find the right one.
source ~/ros_ws/devel_isolated/setup.bash
roslaunch depthai_examples stereo_node.launch
then it launched but there was a connection error to the camera. Cue more screwing around. I decided to try the gen2 examples to test the connection. This involved installing the python api and wondering if that was a required dependency for the ros package.... ?
cd ../
getting back to home directory I then tried to install via pip as instructed in https://docs.luxonis.com/projects/api/en/latest/ but this was premature...
python3 -m pip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ depthai==2.1.0.0.dev+e5a09bf1a442d4be0cc2c8f4bb06b47e1c661ead
discovered pip wasn't installed... blank ubuntu install...
sudo apt install python3-pip
python3 -m pip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ depthai==2.1.0.0.dev+e5a09bf1a442d4be0cc2c8f4bb06b47e1c661ead
roslaunch depthai_examples stereo_node.launch && roslaunch depthai_examples stereo_nodelet.launch && roslaunch depthai_examples rgb_publisher.launch
still didn't work
I followed the instructions for the gen2 examples https://docs.luxonis.com/projects/api/en/latest/install/
python3 -m pip install -U pip
python3 -m pip install opencv-python
python3 -m pip install -U --force-reinstall depthai
i forgot about the dependencies so i did that bit...
sudo wget -qO- http://docs.luxonis.com/_static/install_dependencies.sh | bash
I downloaded and unzipped the python api manually and ran this command from the folder the examples were within. https://github.com/luxonis/depthai-python/tree/main/examples
python3 install_requirements.py
python3 08_rgb_mobilenet.py
this worked
cd ../
getting back to home directory
cd ros_ws
source ~/ros_ws/devel_isolated/setup.bash
roslaunch depthai_examples stereo_nodelet.launch
it worked this time
from depthai-ros.
Sweet, thanks both!
from depthai-ros.
Related Issues (20)
- 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
- oak-d pro terrible depth pointcloud HOT 3
- OAK-D pro W PoE(ov9782) HOT 1
- [BUG] {not able to set rgb resolution with ros2 driver}
- How to connect disconnected tf tress for panda and oak d lite HOT 1
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.