# Using USB\_cam node

**URL:** <https://forum.ubiquityrobotics.com/t/using-usb-cam-node/769>\
**Category:** Uncategorized\
**Created:** [March 26, 2021, 10:41pm UTC](https://forum.ubiquityrobotics.com/t/using-usb-cam-node/769 "2021-03-26T22:41:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IngeniousDoc](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/i/94ad74/32.png) [@IngeniousDoc](https://forum.ubiquityrobotics.com/u/IngeniousDoc)\
**Post date:** [March 26, 2021, 10:41pm UTC](https://forum.ubiquityrobotics.com/t/using-usb-cam-node/769/1 "2021-03-26T22:41:21Z")

</div>

I am trying to use the usb\_cam node but I am having trouble when it comes to the resolution.  
i am trying to reduce the value due to network latency, so there isn’t a delay in the processing of the codes, or does that not affect the processing speed of the robot?  
I am trying to run this basic line follow script:

> **[GitHub - sudrag/line\_follower\_turtlebot: A repo created to simulate a line following...](https://github.com/sudrag/line_follower_turtlebot)**
>
> A repo created to simulate a line following turtlebot in Gazebo environment using ROS

I have also looked into using raspicam node, but I don’t know how to make it publish raw images instead of compressed images.

- Should I look into using different camera package?
- Does this mean I need to reconfigure the camera? or do I need to make a launch file for it? the documentation wasn’t very clear…

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [March 27, 2021, 1:27am UTC](https://forum.ubiquityrobotics.com/t/using-usb-cam-node/769/2 "2021-03-27T01:27:54Z")

</div>

Well if you look at the params on the wiki [http://wiki.ros.org/usb\_cam](http://wiki.ros.org/usb_cam) you can see all that’s adjustable. I don’t think it’s possible to get raw images out of it, but you could easily make a node that subscribes to compressed, converts to numpy and then to raw, then publishes it back. The image\_proc package probably has that already somewhere.

Anyhow unfortunately webcams vary a lot so it’s likely that most don’t support half of the features listed there. Most I’ve used support one resolution at one framerate and that’s basically it.
