树莓派raspberryPI-4b 官方镜像raspios-bullseye-arm64 系統下编译构建ros2 rolling环境(附下载完整镜像资料)
开放下载连接
链接:https://pan.baidu.com/s/1jcKFJtuA_TpvbPueiq55Nw
提取码:cang
1.准备工作
1)环境: 树莓派4b 8GB arm64 平台硬件
2)下载官方 2022-04-04-raspios-bullseye-arm64.img.xz 镜像
3)烧录镜像至TF卡32GB上
2.系统构建
1)将烧录完的tf卡中的boot盘中的文件进行修改
windows cmd:
打开TF卡,文件boot 目录下建立文件
G:>type nul>ssh
G:>>>userconf set /p=“pi:666KORC/Q.jy9sfO4dY$Ng2/O021CmodjQ99aPm.kpG4s1ClxvfQN0UylymYN/AYGySUBV6mnPlLDD24YrckXldGR9ZWO3NvOazzNLhBe1” <nul
G:>>>wpa_supplicant.conf set /p="country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
" <nul
注意指令前的”G:>“ 系统自带字符
然后用notepad打开wpa_supplicant.conf 查看下文件,注意换行符
然后将TF卡插到树莓派上,开机启动。
后执行
G:>arp -a
接口: 192.168.193.137 — 0x13
Internet 地址 物理地址 类型
192.168.193.1 d4-ee-07-62-f5-76 动态
192.168.193.239 e4-5f-01-c2-98-51 动态
192.168.193.255 ff-ff-ff-ff-ff-ff 静态
192.168.193.239 树莓派 地址
2)ssh树莓派登陆
用户名:pi
密码:raspberry
3.正式动作
$ mkdir -p ~/ros2_rolling/src
$ cd ~/ros2_rolling
1)系统信息
pi@raspberrypi:~/ros2_rolling $ uname -a
Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
pi@raspberrypi:~/ros2_rolling $ lsb_release
No LSB modules are available.
pi@raspberrypi:~/ros2_rolling $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
pi@raspberrypi:~/ros2_rolling $
2)ros2 环境构建
$ locale
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE=“en_GB.UTF-8”
LC_NUMERIC=“en_GB.UTF-8”
LC_TIME=“en_GB.UTF-8”
LC_COLLATE=“en_GB.UTF-8”
LC_MONETARY=“en_GB.UTF-8”
LC_MESSAGES=“en_GB.UTF-8”
LC_PAPER=“en_GB.UTF-8”
LC_NAME=“en_GB.UTF-8”
LC_ADDRESS=“en_GB.UTF-8”
LC_TELEPHONE=“en_GB.UTF-8”
LC_MEASUREMENT=“en_GB.UTF-8”
LC_IDENTIFICATION=“en_GB.UTF-8”
LC_ALL=
$ apt-cache policy | grep universe
此处信息不必对照官网
$ vi /etc/apt/sources.list
aarch64 用户:编辑 /etc/apt/sources.list
文件,用以下内容取代:
默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install software-properties-common
$ sudo apt update && sudo apt install curl gnupg lsb-release
$ sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
$ echo “deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/ lsb_release -cs
main” | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
$ sudo apt update && sudo apt install -y
build-essential
cmake
git
python3-colcon-common-extensions
python3-flake8
python3-flake8-blind-except
python3-flake8-builtins
python3-flake8-class-newline
python3-flake8-comprehensions
python3-flake8-deprecated
python3-flake8-docstrings
python3-flake8-import-order
python3-flake8-quotes
python3-pip
python3-pytest
python3-pytest-cov
python3-pytest-repeat
python3-pytest-rerunfailures
python3-rosdep
python3-setuptools
python3-vcstool
wget
(this command can altenative by below :
$ sudo apt update && sudo apt install -y
build-essential
cmake
git
python3-colcon-common-extensions
python3-flake8
python3-pip
python3-pytest
python3-pytest-cov
python3-pytest-rerunfailures
python3-rosdep
python3-setuptools
python3-vcstool
wget
$ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \
flake8-blind-except \
flake8-builtins \
flake8-class-newline \
flake8-comprehensions \
flake8-deprecated \
flake8-docstrings \
flake8-import-order \
flake8-quotes \
pytest-repeat
)
$ sudo rosdep init
(please copy pre-downloade rosdistro/ into ~/)
$ sudo vi /home/pi/rosdistro/rosdep/sources.list.d/20-default.list
{ # os-specific listings first yaml file:///home/pi/rosdistro/rosdep/osx-homebrew.yaml osx # generic yaml file:///home/pi/rosdistro/rosdep/base.yaml yaml file:///home/pi/rosdistro/rosdep/python.yaml yaml file:///home/pi/rosdistro/rosdep/ruby.yaml gbpdistro file:///home/pi/rosdistro/releases/fuerte.yaml fuerte # newer distributions (Groovy, Hydro, …) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead }
$ sudo vi /etc/ros/rosdep/sources.list.d/20-default.list
{ # os-specific listings first yaml file:///home/pi/rosdistro/rosdep/osx-homebrew.yaml osx # generic yaml file:///home/pi/rosdistro/rosdep/base.yaml yaml file:///home/pi/rosdistro/rosdep/python.yaml yaml file:///home/pi/rosdistro/rosdep/ruby.yaml gbpdistro file:///home/pi/rosdistro/releases/fuerte.yaml fuerte # newer distributions (Groovy, Hydro, …) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead }
$ sudo vi /usr/lib/python3/dist-packages/rosdep2/sources_list.py
DEFAULT_SOURCES_LIST_URL = ‘file:///home/pi/rosdistro/rosdep/sources.list.d/20-default.list’
$ sudo vi /usr/lib/python3/dist-packages/rosdistro/init.py
DEFAULT_INDEX_URL = ‘file:///home/pi/rosdistro/index-v4.yaml’
$ sudo vi /usr/lib/python3/dist-packages/rosdep2/rep3.py
REP3_TARGETS_URL = ‘file:///home/pi/rosdistro/releases/targets.yaml’
$ rosdep update
$ wget https://raw.githubusercontent.com/ros2/ros2/rolling/ros2.repos
$ vcs import src < ros2.repos
{windows shell > vcs import --input ros2.rpos src here, you can pre-download ros2 rolling package into src/ pi@raspberrypi:~/ros2_rolling $ ls src ament eclipse-iceoryx ignition ros ros-perception ros-tooling sllidar_ros2 eclipse-cyclonedds eProsima osrf ros2 ros-planning ros-visualization pi@raspberrypi:~/ros2_rolling $ }
(try below command ,
rosdep install --from-paths src --ignore-src -y --skip-keys “ignition-cmake2 ignition-math6 fastcdr rti-connext-dds-6.0.1 urdfdom_headers”
it will trigger warnning
#ignition-cmake2 ignition-math6 can’t support os debian , ok then skip it
)
$ rosdep install --from-paths src --ignore-src -y --skip-keys “ignition-cmake2 ignition-math6 fastcdr rti-connext-dds-6.0.1 urdfdom_headers”
{ it will be trgger some error ,so you install it manuelly, then excute it continue. after a long time … }
$ cd ~/ros2_rolling/
$ colcon build --symlink-install
(please keep connectting net fluently and your patient for a long long time
if you can’t , you can donwnload some pakage into build/ souce , bless you
)
…
{ $ colcon build --packages-select sllidar_ros2 (build special package) }
test ros2 rolling envirenment
first terminal
$ . ~/ros2_rolling/install/local_setup.bash
ros2 run demo_nodes_cpp talker
second terminal
$ . ~/ros2_rolling/install/local_setup.bash
ros2 run demo_nodes_py listener
![在这里插入图片描述](https://img-blog.csdnimg.cn/fe4d988bed264bae968f7dde575aba0b.png
then you can excute talker on raspberry 4b board and excute listener on a ubuntu host terminal
链接:https://pan.baidu.com/s/1R85CzTHAsiTDbZ4UIW0cnw
提取码:loon
of course you must be in a same real net
树莓派raspberryPI-4b 官方镜像raspios-bullseye-arm64 系統下编译构建ros2 rolling环境(附下载完整镜像资料)相关推荐
- 安装Docker环境并下载TensorFlow镜像
必须是64位Linux系统,不能用32位(因为Docker官方已经不再支持32位系统了) wget -qO- https://get.docker.com/ | sh # 或 curl -sSL ht ...
- docker如何下载国外镜像
目录 背景 解决方案 1.创建阿里云镜像仓库 2.使用https://labs.play-with-docker.com下载镜像 3.将镜像上传到阿里云镜像仓库 4.从阿里云镜像仓库中拉取镜像到我们l ...
- 如何手动下载最新的 macOS Beta 完整镜像?
对于MacOS系统来说,只要有新 Beta 就直接更新就行了,但是还是偶尔会遇到需要下载完整镜像保存或重装的情况.今天小编就给大家带来了如何手动下载最新的 macOS Beta 完整镜像的教程,希望对 ...
- 建议在RaspberryPi 4b 上使用 64位官方镜像
RaspberryPi 4 采用了Broadcom BCM2711处理器,是一块64位芯片.然而,目前官网的RaspberryPI OS 考虑到处理器兼容性,都是基于32位的Debain Arm架构. ...
- 树莓派4B系统一键安装opencv,再也不要用编译安装啦!(支持buster、bullseye)
树莓派4B系统一键安装opencv,再也不要用编译安装啦!(支持buster.bullseye 准备一下 开始一键安装 测试一下 温馨提示 OVER 准备一下 首先第一步,需要配置好国内镜像软件源(原 ...
- 树莓派4B 4G Ubuntu 20.04 arm64位 安装 Kubernetes 1.18.5 单master 双node集群
简介 本文章通过从零开始,最精简的初始化系统一步步配置完成K8S的安装,尽量介绍清楚各软件安装环境.作用,减少个人之间树莓派系统配置差异带来的异常排查困难.本次教程前提:需要会linux简单的操作 本 ...
- Home Assistant入门1-1:在树莓派上安装官方系统
Home Assistant OS在树莓派上安装的教程 写在前面 因为做毕业设计设计到智能家居,想用Home Assistant去做一个只能家居的整合,同时也可以把家里的智能家居的整合一下,方便家里人 ...
- linux内存跑分,RaspberryPi 4B 4G版本跑分测|CPU|内存|IO|网络|性能全面测试
前言 拿到手最新的RaspberryPi 4B 4G版本,新版本的4修复了之前的硬件bug. 直接官方安装软件刷上了最新版本的Linux raspberrypi 4.19.97,MicroSD卡选用的 ...
- 树莓派清华镜像源“stretch”更换为“buster”,解决tensorflow、h5py安装包下载报错问题
[部分转载] 树莓派想使用 aptitude 解决依赖包问题,但是使用 apt-get 安装 aptitude 时出现依赖包错误怎么办?_FightingBoom的博客-CSDN博客 https:// ...
最新文章
- python 回归去掉共线性_以IPL数据集为例的线性回归技术概述
- ffmpeg 源码学习之seek play
- 剑指offer 66题 -- 删除链表中重复的节点
- 避免Java中的空指针异常
- VBS 自动发送邮件
- vs设计窗口不见了_碳纤维的巅峰:VS沛纳海616V3
- sinh_带有Python示例的math.sinh()方法
- jfinal 任务调度与jsoup 爬虫
- [日常] 算法-单链表的创建-尾插法
- Adb connect监听指定的主机和端口/Adb监听Visual Studio Emulator for Android模拟器
- windows环境下安装npm、cnpm、bower
- POJ3253-Fence Repair
- 阿里巴巴java规范_《阿里巴巴 Java开发手册》常用规范
- smartDNS让你的网络一触即达
- K8s部署Nexus3管理Docker镜像
- 广东工业大学华立学院c语言试题,广东工业大学华立学院考试试卷《高频电子线路》-2015.doc...
- power apps 里 嵌套 html
- 个人备案网站不能做博客了?
- cesium粒子特效
- 耐得住寂寞,才能守得住繁华
热门文章
- Switch 开关 文字设置在一边显示
- lcd1602显示和led显示的区别在哪里
- fetchone()和fetchall()的准确读音
- You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists).Please, commit your changes
- 13种老人不适合带孩子_让老人带娃却遭怒摔!细数13种不适合带孩子的老人!...
- Git :error: You have not concluded your merge (MERGE_HEAD exists)
- 阴阳师辅助(基于按键精灵)
- 【编程实践】编程语言之 R 语言
- Python grabcut 提取图像前景
- 77、基于STM32单片机的超市餐饮二维码/条形码摄像头识别结账扫码系统设计