-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from Ar-Ray-code/featurs/0.3.0
Featurs/0.3.0
- Loading branch information
Showing
12 changed files
with
173 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
build/ros2_ws/build | ||
build/ros2_ws/install | ||
build/ros2_ws/log | ||
build/ros2_ws/src | ||
|
||
dashing | ||
eloquent | ||
foxy | ||
rolling | ||
humble | ||
ros2.repos* | ||
|
||
deb/ | ||
*.zip |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,41 @@ | ||
bison | ||
build-essential | ||
curl | ||
cmake | ||
doxygen | ||
git | ||
gnupg | ||
libacl1-dev | ||
libasio-dev | ||
libbullet-dev | ||
libeigen3-dev | ||
libfreetype-dev | ||
liblog4cxx-dev | ||
libopencv-dev | ||
libresource-retriever-dev | ||
libsdl2-dev | ||
libtinyxml2-dev | ||
libxaw7-dev | ||
libxcursor-dev | ||
libxrandr-dev | ||
lsb-release | ||
mingw-w64-i686-dev | ||
pciutils | ||
pyqt5-dev | ||
python3-flake8 | ||
python3-lark | ||
python3-netifaces | ||
python3-numpy | ||
python3-pip | ||
python3-pydot | ||
python3-pyqt5 | ||
python3-pyqt5.qtsvg | ||
python3-pytest-cov | ||
python3-rosdep2 | ||
python3-setuptools | ||
python3-sip | ||
qtbase5-dev | ||
sip-dev | ||
xterm | ||
wget | ||
zip |
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 @@ | ||
0.3.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
SCRIPT_DIR=$(cd $(dirname $0); pwd) | ||
TARGET_DISTRO=$1 | ||
ARCH=$2 | ||
ROS_INSTALL_DIR=$3 | ||
DL_ONLY=$4 | ||
|
||
VERSION=$(cat ${SCRIPT_DIR}/config/version.txt) | ||
|
||
if [ -z "$TARGET_DISTRO" ]; then TARGET_DISTRO="humble"; fi | ||
if [ -z "$ARCH" ]; then ARCH="arm64"; fi | ||
if [ -z "$VERSION" ]; then VERSION="0.2.0"; fi | ||
if [ -z "$ROS_INSTALL_DIR" ]; then ROS_INSTALL_DIR="/opt/ros"; fi | ||
|
||
echo "============================================" | ||
echo " Ar-Ray-code/rpi-bullseye-ros2 " | ||
echo "" | ||
echo "TARGET_DISTRO: ${TARGET_DISTRO}" | ||
echo "ARCH: ${ARCH}" | ||
echo "VERSION: ${VERSION}" | ||
echo "Build Date: $(date +%Y%m%d)" | ||
echo "ROS_INSTALL_DIR: ${ROS_INSTALL_DIR}" | ||
echo "============================================" | ||
echo " " | ||
|
||
DATE=$(date +%Y%m%d) | ||
DEB_NAME="ros2-$TARGET_DISTRO-desktop-${VERSION}_${DATE}_${ARCH}" | ||
|
||
# copy files to deb folder | ||
DEB_ROOT=${SCRIPT_DIR}/deb/${DEB_NAME} | ||
INSTALL_DIR=${DEB_ROOT}/opt/ros/${TARGET_DISTRO} | ||
|
||
mkdir -p ${INSTALL_DIR} | ||
cd ${INSTALL_DIR} | ||
cp -r ${SCRIPT_DIR}/build/ros2_ws/${TARGET_DISTRO}/* ${INSTALL_DIR}/ | ||
|
||
# create control file | ||
CONTROL_FILE=${DEB_ROOT}/DEBIAN/control | ||
rm -rf ${DEB_ROOT}/DEBIAN | ||
|
||
mkdir -p ${DEB_ROOT}/DEBIAN | ||
echo "Package: ros-$TARGET_DISTRO-desktop" > ${CONTROL_FILE} | ||
echo "Version: ${VERSION}" >> ${CONTROL_FILE} | ||
echo "Section: base" >> ${CONTROL_FILE} | ||
echo "Priority: optional" >> ${CONTROL_FILE} | ||
echo "Architecture: ${ARCH}" >> ${CONTROL_FILE} | ||
|
||
# add depends from depends.txt file (\n -> , + space) | ||
DEPENDS=$(cat ${SCRIPT_DIR}/config/depends.txt | tr '\n' ',' | sed 's/,$//') | ||
echo "Depends: $DEPENDS" >> ${CONTROL_FILE} | ||
echo "depens: $DEPENDS" | ||
|
||
echo "Maintainer: Ar-Ray-code <ray255ar@gmail.com>" >> ${CONTROL_FILE} | ||
echo "Description: ROS2 $TARGET_DISTRO for Raspberry Pi OS Bullseye 64bit" >> ${CONTROL_FILE} | ||
|
||
dpkg-deb --build --root-owner-group ${DEB_ROOT} ${SCRIPT_DIR}/deb/${DEB_NAME}.deb | ||
|