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

Running SVO on a live camera stream #247

Closed
hassanyousufx opened this issue Apr 15, 2019 · 2 comments
Closed

Running SVO on a live camera stream #247

hassanyousufx opened this issue Apr 15, 2019 · 2 comments

Comments

@hassanyousufx
Copy link

I can run SVO fine from the dataset but how do I run a live camera stream? I have a PS3 Eye webcam and I don't know how to create a ros node that publishes images on the topic camera/image. Is there any tutorial on it?

@ouyangandy
Copy link

Is it necessary to convert a color image to a grayscale image when publishing a node, or is it already done this step?

@canberkgurel
Copy link

Install USB_CAM:

cd ~catkin_ws/src 

git clone https://github.com/bosch-ros-pkg/usb_cam.git 

cd ~/catkin_ws

catkin_make

source devel/setup.bash

gedit ~/catkin_ws/devel/lib/usb_cam/usb_cam.launch

Add the following and save

<launch>
  <node name="usb_cam" pkg="usb_cam" type="usb_cam_node" output="screen" >
    <param name="video_device" value="/dev/video0" />
    <param name="image_width" value="640" />
    <param name="image_height" value="480" />
    <param name="pixel_format" value="mjpeg" />
    <param name="camera_frame_id" value="usb_cam" />
    <param name="io_method" value="mmap"/>
  </node>
  <node name="image_view" pkg="image_view" type="image_view" respawn="false" output="screen">
    <remap from="image" to="/usb_cam/image_raw"/>
    <remap from="/usb_cam/image_raw" to="/camera/image"/>
    <param name="autosize" value="true" />
  </node>
</launch>

roslaunch usb_cam usb_cam.launch

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

No branches or pull requests

3 participants