Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MaxEmptyLinesToKeep: 1

AlignAfterOpenBracket: AlwaysBreak

AlignArrayOfStructures: Right
# AlignArrayOfStructures: Right

AlignConsecutiveAssignments:
Enabled: false
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "rmcs_ws/src/fast_tf"]
path = rmcs_ws/src/fast_tf
url = https://github.com/qzhhhi/FastTF.git
[submodule "rmcs_ws/src/hikcamera"]
path = rmcs_ws/src/hikcamera
url = https://github.com/Alliance-Algorithm/ros2-hikcamera.git
[submodule "rmcs_ws/src/serial"]
path = rmcs_ws/src/serial
url = https://github.com/Alliance-Algorithm/ros2-serial.git
56 changes: 56 additions & 0 deletions .script/complete/_record-lidar
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#compdef record-lidar

_record_lidar_remote_sessions() {
local -a sessions
local line
local output

output="$(ssh remote "screen -ls 2>/dev/null || true" 2>/dev/null)"

sessions=()
while IFS= read -r line; do
if [[ "${line}" =~ [0-9]+\.(record-lidar-[^[:space:]]+) ]]; then
sessions+=("${match[1]}")
fi
done <<< "${output}"

if (( ${#sessions[@]} > 0 )); then
compadd -- "${sessions[@]}"
fi
}

if (( CURRENT == 2 )); then
compadd -- start list-session list-recorded stop-session
return
fi

case "${words[2]}" in
start)
if [[ "${words[CURRENT]}" == -* ]] || [[ "${words[CURRENT-1]}" == "start" ]]; then
compadd -- --seconds --help -h
fi
;;
list-session)
if [[ "${words[CURRENT]}" == -* ]] || [[ "${words[CURRENT-1]}" == "list-session" ]]; then
compadd -- --help -h
fi
;;
list-recorded)
if [[ "${words[CURRENT]}" == -* ]] || [[ "${words[CURRENT-1]}" == "list-recorded" ]]; then
compadd -- --help -h
fi
;;
stop-session)
if [[ "${words[CURRENT-1]}" == "--session" ]]; then
_record_lidar_remote_sessions
return
fi

if [[ "${words[CURRENT]}" == -* ]] || [[ "${words[CURRENT-1]}" == "stop-session" ]]; then
compadd -- --session --help -h
fi
;;
*)
_message 'unknown subcommand'
;;
esac
4 changes: 4 additions & 0 deletions .script/complete/_save-map-once
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#compdef save-map-once

_arguments \
'1:mode:(remote local)'
5 changes: 0 additions & 5 deletions .script/foxglove

This file was deleted.

3 changes: 3 additions & 0 deletions .script/launch-foxglove
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env bash

ssh-remote "bash -lc 'source ~/env_setup.bash && ros2 launch foxglove_bridge foxglove_bridge_launch.xml port:=8765'"
3 changes: 3 additions & 0 deletions .script/launch-navigation
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! /usr/bin/env bash

ssh-remote "bash -lc 'source ~/env_setup.bash && ros2 launch rmcs-navigation custom.launch.py mode:=online'"
Loading