ubuntu18.04以太网配置 使用livox mid-70雷达

1。配置/etc/netplan中yaml,也可以不配置

# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
  ethernets:
     enp8s0: #配置的网卡名称,使用ifconfig -a查看得到
       dhcp4: no #dhcp4关闭
    

这样设置就可以了!!!

2.关键步骤 配置静态ip

sudo gedit /etc/network/interfaces
auto enp0s8
iface enp0s8 inet static
address 192.168.1.35
netmask  255.255.255.0
gateway  192.168.1.1

改成这样

3.reboot重启,一定要重启,不然用sudo ifup enp0s8没用

4.ifconfig查看静态ip就配置好了,如果显示不全可以用ifconfig -a

5.启动./livox_viewer.sh,把livox配置成动态ip

6.把ubuntu配置成动态ip

auto enp0s8
iface enp0s8 inet dhcp

7.不同的电脑配置不一样 比如我的电脑目前测试不能配置动态ip。会导致雷达和电脑连不上

但是工作站就可以。玄学问题吧

8。roslaunch livox_ros_driver livox_lidar_rviz.launch

订阅/livox/lidar,fixe

  • 0
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值