Open avibrown opened 1 year ago
I realize this may be a deeper ROS 2 specific issue. I couldn't find my specific issue addressed in more general threads (non specific to OAK-D) except for here which is a dead end unfortunately.
Hi, I guess this is pretty similar to https://github.com/luxonis/depthai-ros/issues/266, outside of things I suggested there, I'd try using compressed topics instead of raw to view images.
Thanks @Serafadam, I'll try compressed images and report back. If I'm not mistaken compressed images aren't published by default -- can you help a n00b out with this? 😅
Hi everyone,
I have an OAK-D (not lite) camera connected to a Raspberry Pi 4 and I am trying to get the example launch files working according to the readme.
For some background:
I want to be able to use the ROS 2 launch files, so I followed the steps for installing the DepthAI ROS 2 binaries and I am able to run the launch files, for instance running
ros2 launch depthai_examples rgb_publisher.launch.py camera_model:=OAK-D
, and then checking (from the Pi shell)ros2 topic hz /color/image
I see decent FPS of over 25.So far so good!
But once I try to access the topic from my main laptop (the one connected to the Pi over SSH) I run into issues. Running the same
ros2 topic hz /color/image
9 times out of 10 doesn't show anything, and when it does it's a very low FPS like 2.3. Runningros2 topic echo /color/image
every once in a while I see an image published but most of the time I see:After leaving the
echo
running for a few seconds the SSH usually just crashes entirely.Same behavior when I try and view the image stream from RViz2 -- sometimes I will manage to see one or two images from the
/color/image
topic, but very quickly the SSH simply crashes and I have to start over.Output of
apt show ros-$ROS_DISTRO-depthai ros-$ROS_DISTRO-depthai-ros ros-$ROS_DISTRO-depthai-bridge ros-$ROS_DISTRO-depthai-ros-msgs ros-$ROS_DISTRO-depthai-ros-driver
: