Ask Your Question
0

Pipe to camera/image_raw

asked 2015-08-09 07:45:15 -0500

mihaibujanca gravatar image

I have a camera on a raspberry pi and am trying to stream the image in order to do the processing on a linux machine (Ubuntu 14.04 LTS, ROS Indigo). I'm currently streaming rawvideo from the pi using netcat through UDP and send that to a pipe file. Now I need to somehow make ROS get the image from the pipe (I guess either create some publisher that sends it to a topic or in some other way send the data to /camera/image_raw). I also thought about doing a loopback from the pipe to a device with v4l2 and using rosusb, but seems like something that will add to the latency without much gain.

Any suggestion? Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-08-10 02:39:59 -0500

Disclaimer: I haven't tried this, but it should work.

What you could try is transmitting the stream via Gstreamer, running a Gstreamer pipeline on the Pi and another one on your target computer as input of the gscam ROS camera driver.

Here is a tutorial for using Gstreamer on the Pi. What would need to be changed is piping the output to RGB output on the receiver side (instead of the video sink visualizer). This then can be used by the gscam driver which publishes standard ROS images.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-08-09 07:45:15 -0500

Seen: 733 times

Last updated: Aug 10 '15