Last active
August 29, 2015 14:08
-
-
Save jmrr/0271f9f2186a695e6dae to your computer and use it in GitHub Desktop.
Calibrating Android device with ATAN calibration model and ROS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Previous step: Launch prepare-videochat.sh [an Android to v4l2loopback driver] | |
cd ~/Applications/ipwebcam-gst # Modify to the pertinent location of ipwebcam-gst | |
# Start ROS | |
roscore | |
# Run gscam (change location of device if different than /dev/video0) | |
roscd gscam | |
cd bin | |
export GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace" | |
rosrun gscam gscam | |
# List the topics and note down gscam camera topic: | |
rostopic list | |
# Test: view the gscam feed | |
rosrun image_view image_view image:=/camera/image_raw | |
# Run img_proc to convert the gscam feed to b/w | |
ROS_NAMESPACE=camera rosrun image_proc image_proc | |
rostopic list # List topics to double check | |
rosrun image_view image_view image:=camera/image_mono # Just to double check that converts to mono | |
# Run calibration routine | |
./catkin_ws/devel/lib/ptam/cameracalibrator /image:=/image_mono # From catkin_ws parent folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment