sudo apt-get install libgphoto2-dev
sudo pip install -v gphoto2
(takes a while, be patient)
- from this directory, run
python ./setup.py install
- plug in Canon SLR (e.g. 5D2) with USB
- test that everything is working: run
nodes/check_gphoto_cameras.py
to automatically find the camera, trigger a capture, and download the file - optional (if using multiple cameras): note the serial number that is printed when you run the test, ie.
8cb6612c6f94d87
- run
roscore
- run the ROS node:
rosrun gphoto_canon_trigger gphoto_canon_trigger.py
, optionally specify serial, directory to save photos, and topic names (seerosrun gphoto_canon_trigger gphoto_canon_trigger.py --help
) - publish something (any floating integer) on the trigger topic (the default of which is
/gphoto_trigger
). for example:rostopic pub /gphoto_trigger std_msgs/Int32 1
- the filename of the file should be sent out on another ROS topic, default:
gphoto_filenames
. You can use this to synchronize the images with other ROS events.