Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros2 version #103

Closed
lucasw opened this issue Oct 29, 2018 · 9 comments
Closed

ros2 version #103

lucasw opened this issue Oct 29, 2018 · 9 comments

Comments

@lucasw
Copy link
Contributor

lucasw commented Oct 29, 2018

I'm going to make a ros2 version (unless someone else already has? I spot checked a few forks but didn't see one)- it looks like the separation between ros1 node and usb cam code is mostly clean, there are just ROS_ERROR_STREAMS to convert.

https://github.com/lucasw/usb_cam/tree/bouncy

lucasw added a commit to lucasw/usb_cam that referenced this issue Oct 30, 2018
…ng '' (/dev/video0) at 640x480 via mmap (mjpeg) at 30 FPS

outbuf size mismatch.  pic_size: 1036800 bufsize: 614400 ros-drivers#103
lucasw added a commit to lucasw/usb_cam that referenced this issue Oct 31, 2018
…something in the image message is wrong?) Had to make many changes to debug original issue which mainly was not created the img_ before trying to assign to it. It seems that ros2 run hides crashes silently so they are harder to debug. Every usb_cam method returns a bool but some things should throw exceptions instead. Many functions are run still without any checks on teh return value, which the throws would solve ros-drivers#103
lucasw added a commit to lucasw/usb_cam that referenced this issue Oct 31, 2018
…'t image_tools showimage?), but the frame rate is very slow ros-drivers#103
lucasw added a commit to lucasw/usb_cam that referenced this issue Oct 31, 2018
lucasw added a commit to lucasw/usb_cam that referenced this issue Nov 1, 2018
@lucasw
Copy link
Contributor Author

lucasw commented Nov 5, 2018

The ros2 branch is working in bouncy. The setting of camera parameters live is offloaded to https://github.com/lucasw/v4l2ucp/tree/bouncy

@sgvandijk
Copy link

I had started work on this separately, before coming across this issue and your fork. IMHO it started diverging a bit from the original version, with some good things but maybe can be done in further iterations? So I pushed my version up as a PR to take the discussion further.

@lucasw
Copy link
Contributor Author

lucasw commented Dec 2, 2018

I didn't make a pr because there wasn't a bouncy or ros2 branch to merge into. A git knowledgeable maintainer can do that after the pr, but this package is orphaned now- or even re-orphaned? I think being a maintainer here is hard because any one person probably only has a small number of usb cameras to test changes with.

I tried to draw some attention to usb_cam in a discourse post https://discourse.ros.org/t/ros2-usb-cam-imgui-image-manipulation-nodes/6894 .

There are a lot of usb_cam branches with a lot of work done on them (though no other ros2 versions at least as of a month ago) https://github.com/ros-drivers/usb_cam/network , for most the authors didn't even bother with a pr because they wanted to rewrite so much of it- some of my changes parallel theirs.

@r7vme
Copy link

r7vme commented May 5, 2019

Hey, @lucasw @sgvandijk i'm also looking for usb_cam for ROS2.

Any chance to find maintainers and create ros2 branch?

@sgvandijk
Copy link

sgvandijk commented May 7, 2019

Hi @r7vme I have gone ahead and implemented a ROS 2 package from scratch: https://gitlab.com/boldhearts/ros2_v4l2_camera, it is still partly WIP, but it should be ready to be used and it would be great to get feedback from others who use other hardware from us :)

@Karsten1987
Copy link

@k-okada could you please push a ros2 branch to this repo to enable @lucasw to open a PR? Thanks.

@k-okada
Copy link
Contributor

k-okada commented Aug 24, 2020

@Karsten1987
Copy link

thanks a lot. @lucasw it would be great if you could open a PR towards that branch. Even though your initial work was for bouncy, we should be able to iterate over it online to make it work for Foxy.

@flynneva
Copy link
Collaborator

refer to the ros2 branch on this repo for more!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants