strand-cam publish images to ROS?

9 views
Skip to first unread message

Floris van Breugel

unread,
Nov 7, 2024, 3:17:03 PM11/7/24
to multi-camera software from the Straw Lab
Hi Andrew,

Is it possible to have strand-cam publish camera data to ROS (as an option)? 

Right now we have to jump through all sorts of hoops to get Braid and pylon-ros-camera to work together on the same computer, but if strand-cam could publish to ROS (or maybe it does and I just don't know) that would streamline things so much.

- Floris

Andrew Straw

unread,
Nov 9, 2024, 5:14:39 AM11/9/24
to multi-camera software from the Straw Lab, Floris van Breugel
Dear Floris,

I just wrote a little demo Python script that connects to Strand Cam and saves the images to .jpeg files on disk. https://github.com/strawlab/strand-braid/blob/main/strand-braid-user/scripts/strand_cam_subscriber.py You could modify this into a ROS node pretty easily, I think. I tried to document the potentially non-obvious aspects like saving cookies to disk so that the URL with new token is not required on each usage but rather just the static portion of the URL after the inital use. Basically the script should work like a web browser connecting to strand-cam.

I hope that’s useful. If we need to speed up the rate of images coming across, we can do that, but it will require changes to strand-cam itself.

(I don’t want to add ROS as a dependency to strand-cam. It used to be an optional dependency and I removed it.)

Best,
Andrew

--
You received this message because you are subscribed to the Google Groups "multi-camera software from the Straw Lab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to multicams+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/multicams/aeb4f8b8-7f2e-4dc9-bdf4-a685e785bd29n%40googlegroups.com.

Floris van Breugel

unread,
Nov 15, 2024, 3:00:43 AM11/15/24
to Andrew Straw, multi-camera software from the Straw Lab
Thanks, that looks like a super helpful script, I'll see what I can do!

- Floris
--
Floris van Breugel   |   http://www.florisvanbreugel.com
Assistant Professor of Mechanical Engineering 
& Graduate Program for Neuroscience
University of Nevada, Reno

Wildlife and Landscape Photography
Reply all
Reply to author
Forward
0 new messages