- Copy this file to your catkin_ws dir
- run
catkin_make
- source catkin_ws/devel/setup.bash
- Run
roslaunch opencv_image_saver image_saver.launch
The node constructor ImageSaver has 3 parameters. Change these in the main method
robot_name
: The name of the robot. If this is wrong, no image will be subscribed. By default duck7use_for_data-gathering
: Enables a different file naming scheme.By default True.store_location
: The place where to store all the images. By default this value is <~userhome>/duckietown_dataset
In the python file, there is an option to use this for a dataset, by default this value is True
- In this mode, enter 3 numbers in this format
[NUM_DUCKS] [NUM_ROBOTS] [NUM_CONES]
. The spaces are VERY IMPORTANT - To save an image, hit space and then enter
This will save the image in the specified folder With the SUffixes DK for number of Ducks, RB for number of robots and CN for number of cones