-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/launch_improvements' into development
- Loading branch information
Showing
13 changed files
with
150 additions
and
47 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
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
Submodule autonomy_engine
updated
11 files
4 changes: 4 additions & 0 deletions
4
src/flightstack/flightstack_bringup/configs/global/fs_vars.env
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 |
---|---|---|
|
@@ -22,21 +22,21 @@ You can contact the authors at <[email protected]>, <christian.brommer@ie | |
<arg name="config_filepath" default="$(find flightstack_bringup)/configs/autonomy/config_dh.yaml" /> | ||
|
||
<!-- autonomy topics --> | ||
<arg name="watchdog_heartbeat_topic" default="/watchdog/status" /> | ||
<arg name="watchdog_status_topic" default="/watchdog/log" /> | ||
<arg name="watchdog_action_topic" default="/watchdog/action" /> | ||
<arg name="mission_sequencer_request_topic" default="/autonomy/request" /> | ||
<arg name="mission_sequencer_response_topic" default="/autonomy/response" /> | ||
<arg name="landing_detection_topic" default="/toland_detector/is_landed" /> | ||
<arg name="mission_sequencer_waypoints_topic" default="/mission_sequencer/waypoint_list" /> | ||
<arg name="watchdog_heartbeat_topic" default="watchdog/status" /> | ||
<arg name="watchdog_status_topic" default="watchdog/log" /> | ||
<arg name="watchdog_action_topic" default="watchdog/action" /> | ||
<arg name="mission_sequencer_request_topic" default="autonomy/request" /> | ||
<arg name="mission_sequencer_response_topic" default="autonomy/response" /> | ||
<arg name="landing_detection_topic" default="toland_detector/is_landed" /> | ||
<arg name="mission_sequencer_waypoints_topic" default="mission_sequencer/waypoint_list" /> | ||
|
||
<!-- autonomy services --> | ||
<arg name="watchdog_start_service_name" default="/watchdog/service/start" /> | ||
<arg name="data_recrding_service_name" default="/data_recorder/record" /> | ||
<arg name="takeoff_service_name" default="/toland_detector/service/takeoff" /> | ||
<arg name="estimator_supervisor_service_name" default="/estimator_supervisor/service/supervision" /> | ||
<arg name="estimator_init_service_name" default="/$(env FS_ESTIMATOR_NODE_NAME)/init_service" /> | ||
<arg name="inflight_sensor_init_services_name" default="[/sensor/start]" /> | ||
<arg name="watchdog_start_service_name" default="watchdog/service/start" /> | ||
<arg name="data_recrding_service_name" default="data_recorder/record" /> | ||
<arg name="takeoff_service_name" default="toland_detector/service/takeoff" /> | ||
<arg name="estimator_supervisor_service_name" default="estimator_supervisor/service/supervision" /> | ||
<arg name="estimator_init_service_name" default="$(env FS_ESTIMATOR_NODE_NAME)/init_service" /> | ||
<arg name="inflight_sensor_init_services_name" default="[sensor/start]" /> | ||
|
||
<!-- other arguments --> | ||
<arg name="watchdog_rate_Hz" default="0.5" /> | ||
|
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,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2022 Martin Scheiber, Christian Brommer, | ||
Copyright (C) 2022-2023 Martin Scheiber, Christian Brommer, | ||
and others, Control of Networked Systems, University of Klagenfurt, Austria. | ||
All rights reserved. | ||
|
@@ -13,10 +13,12 @@ You can contact the authors at <[email protected]>, <christian.brommer@ie | |
--> | ||
|
||
<launch> | ||
<arg name="dev_id" default="1" /> | ||
<arg name="dev_type" default="xu4" /> <!-- or "pi" --> | ||
<arg name="dev_port" default="" /> <!--ignored if empty --> | ||
<arg name="dev_baud" default="" /> <!--ignored if empty --> | ||
<arg name="dev_id" default="1" /> | ||
<arg name="dev_type" default="xu4" /> <!-- or "pi" --> | ||
<arg name="dev_port" default="" /> <!--ignored if empty --> | ||
<arg name="dev_baud" default="" /> <!--ignored if empty --> | ||
<arg name="px4_config_file" default="$(find mavros)/launch/px4_config.yaml" /> | ||
<arg name="px4_pluginlists_file" default="$(find mavros)/launch/px4_pluginlists.yaml" /> | ||
|
||
<!-- Optitrack Arguments --> | ||
<arg name="use_gps" default="False" /> | ||
|
@@ -29,6 +31,9 @@ You can contact the authors at <[email protected]>, <christian.brommer@ie | |
<arg name="platform" value="$(arg dev_type)" if="$(eval not arg('dev_port'))" /> | ||
<arg name="device_id" value="$(arg dev_port)" unless="$(eval not arg('dev_port'))"/> | ||
<arg name="conn_baudrate" value="$(arg dev_baud)" unless="$(eval not arg('dev_baud'))"/> | ||
|
||
<arg name="config_file" value="$(arg px4_config_file)" /> | ||
<arg name="pluginlists_file" value="$(arg px4_pluginlists_file)" /> | ||
</include> | ||
<include file="$(find flightstack_bringup)/launch/individual/optitrack_aau_dronehall.launch" unless="$(arg use_gps)"> | ||
<arg name="object_name" value="$(arg optitrack_object_name)" /> | ||
|
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,6 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2022 Martin Scheiber, Christian Brommer, | ||
Copyright (C) 2022-2023 Martin Scheiber, Christian Brommer, | ||
and others, Control of Networked Systems, University of Klagenfurt, Austria. | ||
All rights reserved. | ||
|
@@ -19,10 +19,35 @@ You can contact the authors at <[email protected]>, <christian.brommer@ie | |
<arg name="device_id" default="SAC0" if="$(eval arg('platform') == 'xu4')" /> | ||
<arg name="device_id" default="THS0" if="$(eval arg('platform') == 'agx')" /> | ||
<arg name="device_id" default="USB0" if="$(eval arg('platform') == 'pc')" /> | ||
<arg name="device_id" default="udp://:[email protected]:14577" | ||
if="$(eval arg('platform') == 'sim')" /> | ||
|
||
<arg name="conn_baudrate" default="921600" /> | ||
|
||
<include file="$(find mavros)/launch/px4.launch"> | ||
<arg name="fcu_url" default="/dev/tty$(arg device_id):$(arg conn_baudrate)" /> | ||
<!-- default mavros parameters --> | ||
<arg name="config_file" default="$(find mavros)/launch/px4_config.yaml" /> | ||
<arg name="pluginlists_file" default="$(find mavros)/launch/px4_pluginlists.yaml" /> | ||
<arg name="fcu_url" default="/dev/tty$(arg device_id):$(arg conn_baudrate)" | ||
unless="$(eval arg('platform') == 'sim')" /> | ||
<arg name="fcu_url" default="$(arg device_id)" | ||
if="$(eval arg('platform') == 'sim')" /> | ||
<arg name="gcs_url" default="" /> | ||
<arg name="tgt_system" default="1" /> | ||
<arg name="tgt_component" default="1" /> | ||
<arg name="log_output" default="screen" /> | ||
<arg name="fcu_protocol" default="v2.0" /> | ||
<arg name="respawn_mavros" default="false" /> | ||
|
||
<include file="$(find mavros)/launch/node.launch"> | ||
<arg name="pluginlists_yaml" value="$(arg pluginlists_file)" /> | ||
<arg name="config_yaml" value="$(arg config_file)" /> | ||
|
||
<arg name="fcu_url" value="$(arg fcu_url)" /> | ||
<arg name="gcs_url" value="$(arg gcs_url)" /> | ||
<arg name="tgt_system" value="$(arg tgt_system)" /> | ||
<arg name="tgt_component" value="$(arg tgt_component)" /> | ||
<arg name="log_output" value="$(arg log_output)" /> | ||
<arg name="fcu_protocol" value="$(arg fcu_protocol)" /> | ||
<arg name="respawn_mavros" value="$(arg respawn_mavros)" /> | ||
</include> | ||
</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 |
---|---|---|
|
@@ -9,20 +9,37 @@ | |
# in the LICENSE file. No license in patents is granted. | ||
# | ||
# You can contact the author at <[email protected]> | ||
# and <[email protected]> | ||
# and <[email protected]>. | ||
|
||
# this bash script adheres to linux exit codes | ||
# see https://tldp.org/LDP/abs/html/exitcodes.html for further information | ||
|
||
# echo "[BASH - RS] checking sensor - Realsense" | ||
RS_IS_REMOTE=false | ||
RS_DEV_IP="10.42.0.102" | ||
RS_DEV_USER="flightstack" | ||
|
||
|
||
if [ ${RS_IS_REMOTE} == true ]; then | ||
# echo "[BASH - RS] checking sensor - Realsense" | ||
RS_CHECK="$(ssh ${RS_DEV_USER}@${RS_DEV_IP} 'rs-enumerate-devices')" | ||
# echo "[BASH - RS] status: ${RS_CHECK}" | ||
|
||
# check if device is found in lsusb | ||
RS_ID="8087:0b37" | ||
RS_STATUS="$(ssh ${RS_DEV_USER}@${RS_DEV_IP} 'lsusb' | grep ${RS_ID})" | ||
# echo "[BASH - RS] status: ${RS_STATUS}" | ||
else | ||
# echo "[BASH - RS] checking sensor - Realsense" | ||
RS_CHECK="$(rs-enumerate-devices)" | ||
# echo "[BASH - RS] status: ${RS_CHECK}" | ||
|
||
# check if device is found in lsusb | ||
RS_ID="8087:0b37" | ||
RS_STATUS="$(lsusb | grep ${RS_ID})" | ||
# echo "[BASH - RS] status: ${RS_STATUS}" | ||
fi | ||
|
||
RS_CHECK="$(rs-enumerate-devices)" | ||
# echo "[BASH - RS] status: ${RS_CHECK}" | ||
|
||
# check if device is found in lsusb | ||
RS_ID="8087:0b37" | ||
RS_STATUS="$(ssh [email protected] 'lsusb' | grep ${RS_ID})" | ||
# echo "[BASH - RS] status: ${RS_STATUS}" | ||
|
||
case $RS_STATUS in | ||
"") | ||
|
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 |
---|---|---|
|
@@ -14,12 +14,22 @@ | |
# this bash script adheres to linux exit codes | ||
# see https://tldp.org/LDP/abs/html/exitcodes.html for further information | ||
|
||
# restart realsense hub | ||
# ssh [email protected] 'sudo uhubctl -a off --delay 2 -e -R -l2 -p1' | ||
# command by chris | ||
#ssh [email protected] 'sudo uhubctl --action cycle --location 2' | ||
ssh [email protected] 'sudo uhubctl --action cycle --location 2 -R --delay 5' | ||
sleep 5 | ||
ssh [email protected] 'rs-enumerate-devices' | ||
RS_IS_REMOTE=false | ||
RS_DEV_IP="10.42.0.102" | ||
RS_DEV_USER="flightstack" | ||
|
||
if [ ${RS_IS_REMOTE} == true ]; then | ||
# restart realsense hub | ||
# ssh [email protected] 'sudo uhubctl -a off --delay 2 -e -R -l2 -p1' | ||
# command by chris | ||
#ssh [email protected] 'sudo uhubctl --action cycle --location 2' | ||
ssh ${RS_DEV_USER}@${RS_DEV_IP} 'sudo uhubctl --action cycle --location 2 -R --delay 5' | ||
sleep 5 | ||
ssh ${RS_DEV_USER}@${RS_DEV_IP} 'rs-enumerate-devices' | ||
else | ||
sudo uhubctl --action cycle --location 2 -R --delay 5 | ||
sleep 5 | ||
rs-enumerate-devices | ||
fi | ||
|
||
exit 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
Submodule mission_sequencer
updated
7 files
+1 −0 | CMakeLists.txt | |
+16 −10 | README.md | |
+5 −3 | include/mission_sequencer/mission_sequencer.hpp | |
+10 −7 | launch/mission_sequencer.launch | |
+2 −0 | msg/MissionWaypointStamped.msg | |
+13 −0 | src/mission_sequencer.cpp | |
+0 −86 | workspace.code-workspace |
Submodule mocap_bridge
added at
f8a62a
Submodule toland_flight
updated
4 files
+22 −15 | README.md | |
+14 −12 | include/toland_flight/FlightDetector.hpp | |
+7 −5 | launch/toland.launch | |
+56 −32 | src/FlightDetector.cpp |