-
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
20 changed files
with
286 additions
and
27 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
24 changes: 24 additions & 0 deletions
24
docker/shared_data/gnss/shared_data/precise_landing/apriltag.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,24 @@ | ||
# AprilTag 3 code parameters | ||
# Find descriptions in apriltag/include/apriltag.h:struct apriltag_detector | ||
# apriltag/include/apriltag.h:struct apriltag_family | ||
tag_family: 'tagCustom48h12' # options: tagStandard52h13, tagStandard41h12, tag36h11, tag25h9, tag16h5, tagCustom48h12, tagCircle21h7, tagCircle49h12 | ||
tag_threads: 2 # default: 2 | ||
tag_decimate: 1.0 # default: 1.0 | ||
tag_blur: 0.0 # default: 0.0 | ||
tag_refine_edges: 1 # default: 1 | ||
tag_debug: 0 # default: 0 | ||
max_hamming_dist: 2 # default: 2 (Tunable parameter with 2 being a good choice - values >=3 consume large amounts of memory. Choose the largest value possible.) | ||
# Other parameters | ||
publish_tf: true # default: false | ||
transport_hint: "raw" # default: raw, see http://wiki.ros.org/image_transport#Known_Transport_Packages for options | ||
|
||
# standalone_tags: | ||
# [ | ||
# {id: ID, size: SIZE, name: NAME}, | ||
# ... | ||
# ] | ||
standalone_tags: | ||
[ | ||
{id: 0, size: 0.129, name: recursive_tag_1_big}, | ||
{id: 10, size: 0.0255, name: recursive_tag_1_small}, | ||
] |
23 changes: 23 additions & 0 deletions
23
docker/shared_data/gnss/shared_data/precise_landing/landing_controller.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,23 @@ | ||
desired_heading: | ||
|
||
relative_to_pad: | ||
enabled: false | ||
heading: 0 # [rad] | ||
|
||
stages: | ||
|
||
aligning: | ||
speed: 0.2 # [m/s] | ||
height: 1.3 # [m] | ||
|
||
repeating: | ||
height: 1.3 # [m] | ||
|
||
aborting: | ||
height: 1.3 # [m] | ||
|
||
descending: | ||
speed: 0.2 # [m/s] | ||
|
||
landing: | ||
speed: 0.2 # [m/s] |
6 changes: 6 additions & 0 deletions
6
docker/shared_data/gnss/shared_data/precise_landing/landing_estimator.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 @@ | ||
# the list of tag ids order according to their priority (highest-to-lowest) | ||
tag_ids: [0, 10] # [-] | ||
|
||
# the estimation will happen in this frame of refernece | ||
# (detections are transformed to this frame first) | ||
estimation_frame: "fixed_origin" |
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
38 changes: 38 additions & 0 deletions
38
docker/shared_data/gnss/shared_data/world_temesvar_field.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,38 @@ | ||
world_origin: | ||
|
||
units: "LATLON" # {"UTM, "LATLON"} | ||
|
||
origin_x: 49.36225 | ||
origin_y: 14.26143 | ||
|
||
safety_area: | ||
|
||
enabled: true | ||
|
||
horizontal: | ||
|
||
# the frame of reference in which the points are expressed | ||
frame_name: "latlon_origin" | ||
|
||
# polygon | ||
# | ||
# x, y [m] for any frame_name except latlon_origin | ||
# x = latitude, y = longitude [deg] for frame_name=="latlon_origin" | ||
points: [ | ||
49.36179, 14.26094, | ||
49.36166, 14.26124, | ||
49.36173, 14.26190, | ||
49.36311, 14.26350, | ||
49.36355, 14.26084, | ||
49.36232, 14.26025, | ||
49.362091, 14.260506, | ||
49.361990, 14.260631, | ||
] | ||
|
||
vertical: | ||
|
||
# the frame of reference in which the max&min z is expressed | ||
frame_name: "world_origin" | ||
|
||
max_z: 20.0 | ||
min_z: -5.0 |
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
24 changes: 24 additions & 0 deletions
24
docker/shared_data/vio/shared_data/precise_landing/apriltag.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,24 @@ | ||
# AprilTag 3 code parameters | ||
# Find descriptions in apriltag/include/apriltag.h:struct apriltag_detector | ||
# apriltag/include/apriltag.h:struct apriltag_family | ||
tag_family: 'tagCustom48h12' # options: tagStandard52h13, tagStandard41h12, tag36h11, tag25h9, tag16h5, tagCustom48h12, tagCircle21h7, tagCircle49h12 | ||
tag_threads: 2 # default: 2 | ||
tag_decimate: 1.0 # default: 1.0 | ||
tag_blur: 0.0 # default: 0.0 | ||
tag_refine_edges: 1 # default: 1 | ||
tag_debug: 0 # default: 0 | ||
max_hamming_dist: 2 # default: 2 (Tunable parameter with 2 being a good choice - values >=3 consume large amounts of memory. Choose the largest value possible.) | ||
# Other parameters | ||
publish_tf: true # default: false | ||
transport_hint: "raw" # default: raw, see http://wiki.ros.org/image_transport#Known_Transport_Packages for options | ||
|
||
# standalone_tags: | ||
# [ | ||
# {id: ID, size: SIZE, name: NAME}, | ||
# ... | ||
# ] | ||
standalone_tags: | ||
[ | ||
{id: 0, size: 0.129, name: recursive_tag_1_big}, | ||
{id: 10, size: 0.0255, name: recursive_tag_1_small}, | ||
] |
26 changes: 26 additions & 0 deletions
26
docker/shared_data/vio/shared_data/precise_landing/landing_controller.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,26 @@ | ||
# what controller will be used for the landing | ||
controller: "MpcController" | ||
|
||
desired_heading: | ||
|
||
relative_to_pad: | ||
enabled: false | ||
heading: 0 # [rad] | ||
|
||
stages: | ||
|
||
aligning: | ||
speed: 0.2 # [m/s] | ||
height: 1.3 # [m] | ||
|
||
repeating: | ||
height: 1.3 # [m] | ||
|
||
aborting: | ||
height: 1.3 # [m] | ||
|
||
descending: | ||
speed: 0.2 # [m/s] | ||
|
||
landing: | ||
speed: 0.2 # [m/s] |
6 changes: 6 additions & 0 deletions
6
docker/shared_data/vio/shared_data/precise_landing/landing_estimator.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 @@ | ||
# the list of tag ids order according to their priority (highest-to-lowest) | ||
tag_ids: [0, 10] # [-] | ||
|
||
# the estimation will happen in this frame of refernece | ||
# (detections are transformed to this frame first) | ||
estimation_frame: "fixed_origin" |
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
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,54 @@ | ||
volumes: | ||
|
||
catkin_workspace: | ||
|
||
shared_data: | ||
|
||
services: | ||
|
||
# will copy session-specific data shared between containers from the shared_data container to a shared volume | ||
copy_shared_data: | ||
image: fly4future/robofly:shared_data_vio | ||
volumes: | ||
- shared_data:/tmp/docker/shared_data:consistent | ||
command: sh -c "rm -rvf /tmp/docker/shared_data/*; mkdir -pv /tmp/docker/shared_data; cp -rv /etc/docker/shared_data/* /tmp/docker/shared_data/" | ||
|
||
# will copy user's ROS catkin workspace from the 'transfer' alpine image to a shared volume | ||
copy_catkin_workspace: | ||
image: precise_landing:1.0.0 | ||
volumes: | ||
- catkin_workspace:/tmp/docker/catkin_workspace:consistent | ||
command: sh -c "rm -rvf /tmp/docker/catkin_workspace/*; mkdir -pv /tmp/docker/catkin_workspace; cp -rv /etc/docker/catkin_workspace/* /tmp/docker/catkin_workspace/" | ||
|
||
# starts the HW API for connecting the MRS UAV System to PX4 | ||
custom_package: | ||
image: ctumrs/mrs_uav_system:${MRS_UAV_SYSTEM_VERSION} | ||
network_mode: host | ||
depends_on: | ||
- copy_catkin_workspace | ||
- copy_shared_data | ||
volumes: | ||
- catkin_workspace:/etc/docker/catkin_workspace:consistent | ||
- shared_data:/etc/docker/shared_data:consistent | ||
env_file: | ||
- ./stack.env | ||
command: bash -c "sleep 1 && source /etc/docker/catkin_workspace/devel/setup.bash && waitForRos && roslaunch mrs_precise_landing precise_landing.launch apriltag_config:=/etc/docker/shared_data/precise_landing/apriltag.yaml camera_node:=camera_down_throttled image_topic:=image_raw estimator_config:=/etc/docker/shared_data/precise_landing//landing_estimator.yaml controller_config:=/etc/docker/shared_data/precise_landing//landing_controller.yaml" | ||
|
||
# this container can be used to access a terminal with ROS inside the compose session | ||
terminal: | ||
image: ctumrs/mrs_uav_system:${MRS_UAV_SYSTEM_VERSION} | ||
network_mode: host | ||
depends_on: | ||
- copy_catkin_workspace | ||
- copy_shared_data | ||
env_file: | ||
- ./stack.env | ||
entrypoint: ["/bin/bash", "-c"] | ||
volumes: | ||
- catkin_workspace:/etc/docker/catkin_workspace:consistent | ||
- /dev/:/dev/ | ||
command: | ||
- bash --rcfile /etc/docker/catkin_workspace/devel/setup.bash | ||
privileged: true | ||
stdin_open: true | ||
tty: true |
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 @@ | ||
UAV_NAME=uav80 | ||
ROS_MASTER_URI=http://localhost:11311 | ||
MRS_UAV_SYSTEM_VERSION=1.5.0 |
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
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
Oops, something went wrong.