https://github.com/duckietown/Software
Tip revision: 8e9532222c2626efee306248bb0adc86c3cc4aa5 authored by joe-wl on 19 April 2016, 14:02:31 UTC
modified generate_duckietown_map to fix node 33 and output to correct location
modified generate_duckietown_map to fix node 33 and output to correct location
Tip revision: 8e95322
Makefile
catkin_ws := catkin_ws
scuderia := scuderia.yaml
machines := $(catkin_ws)/src/duckietown/machines
all: $(machines)
$(machines): $(scuderia)
python setup/create-machines-file.py $(scuderia) > $(machines)
fix-time:
echo "Calling ntpdate to fix time"
sudo ntpdate -u us.pool.ntp.org
fix-time2:
sudo ntpdate -s time.nist.gov
catkin-clean:
rm -rf $(catkin_ws)/build
build-parallel:
catkin_make -C $(catkin_ws) --make-args "-j4"
build:
catkin_make -C $(catkin_ws)
# Unit tests
# Teddy: make it so "make unittests" runs all unit tests
unittests-environment:
bash -c "source environment.sh; python setup/sanity_checks"
unittests:
$(MAKE) unittests-environment
bash -c "source environment.sh; catkin_make -C $(catkin_ws) run_tests; catkin_test_results $(catkin_ws)/build/test_results/"
# HW testing
test-camera:
echo "Testing Camera HW by taking a picture (smile!)."
raspistill -t 1000 -o test-camera.jpg
test-led:
echo "Calibration blinking pattern"
bash -c "source environment.sh; rosrun rgb_led blink test_all_1"
test-turn-right:
echo "Calibrating right turn"
bash -c "rostest indefinite_navigation calibrate_turn.test veh:=$(vehicle_name) type:=right"
test-turn-left:
echo "Calibrating left turn"
bash -c "rostest indefinite_navigation calibrate_turn.test veh:=$(vehicle_name) type:=left"
test-turn-forward:
echo "Calibrating forward turn"
bash -c "rostest indefinite_navigation calibrate_turn.test veh:=$(vehicle_name) type:=forward"
# Basic demos
vehicle_name=$(shell hostname)
demo-joystick: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; roslaunch duckietown joystick.launch veh:=$(vehicle_name)"
demo-joystick-camera: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; roslaunch duckietown joystick_camera.launch veh:=$(vehicle_name)"
demo-line_detector: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; roslaunch duckietown line_detector.launch veh:=$(vehicle_name)"
demo-joystick-perception: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos master.launch fsm_file_name:=joystick"
demo-lane-following-%: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos lane_following.launch line_detector_param_file_name:=$*"
demo-led-fancy1: unittests-environment
bash -c "source environment.sh; rosrun rgb_led fancy1"
demo-led-fancy2: unittests-environment
bash -c "source environment.sh; rosrun rgb_led fancy2"
demo-led-blink-%: unittests-environment
bash -c "source environment.sh; rosrun rgb_led blink $*"
# openhouse demos
openhouse-dp3: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos indefinite_navigation.launch"
openhouse-dp3-ld1a: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos indefinite_navigation.launch line_detector_param_file_name:=default"
openhouse-dp3-1d1b: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos indefinite_navigation.launch line_detector_param_file_name:=Guy anti_instagram:=true"
openhouse-dp3-1d1c: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos indefinite_navigation.launch line_detector_param_file_name:=universal anti_instagram:=true"
openhouse-dp3-1d2a: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos indefinite_navigation.launch line_detector_param_file_name:=default anti_instagram:=true /lane_following/line_detection:=false /lane_following/line_detection2:=true"
openhouse-dp3-1d2b: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos indefinite_navigation.launch line_detector_param_file_name:=universal anti_instagram:=true /lane_following/line_detection:=false /lane_following/line_detection2:=true"
openhouse-dp2: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos obstacle_vehicle_avoid.launch"
openhouse-dp2-vehicle: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos vehicle_avoid.launch"
openhouse-dp2-obstacle: unittests-environment
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos obstacle_avoid.launch"
openhouse-dp6b:
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos mission_planning.launch"
openhouse-dp6b-laptop-%:
bash -c "source set_ros_master.sh $*; rqt --force-discover"