Difference between revisions of "Building a Webcam Display"
From wikidb
(→Build the Workspace) |
(→Build the Workspace) |
||
Line 6: | Line 6: | ||
== Build the Workspace == | == Build the Workspace == | ||
+ | === For Jade === | ||
+ | I did the following in the Jade environment - when bashrc had the following. | ||
+ | source /opt/ros/jade/setup.bash | ||
mkdir -p ~/catkin_ws/src | mkdir -p ~/catkin_ws/src | ||
Line 20: | Line 23: | ||
. ~/catkin_ws/devel/setup.bash | . ~/catkin_ws/devel/setup.bash | ||
− | Experiment - setup.bash add this workspace to ROS_PACKAGE_PATH in a particular shell. I did the above the | + | === For Indigo === |
− | + | ||
− | + | Experiment - setup.bash add this workspace to ROS_PACKAGE_PATH in a particular shell. I did the above the Indigo environment - when bashrc had the following. | |
source /opt/ros/indigo/setup.bash | source /opt/ros/indigo/setup.bash | ||
Revision as of 11:00, 6 November 2015
Contents
Tutorials
Build the Workspace
For Jade
I did the following in the Jade environment - when bashrc had the following.
source /opt/ros/jade/setup.bash
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
For Indigo
Experiment - setup.bash add this workspace to ROS_PACKAGE_PATH in a particular shell. I did the above the Indigo environment - when bashrc had the following.
source /opt/ros/indigo/setup.bash
echo $ROS_PACKAGE_PATH /opt/ros/indigo/share:/opt/ros/indigo/stacks:/home/eepp/ros_packages . devel/setup.bash echo $ROS_PACKAGE_PATH /home/eepp/catkin_ws_indigo/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks
Package Setup
TBD: First pass - all these files need to be cleaned up.
- Subscribing To Images. The tutorial where I got the code.
In ~/catkin_ws/src/follow
In ~/catkin_ws/src/follow/src
- camera_display.cpp my modified source
Build
cd ~/catkin_ws catkin_make
Test
TBD: clean up the next line
rosrun usb_cam usb_cam_node ~video_device "/dev/video0" rosrun follow camera_display