-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring back micro-ros-agent and SensorGps for mock GPS node
- Loading branch information
Showing
25 changed files
with
677 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: "3.4" | ||
|
||
services: | ||
# Runs Ardupilot MAVROS launch configuration instead of default PX4 micro-ros | ||
gisnav: | ||
command: ros2 launch gisnav ardupilot.launch.py |
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
File renamed without changes.
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 @@ | ||
FROM microros/micro-ros-agent:foxy | ||
|
||
LABEL maintainer="Harri Makelin <hmakelin@protonmail.com>" | ||
|
||
RUN cd /uros_ws && \ | ||
mkdir src && \ | ||
cd src && \ | ||
git clone https://github.com/px4/px4_msgs.git && \ | ||
cd .. && \ | ||
. /opt/ros/foxy/setup.sh && \ | ||
colcon build --packages-select px4_msgs |
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,3 @@ | ||
subscriptions: | ||
- topic: /fmu/in/sensor_gps | ||
type: px4_msgs::msg::SensorGps |
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,44 @@ | ||
import argparse | ||
|
||
import yaml | ||
|
||
|
||
def merge_yaml_files(src_file, dest_file): | ||
""" | ||
Merge the content of the source YAML file into the destination YAML file in-place. | ||
:param src_file: Path to the source YAML file | ||
:param dest_file: Path to the destination YAML file | ||
""" | ||
# Read source YAML file | ||
with open(src_file, "r") as src: | ||
src_yaml = yaml.safe_load(src) | ||
|
||
# Read destination YAML file | ||
with open(dest_file, "r") as dest: | ||
dest_yaml = yaml.safe_load(dest) | ||
|
||
# Merge the contents of the source file into the destination file | ||
dest_yaml.update(src_yaml) | ||
|
||
# Write the merged content back to the destination file | ||
with open(dest_file, "w") as dest: | ||
yaml.dump(dest_yaml, dest, default_flow_style=False) | ||
|
||
|
||
def main(): | ||
""" | ||
Parse command-line arguments and call the merge_yaml_files function with | ||
the provided file paths. | ||
""" | ||
parser = argparse.ArgumentParser(description="Merge two YAML files") | ||
parser.add_argument("src_file", help="Path to the source YAML file") | ||
parser.add_argument("dest_file", help="Path to the destination YAML file") | ||
|
||
args = parser.parse_args() | ||
|
||
merge_yaml_files(args.src_file, args.dest_file) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
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.