-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add commit hooks file * add yaml lint & format * fix tab/spaces * increase line length * disable linting for now * format yaml files * add ci for pre commit * remove version * add xml formatting * format xml * add EOF fixer * format EOF * add trailing wihtespace * format trailing whitespace * add destroyed symlinks * add check-executables-have-shebangs * add more checks * add clang format * format cpp * add deps * are you sudo? * fix * add python * format python
- Loading branch information
1 parent
31a6243
commit 33d5b01
Showing
114 changed files
with
1,130 additions
and
1,054 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 +1,2 @@ | ||
BasedOnStyle: Google | ||
--- | ||
BasedOnStyle: Google |
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 @@ | ||
--- | ||
github: [senceryazici, ituauvteam] | ||
buy_me_a_coffee: ituauvteam | ||
custom: ["https://auv.itu.edu.tr/sponsorship.html"] |
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,33 @@ | ||
--- | ||
name: Pre-commit Checks | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
pre-commit: | ||
name: Run Pre-commit Checks | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
|
||
- name: Install pre-commit | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pre-commit | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang-format libxml2-utils | ||
- name: Run pre-commit | ||
run: pre-commit run --all-files | ||
|
||
- name: Check for modifications | ||
run: git diff --exit-code |
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,39 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: check-yaml | ||
files: \.(yaml|yml)$ | ||
- id: check-xml | ||
files: \.(xml|launch|launch\.xml|sdf|urdf\.xacro|xacro|urdf)$|model\.config$ | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: destroyed-symlinks | ||
- id: check-executables-have-shebangs | ||
exclude: \.cpp|\.cxx|\.hpp|\.h$ | ||
- id: forbid-submodules | ||
- id: check-added-large-files | ||
- id: check-case-conflict | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.3 | ||
hooks: | ||
- id: yamlfmt | ||
args: [--mapping, "2", --sequence, "4", --offset, "2", --width, "150", --preserve-quotes] | ||
exclude: ^auv_bringup/config/ekf.yaml$ | ||
- repo: https://github.com/lsst-ts/pre-commit-xmllint | ||
rev: v1.0.0 | ||
hooks: | ||
- id: format-xmllint | ||
files: \.(xml|launch|launch\.xml|sdf|urdf\.xacro|xacro|urdf)$|model\.config$ | ||
- repo: https://github.com/pre-commit/mirrors-clang-format | ||
rev: v19.1.5 | ||
hooks: | ||
- id: clang-format | ||
files: \.(cpp|h|hpp)$ | ||
- repo: https://github.com/psf/black | ||
rev: 24.8.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
files: \.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
--- | ||
/env/sound_speed: 1500 |
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
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 @@ | ||
--- | ||
shutdown_costmaps: false | ||
controller_frequency: 10.0 | ||
planner_patience: 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
36 changes: 15 additions & 21 deletions
36
auv_bringup/launch/inc/boards/start_expansion_board_bridge.launch.xml
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,30 +1,24 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="namespace" default="turquoise" /> | ||
<arg name="port" default="/dev/ttyACM0" /> | ||
<arg name="baudrate" default="1500000" /> | ||
<arg name="virtual_port" default="/tmp/vcom0" /> | ||
<arg name="respawn" default="true" /> | ||
|
||
<arg name="namespace" default="turquoise"/> | ||
<arg name="port" default="/dev/ttyACM0"/> | ||
<arg name="baudrate" default="1500000"/> | ||
<arg name="virtual_port" default="/tmp/vcom0"/> | ||
<arg name="respawn" default="true"/> | ||
<group ns="$(arg namespace)"> | ||
<!-- start expansion board bridge --> | ||
<node pkg="rosserial_python" type="serial_node.py" name="expansion_board_bridge_node" | ||
args="$(arg port) _baud:=$(arg baudrate)" output="screen" respawn="$(arg respawn)" /> | ||
|
||
<node pkg="rosserial_python" type="serial_node.py" name="expansion_board_bridge_node" args="$(arg port) _baud:=$(arg baudrate)" output="screen" respawn="$(arg respawn)"/> | ||
<!-- start serial to ros bridge --> | ||
<node pkg="auv_hardware_bridge" type="serial_to_ros_bridge_node" | ||
name="expansion_serial_to_ros_bridge_node" output="screen" respawn="$(arg respawn)"> | ||
<param name="virtual_port" value="$(arg virtual_port)" /> | ||
<remap from="incoming" to="board/serial_port/incoming" /> | ||
<remap from="outgoing" to="board/serial_port/outgoing" /> | ||
<node pkg="auv_hardware_bridge" type="serial_to_ros_bridge_node" name="expansion_serial_to_ros_bridge_node" output="screen" respawn="$(arg respawn)"> | ||
<param name="virtual_port" value="$(arg virtual_port)"/> | ||
<remap from="incoming" to="board/serial_port/incoming"/> | ||
<remap from="outgoing" to="board/serial_port/outgoing"/> | ||
</node> | ||
|
||
<!-- start remapper node: depth -> pose --> | ||
<node pkg="auv_hardware_bridge" type="expansion_bridge_remapper_node.py" | ||
name="expansion_bridge_remapper_node" respawn="$(arg respawn)"> | ||
<param name="pressure_sensor_position_covariance" value="0.1" /> | ||
<remap from="depth" to="sensors/external_pressure_sensor/depth" /> | ||
<remap from="pose" to="sensors/external_pressure_sensor/pose" /> | ||
<node pkg="auv_hardware_bridge" type="expansion_bridge_remapper_node.py" name="expansion_bridge_remapper_node" respawn="$(arg respawn)"> | ||
<param name="pressure_sensor_position_covariance" value="0.1"/> | ||
<remap from="depth" to="sensors/external_pressure_sensor/depth"/> | ||
<remap from="pose" to="sensors/external_pressure_sensor/pose"/> | ||
</node> | ||
</group> | ||
</launch> | ||
</launch> |
Oops, something went wrong.