forked from hchengwang/Software-duckietown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
679 changed files
with
58,315 additions
and
1,899 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
tmp | ||
*~ | ||
*.bag | ||
*.pyc | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export FOO="BAR" |
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
# New policy: DUCKIETOWN_ROOT is implicit in the choice of running this script | ||
|
||
[ -z "$HOSTNAME" ] && { echo -e "\n\nThe variable HOSTNAME is not set. I need this info for setting up ROS. \n\n\n\n"; return 2; } | ||
|
||
# Do not compile Lisp messages | ||
# XXX: not sure if this is the place to put this. | ||
export ROS_LANG_DISABLE=gennodejs:geneus:genlisp | ||
|
||
shell=`basename $SHELL` | ||
echo "Activating ROS with shell: $SHELL" | ||
source /opt/ros/kinetic/setup.$shell | ||
|
||
export HOSTNAME=$HOSTNAME | ||
export ROS_HOSTNAME=$HOSTNAME.autolab.ethz.ch | ||
echo "Set ROS_HOSTNAME to: $ROS_HOSTNAME" | ||
|
||
export DUCKIETOWN_ROOT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | ||
echo "Set DUCKIETOWN_ROOT to: $DUCKIETOWN_ROOT" | ||
|
||
export PYTHONPATH=$DUCKIETOWN_ROOT/catkin_ws/src:$PYTHONPATH | ||
echo "Set PYTHONPATH to: $PYTHONPATH" | ||
|
||
# Cannot make machines before building | ||
# echo "Building machines file..." | ||
# make -C $DUCKIETOWN_ROOT machines | ||
|
||
echo "Activating development environment..." | ||
source $DUCKIETOWN_ROOT/catkin_ws/devel/setup.$shell | ||
|
||
if [ 2015 -ge $(date +%Y) ]; | ||
then | ||
>&2 echo "Error! Time travel detected. System time is: $(date)" | ||
fi | ||
|
||
# add the shortcuts to the path | ||
export PATH=$PATH:$DUCKIETOWN_ROOT/shortcuts | ||
|
||
exec "$@" #Passes arguments. Need this for ROS remote launching to work. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
echo "Setting ROS_MASTER_URI..." | ||
if [ $# -gt 0 ]; then | ||
# provided a hostname, use it as ROS_MASTER_URI | ||
export ROS_MASTER_URI=http://$1.autolab.ethz.ch:11311/ | ||
else | ||
[ -z "$HOSTNAME" ] && { echo -e "\n\nThe variable HOSTNAME is not set. I need this info for setting up ROS. \n\n\n\n"; return 2; } | ||
echo "No hostname provided. Using $HOSTNAME." | ||
export ROS_MASTER_URI=http://$HOSTNAME.autolab.ethz.ch:11311/ | ||
fi | ||
echo "ROS_MASTER_URI set to $ROS_MASTER_URI" |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
demos2017: | ||
@echo "$(sep) 2017 demos" | ||
@echo | ||
@echo "These were the 2017 demos." | ||
@echo | ||
@echo TODO: to write | ||
@echo | ||
|
||
coordination2017: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos stop_sign_coordination2017.launch" | ||
|
||
trafficLights2017: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos traffic_light_coordination.launch" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
megacity: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos megacity.launch" | ||
|
||
megacity-%: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos megacity.launch city:=$*" | ||
|
||
megacity-no-maintenance: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos megacity-no-maintenance.launch" | ||
|
||
tcp-server: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos tcp_server.launch" | ||
|
||
virjoy-%: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh $*; source set_vehicle_name.sh $*; python misc/virtualJoy/virtualJoy.py" | ||
|
||
parallel-autonomy: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos parallel_autonomy.launch" | ||
|
||
formula-d-wheel-%: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh $*; source set_vehicle_name.sh $*; roslaunch duckietown_demos formula_D_steering_wheel.launch veh:=$*" | ||
|
||
formula-d: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; roslaunch duckietown_demos formula_D.launch" | ||
|
||
camera-%: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh $*; source set_vehicle_name.sh $*; rosrun image_view image_view image:='/$*/camera_node/image' _image_transport:=compressed" | ||
camera-joy-%: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh $*; source set_vehicle_name.sh $*; source misc/camera_joy.sh $*" | ||
|
||
set-in-charger-%: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh $*; source set_vehicle_name.sh $*; rostopic pub -1 /$*/maintenance_control_node/go_charging std_msgs/Bool True; rostopic pub -1 /$*/maintenance_control_node/set_state std_msgs/String 'CHARGING'; rosparam set /$*/charging_control_node/charger 4" | ||
|
||
prepare: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh; source set_vehicle_name.sh; cd $(DUCKIEFLEET_ROOT); git pull; cd $(DUCKIETOWN_ROOT)" | ||
|
||
prepare-%: check-environment | ||
bash -c "source environment.sh; source set_ros_master.sh $*; source set_vehicle_name.sh $*" | ||
|
||
killall: check-environment | ||
bash -c "sudo pkill -9 python" | ||
|
||
git-reset: check-environment | ||
bash -c "git reset --hard HEAD" |
This file contains 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
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
...ws/src/00-infrastructure/duckietown/config/baseline/calibration/camera_extrinsic/lex.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
homography: [-4.89775e-05, -0.0002150858, -0.1818273, 0.00099274, 1.202336e-06, -0.3280241, -0.0004281805, -0.007185673, 1] |
7 changes: 7 additions & 0 deletions
7
catkin_ws/src/00-infrastructure/duckietown/config/baseline/calibration/kinematics/lex.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
baseline: 0.1 | ||
calibration_time: 2017-10-13-13-27-20 | ||
gain: 1.100000023841858 | ||
k: 27.0 | ||
limit: 1.0 | ||
radius: 0.0318 | ||
trim: -0.125 |
10 changes: 10 additions & 0 deletions
10
catkin_ws/src/00-infrastructure/duckietown/config/baseline/calibration/lex.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
homography: | ||
- 9.266699812353547e-05 | ||
- -0.00034062999909511866 | ||
- -0.29183023077323283 | ||
- 0.0012271255814808567 | ||
- 7.840958341099328e-06 | ||
- -0.3899202973949822 | ||
- 0.0004474816741134259 | ||
- -0.009284176659120184 | ||
- 0.9999999999999999 |
3 changes: 3 additions & 0 deletions
3
...astructure/duckietown/config/baseline/charging_control/charging_control_node/default.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
drive_time: 120 | ||
charge_time: 120 | ||
do_calib: False |
26 changes: 22 additions & 4 deletions
26
...rc/00-infrastructure/duckietown/config/baseline/dagu_car/car_cmd_switch_node/default.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,47 @@ | ||
mode_topic: "fsm_node/mode" | ||
source_topics: #Mapping from cmd source name to topics | ||
lane: "lane_controller_node/car_cmd" | ||
intersection: "open_loop_intersection_control_node/car_cmd" | ||
|
||
# intersection: "open_loop_intersection_control_node/car_cmd" | ||
# coordination: "simple_stop_controller_node/car_cmd" | ||
|
||
# intersection: "intersection_navigation_node/cmds_out" #NOTE for open loop intersection navigation | ||
intersection: "lane_controller_node/car_cmd" #NOTE for closed loop intersection navigation | ||
coordination: "coordinator_node/car_cmd" | ||
#coordination: "implicit_coordination_node/car_cmd" #NOTE for implicit coordination | ||
|
||
joystick: "joy_mapper_node/car_cmd" | ||
vehicle: "vehicle_avoidance_control_node/car_cmd" | ||
obstacle: "simple_stop_controller_node/car_cmd" | ||
parallel_autonomy: "lane_supervisor_node/car_cmd" | ||
recovery: "lane_recovery_node/car_cmd" # not implemented yet | ||
deep_learning: "duckiebot_il_lane_following/car_cmd" | ||
parking: "lane_controller_node/car_cmd" | ||
calib: "auto_calibration_node/car_cmd" | ||
calib_calc: "auto_calibration_calculation_node/car_cmd" | ||
stop: "simple_stop_controller_node/car_cmd" | ||
#stop: "stop_node/car_cmd" if above does not work this one works | ||
|
||
mappings: #Mapping from FSMStates.state to cmd source names. Allows different FSM mode to use the same source. | ||
LANE_FOLLOWING: "lane" | ||
LANE_FOLLOWING: "vehicle" #TODO blackmagic | ||
LANE_FOLLOWING_AVOID: "lane" | ||
ARRIVE_AT_STOP_LINE: "stop" | ||
INTERSECTION_CONTROL: "intersection" | ||
INTERSECTION_COORDINATION: "stop" | ||
NORMAL_JOYSTICK_CONTROL: "joystick" | ||
SAFE_JOYSTICK_CONTROL: "joystick" | ||
SAFE_JOYSTICK_CONTROL: "parallel_autonomy" | ||
AVOID_OBSTACLE: "obstacle" | ||
AVOID_VEHICLE: "vehicle" | ||
LANE_RECOVERY: "recovery" | ||
INTERSECTION_RECOVERY: "recovery" | ||
PARALLEL_AUTONOMY: "parallel_autonomy" | ||
PARALLEL_AUTONOMY: "parallel_autonomy" | ||
LOCALIZATION: "stop" | ||
DEEP_LANE_FOLLOWING: "deep_learning" | ||
PARKING: "parking" | ||
ARRIVE_AT_STOP_LINE: "stop" | ||
INTERSECTION_PLANNING: "stop" | ||
CALIBRATING: "calib" | ||
CALIBRATING_CALC: "calib_calc" | ||
|
||
IN_CHARGING_AREA: "vehicle" | ||
CHARGING_FIRST_IN_LINE: "stop" |
22 changes: 22 additions & 0 deletions
22
...0-infrastructure/duckietown/config/baseline/dagu_car/car_cmd_switch_node/default2017.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
mode_topic: "fsm_node/mode" | ||
source_topics: #Mapping from cmd source name to topics | ||
lane: "lane_controller_node/car_cmd" | ||
intersection: "open_loop_intersection_control_node/car_cmd" | ||
coordination: "coordinator_node/car_cmd" | ||
joystick: "joy_mapper_node/car_cmd" | ||
vehicle: "vehicle_avoidance_control_node/car_cmd" | ||
obstacle: "simple_stop_controller_node/car_cmd" | ||
parallel_autonomy: "lane_supervisor_node/car_cmd" | ||
recovery: "lane_recovery_node/car_cmd" # not implemented yet | ||
mappings: #Mapping from FSMStates.state to cmd source names. Allows different FSM mode to use the same source. | ||
LANE_FOLLOWING: "lane" | ||
LANE_FOLLOWING_AVOID: "lane" | ||
INTERSECTION_CONTROL: "intersection" | ||
COORDINATION: "coordination" | ||
JOYSTICK_CONTROL: "joystick" | ||
AVOID_OBSTACLE: "obstacle" | ||
AVOID_VEHICLE: "vehicle" | ||
LANE_RECOVERY: "recovery" | ||
INTERSECTION_RECOVERY: "recovery" | ||
PARALLEL_AUTONOMY: "parallel_autonomy" | ||
LOCALIZATION: "stop" |
29 changes: 29 additions & 0 deletions
29
...-infrastructure/duckietown/config/baseline/dagu_car/car_cmd_switch_node/no_veh_avoid.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
mode_topic: "fsm_node/mode" | ||
source_topics: #Mapping from cmd source name to topics | ||
lane: "lane_controller_node/car_cmd" | ||
intersection: "open_loop_intersection_control_node/car_cmd" | ||
# coordination: "simple_stop_controller_node/car_cmd" | ||
joystick: "joy_mapper_node/car_cmd" | ||
vehicle: "vehicle_avoidance_control_node/car_cmd" | ||
obstacle: "simple_stop_controller_node/car_cmd" | ||
parallel_autonomy: "lane_supervisor_node/car_cmd" | ||
recovery: "lane_recovery_node/car_cmd" # not implemented yet | ||
deep_learning: "duckiebot_il_lane_following/car_cmd" | ||
parking: "lane_controller_node/car_cmd" | ||
stop: "simple_stop_controller_node/car_cmd" | ||
mappings: #Mapping from FSMStates.state to cmd source names. Allows different FSM mode to use the same source. | ||
LANE_FOLLOWING: "lane" #TODO blackmagic | ||
LANE_FOLLOWING_AVOID: "lane" | ||
INTERSECTION_CONTROL: "intersection" | ||
INTERSECTION_COORDINATION: "stop" | ||
NORMAL_JOYSTICK_CONTROL: "joystick" | ||
SAFE_JOYSTICK_CONTROL: "joystick" | ||
AVOID_OBSTACLE: "obstacle" | ||
AVOID_VEHICLE: "vehicle" | ||
LANE_RECOVERY: "recovery" | ||
INTERSECTION_RECOVERY: "recovery" | ||
PARALLEL_AUTONOMY: "parallel_autonomy" | ||
LOCALIZATION: "stop" | ||
DEEP_LANE_FOLLOWING: "deep_learning" | ||
PARKING: "parking" | ||
ARRIVE_AT_STOP_LINE: "stop" |
This file contains 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
6 changes: 6 additions & 0 deletions
6
...astructure/duckietown/config/baseline/fleet_planning/actions_dispatcher_node/default.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
initial_mode: JOYSTICK_CONTROL | ||
localization_mode: none | ||
trigger_mode: INTERSECTION_CONTROL | ||
reset_mode: JOYSTICK_CONTROL | ||
stop_line_wait_time: 2.0 |
Oops, something went wrong.