wget http://fishros.com/install -O fishros && . fishros
ROS2的环境测试
分别打开两个终端,输入下面两个命令
ros2 run turtlesim turtlesim_node # 启动乌龟GUI节点界面,乌龟可以在界面中运动
ros2 run turtlesim turtle_teleop_key # 启动键盘控制节点,可以通过键盘控制乌龟运动
i can't run the first order
error like this:
(base) uavlab@uavlab:~$ ros2 run turtlesim turtlesim_node
qt.qpa.xcb: could not connect to display localhost:10.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
[ros2run]: Aborted
need 2 solve
下面的命令实现从计算机上卸载ROS2
sudo apt remove ~nros-humble-* && sudo apt autoremove
删除ROS2的存储库
sudo rm /etc/apt/sources.list.d/ros2.list
sudo apt update
sudo apt autoremove
# Consider upgrading for packages previously shadowed.
sudo apt upgrade