Skip to content

Commit

Permalink
updates from the camp
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Oct 23, 2024
1 parent ac79d93 commit f154ef6
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<remap from="tag_detections" to="~/tag_detections" />
<remap from="tag_detections_image" to="~/tag_detections_image" />

<param name="publish_tag_detections_image" type="bool" value="true" /><!-- default: false -->
<param name="publish_tag_detections_image" type="bool" value="false" />
<param name="queue_size" type="int" value="$(arg queue_size)" />

</node>
Expand Down
5 changes: 1 addition & 4 deletions docker/shared_data/gnss/shared_data/custom_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@ mrs_uav_managers:

takeoff:

during_takeoff:
controller: "MpcController"

after_takeoff:
controller: "MpcController"
controller: "Se3Controller"
26 changes: 6 additions & 20 deletions docker/shared_data/vio/shared_data/custom_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,19 @@ mrs_uav_managers:
# available in mrs_uav_state_estimators: gps_garmin, gps_baro, rtk, aloam, ground_truth, dummy
state_estimators: [
"open_vins",
"vins_kickoff",
]

initial_state_estimator: "vins_kickoff" # will be used as the first state estimator
initial_state_estimator: "open_vins" # will be used as the first state estimator

uav_manager:

landing:

# those two must apply simultaneously
landing_cutoff_mass_factor: 0.75 # how much lighter does the drone appear to be?
landing_cutoff_timeout: 0.5 # [s] how long does the throttle has to be below the mass factor

takeoff:

during_takeoff:
controller: "MpcController"

after_takeoff:
controller: "MpcController"

control_manager:

safety:
controller: "Se3Controller"

# emergency landing (still feedback)
eland:
midair_activation:

cutoff_mass_factor: 0.75 # how much lighter does the drone appear to be?
cutoff_timeout: 0.5 # [s] how long does the throttle has to be below the mass factor
after_activation:
controller: "Se3Controller"
tracker: "MpcTracker"
2 changes: 1 addition & 1 deletion docker/uav_sessions/gnss/variables.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ RUN_TYPE=realworld
UAV_NAME=uav80
UAV_TYPE=robofly
ROS_MASTER_URI=http://localhost:11311
UAV_MASS=0.8
UAV_MASS=0.7
UAV_ID=c4750f
MRS_UAV_SYSTEM_VERSION=1.5.0
2 changes: 1 addition & 1 deletion docker/uav_sessions/precise_landing/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
volumes:

catkin_workspace:

shared_data:

services:
Expand Down
2 changes: 1 addition & 1 deletion docker/uav_sessions/sensor_diagnostics/variables.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ RUN_TYPE=realworld
UAV_NAME=uav80
UAV_TYPE=robofly
ROS_MASTER_URI=http://localhost:11311
UAV_MASS=0.8
UAV_MASS=0.7
UAV_ID=c4750f
MRS_UAV_SYSTEM_VERSION=1.5.0
13 changes: 1 addition & 12 deletions docker/uav_sessions/vio/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ volumes:

bag_files:

catkin_workspace:

services:

# will copy session-specific data shared between containers from the shared_data container to a shared volume
Expand All @@ -24,13 +22,6 @@ services:
- uav_custom_files:/tmp/docker/uav_custom_files:consistent
command: sh -c "rm -rvf /tmp/docker/uav_custom_files/*; mkdir -pv /tmp/docker/uav_custom_files; cp -rv /etc/docker/uav_custom_files/${UAV_TYPE}/${UAV_ID}/* /tmp/docker/uav_custom_files/"

# 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 roscore
# this is the first container in the ROS pipeline
roscore:
Expand Down Expand Up @@ -120,10 +111,9 @@ services:
network_mode: host
volumes:
- shared_data:/etc/docker/shared_data:consistent
- catkin_workspace:/etc/docker/catkin_workspace:consistent
env_file:
- ./stack.env
command: bash -c "source /etc/docker/catkin_workspace/devel/setup.bash && waitForHw && roslaunch mrs_uav_autostart automatic_start.launch"
command: bash -c "waitForHw && roslaunch mrs_uav_autostart automatic_start.launch"

# starts `rosbag record`
rosbag:
Expand Down Expand Up @@ -152,7 +142,6 @@ services:
- shared_data:/etc/docker/shared_data:consistent
- uav_custom_files:/etc/docker/uav_custom_files:consistent
- /dev/:/dev/
- catkin_workspace:/etc/docker/catkin_workspace:consistent
command:
- bash --rcfile /opt/ros/noetic/setup.bash
privileged: true
Expand Down

0 comments on commit f154ef6

Please sign in to comment.