Step 5: Building and running example

After building the package using catkin_make, we can run the node using the following command:

  • Launch webcam driver:
    $ roslaunch usb_cam usb_cam-test.launch  
  • Run the cv_bridge sample node:
    $ rosrun cv_bridge_tutorial_pkg sample_cv_bridge_node  

If everything works fine, we will get two windows, as shown in the following
image. The first window shows the raw image and the second is the processed
edge detected image.

Figure 6 : Raw image and edge detected image
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.151.106