Cross compile tool based on rpi-bullseye-ros2
git clone https://github.com/Ar-Ray-code/rpi-bullseye-ros2-xcompile
cd rpi-bullseye-ros2-xcompile
bash create_alias.bash
source ~/.bashrc
xcompile_rpi_ros2 [TARGET ROS2 WORKSPACE] [Bash_SCRIPT(optional)]
- TARGET ROS2 WORKSPACE : Target ROS2 workspace (relative paths are also acceptable)
- Bash_SCRIPT (optional) : Bash script file to be executed within Docker (Default :
${SCRIPT_DIR}/scripts/build_command.bash
)
mkdir -p ~/ros2_ws/src/
cd ~/ros2_ws/src
git clone https://github.com/ros-perception/image_common -b ros2
xcompile_rpi_ros2 ~/ros2_ws
# After a successful build
ls ~/ros2_ws
#> build_built_pkg_rpi built_pkg_rpi built_pkg_rpi_<unixtime>.zip log src
https://github.com/Ar-Ray-code/rpi-bullseye-ros2
- author : Ar-Ray-code