-
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.
refactor docker, install.sh and DSDL
- Loading branch information
1 parent
4840cde
commit da445ec
Showing
10 changed files
with
86 additions
and
87 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,9 @@ | ||
#!/bin/bash | ||
# This software is distributed under the terms of the GPL v3 License. | ||
# Copyright (c) 2022-2023 Dmitry Ponomarev. | ||
# Author: Dmitry Ponomarev <[email protected]> | ||
|
||
source /opt/ros/$ROS_DISTRO/setup.bash | ||
cd /catkin_ws | ||
git config --global http.sslverify false | ||
catkin build |
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,57 @@ | ||
#!/bin/bash | ||
# This software is distributed under the terms of the GPL v3 License. | ||
# Copyright (c) 2022-2023 Dmitry Ponomarev. | ||
# Author: Dmitry Ponomarev <[email protected]> | ||
|
||
# Exit immediately if a command exits with a non-zero status | ||
set -e | ||
|
||
install_dsdl() { | ||
echo "Installing tools for C++/Python generation from DSDL..." | ||
pip install yakut | ||
echo "DSDL tools installed." | ||
} | ||
|
||
install_full() { | ||
echo "Installing full dependencies..." | ||
sudo apt install -y git \ | ||
ros-$ROS_DISTRO-mavros-msgs \ | ||
ros-$ROS_DISTRO-catkin \ | ||
python3-pip \ | ||
python3-catkin-tools \ | ||
can-utils \ | ||
net-tools \ | ||
iproute2 | ||
echo "Full tools installed." | ||
} | ||
|
||
usage() { | ||
echo "Usage: $0 [goal]" | ||
echo "Goals:" | ||
echo " --dsdl - Install DSDL tools" | ||
echo " --full - Install all dependencies (DSDL + additional tools)" | ||
echo "Example:" | ||
echo " $0 --ros" | ||
exit 1 | ||
} | ||
|
||
# Main script logic | ||
if [[ $# -ne 1 ]]; then | ||
usage | ||
fi | ||
|
||
goal=$1 | ||
|
||
case $goal in | ||
--dsdl) | ||
install_dsdl | ||
;; | ||
--full) | ||
install_full | ||
;; | ||
*) | ||
echo "Invalid goal: $goal" | ||
usage | ||
exit 1 | ||
;; | ||
esac |