Ubuntu 20.04安装ROS1 noetic虚拟机

一.vmware tools不正常,无法复制windows内容到虚拟机

1.查看vmware tools的版本

vmware-toolbox-cmd -v
11.3.0.29534 (build-18090558)

2.查看vmware tools的状态

systemctl status vmtoolsd 
● open-vm-tools.service - Service for virtual machines hosted on VMware
     Loaded: loaded (/lib/systemd/system/open-vm-tools.service; enabled; vendor>
    Drop-In: /usr/lib/systemd/system/open-vm-tools.service.d
             └─desktop.conf
     Active: active (running) since Wed 2024-10-30 20:59:49 CST; 1h 24min ago
       Docs: http://open-vm-tools.sourceforge.net/about.php
   Main PID: 752 (vmtoolsd)
      Tasks: 4 (limit: 2235)
     Memory: 3.4M
     CGroup: /system.slice/open-vm-tools.service
             └─752 /usr/bin/vmtoolsd

Oct 30 20:59:49 ubuntu systemd[1]: Starting Service for virtual machines hosted>
Oct 30 20:59:49 ubuntu systemd[1]: Started Service for virtual machines hosted >
lines 1-14/14 (END)

3.重新安装vmware tools

sudo apt-get autoremove open-vm-tools
sudo apt-get install open-vm-tools
sudo apt-get install open-vm-tools-desktop

执行3的操作后,问题解决

二.Ubuntu 20.04安装ROS1 noetic

ROS官方安装步骤 noetic/Installation/Ubuntu - ROS Wiki

  1. 设置安装源
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
  1. 设置key
sudo apt install curl # if you haven't already installed curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
  1. 更新安装源
sudo apt update

报错如下

Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease                    
Hit:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease            
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:5 http://packages.ros.org/ros/ubuntu focal InRelease [4,679 B]
Err:5 http://packages.ros.org/ros/ubuntu focal InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
Reading package lists... Done
W: GPG error: http://packages.ros.org/ros/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654
E: The repository 'http://packages.ros.org/ros/ubuntu focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

再次执行 以下命令

sudo apt install curl # if you haven't already installed curl
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -

问题解决

  1. 安装neotic桌面完整版
sudo apt install ros-noetic-desktop-full

安装时间比较长

  1. 添加环境变量

执行gedit ~/.bashrc 添加

source /opt/ros/noetic/setup.bash

  1. 验证ROS
roscore
.. logging to /home/ros1/.ros/log/67f442ce-96c9-11ef-9c1f-794492328c70/roslaunch-ubuntu-20182.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:37425/
ros_comm version 1.17.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值