@ljy1852783649 按这个来,snap其实和docker差不多,也需要映射设备
@小鱼 在 agent 手动编译,不用docker,以及树莓派上使用micros-agent的方法 中说:
用的树莓派4B,先安装了,ubuntu22.04 server 64bit
一键安装ROS-HUMBLE
下载microros-agent
sudo apt-get install -y build-essential
mkdir -p microros_ws/src
cd microros_ws/src
git clone http://github.fishros.org/https://github.com/micro-ROS/micro-ROS-Agent.git -b humble
git clone http://github.fishros.org/https://github.com/micro-ROS/micro_ros_msgs.git -b humble编译
cd microros_ws
colcon buildRUN
树莓派上运行这句指令,然后双击开发板上的boot按键切换到serial模式进行传输即可
ros2 run micro_ros_agent micro_ros_agent serial -b 921600 --dev /dev/ttyUSB0 -vsudo apt install ros-humble-teleop-twist-keyboard