ros-drivers / video_stream_opencv

A package to open video streams and publish them in ROS using the opencv videocapture mechanism
227 stars 159 forks source link

Publish stereo cameras or video files #28

Closed joejevons1001 closed 3 years ago

joejevons1001 commented 5 years ago

Hello,

I am new with ROS. I am using this package to publish video files as image topic to ROS and it works really well.

I just wonder, is it possible to publish stereo video files (synchronized) with this package? As I have two seperate video files from left and right cameras.

Thanks!

awesomebytes commented 5 years ago

There is nothing implemented for that unfortunately.

I'd record both topics in a rosbag and then using the Python rosbag API I'd rewrite the timestamps of the second topic to have the same time than the first....

Or fork the code of this repo to open the two files and grab a frame from each each time.

Both options may work, one may be more suited to you given your expertise either in C++ or Python than the other.

Good luck :) let me know if I can help any further.

On Fri, Jan 18, 2019, 00:25 Joe1001 <notifications@github.com wrote:

Hello,

I am new with ROS. I am using this package to publish video files as image topic to ROS and it works really well.

I just wonder, is it possible to publish stereo video files (synchronized) with this package? As I have two seperate video files from left and right cameras.

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ros-drivers/video_stream_opencv/issues/28, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpFdIz30cQk0nlNQIiMOWLYSde_SKWIks5vEHm5gaJpZM4aFMOH .

joejevons1001 commented 5 years ago

There is nothing implemented for that unfortunately. I'd record both topics in a rosbag and then using the Python rosbag API I'd rewrite the timestamps of the second topic to have the same time than the first.... Or fork the code of this repo to open the two files and grab a frame from each each time. Both options may work, one may be more suited to you given your expertise either in C++ or Python than the other. Good luck :) let me know if I can help any further.

Thank you so much for the advice! I would try with the first rosbag option.

yin-chao commented 5 years ago

Hello,

I am new with ROS. I am using this package to publish video files as image topic to ROS and it works really well.

I just wonder, is it possible to publish stereo video files (synchronized) with this package? As I have two seperate video files from left and right cameras.

Thanks!

Hello, Did you resolve it? I have the same question as you. I will appreciate it if there is any suggestion.

sarankhaliq commented 4 years ago

Hello,

I am new with ROS. I am using this package to publish video files as image topic to ROS and it works really well.

I just wonder, is it possible to publish stereo video files (synchronized) with this package? As I have two seperate video files from left and right cameras.

Thanks!

Will You please guide me, How you published video file? I have successfully build the package, i am not getting how to use it