Difference between revisions of "Building a Webcam Display"

From wikidb
Jump to: navigation, search
(Package Setup)
Line 21: Line 21:
 
== Package Setup ==
 
== Package Setup ==
  
[[Camera Display CMakeLists.txt]]
+
In <tt>~/catkin_ws/src/follow</tt>
 +
 
 +
* [[Camera Display CMakeLists.txt]]
 +
* [[Camera Display package.xml]]
 +
 
 +
In <tt>~/catkin_ws/src/follow/src</tt>
 +
 
 +
* [[camera_display.cpp]]
  
 
== Test ==
 
== Test ==

Revision as of 11:38, 9 August 2015

Tutorials

Build the Workspace

  mkdir -p ~/catkin_ws/src
  cd ~/catkin_ws/src/
  catkin_init_workspace 
  cd ..
  catkin_make
  . devel/setup.bash 
  echo $ROS_PACKAGE_PATH
  cd src/
  catkin_create_pkg follow std_msgs rospy roscpp
  cd ..
  catkin_make
  . ~/catkin_ws/devel/setup.bash

Package Setup

In ~/catkin_ws/src/follow

In ~/catkin_ws/src/follow/src

Test

 rosrun usb_cam usb_cam_node ~video_device "/dev/video0"
 rosrun follow camera_display