05 2020 档案

摘要:1.'gbk' codec can't encode character '\xXX' in position XX f=open(file,'w',encoding='utf-8')#要加encoding='utf-8'这个参数 f.write(ss.text)#就不会报错 2.爬虫request 阅读全文
posted @ 2020-05-27 14:01 九里九里 阅读(291) 评论(0) 推荐(0)
摘要:1. import urllib.request from bs4 import BeautifulSoup import re import os url='http://cpc.people.com.cn/n1/2018/0318/c64094-29873799-8.html' #GB2312 阅读全文
posted @ 2020-05-26 21:07 九里九里 阅读(367) 评论(0) 推荐(0)
摘要:1.AttributeError: module 'urllib.response' has no attribute 'read' 代码: res=urllib.response.read().decode('UTF-8')#读取网页内容,用utf-8解码成字节 1) python3中应该 imp 阅读全文
posted @ 2020-05-25 18:39 九里九里 阅读(8949) 评论(0) 推荐(1)
摘要:把txt字典改为二进制文件 https://github.com/raulmur/ORB_SLAM2/pull/21/commits/4122702ced85b20bd458d0e74624b9610c19f8cc 阅读全文
posted @ 2020-05-24 23:35 九里九里 阅读(298) 评论(0) 推荐(0)
摘要:建立msg文件夹,添加msg文件:Person.msg(首字母大写) 定义话题信息 string name uint8 age uint8 sex uint8 unknown = 0 uint8 male = 1 uint8 female = 2 View Code 1.package.xml加入: 阅读全文
posted @ 2020-05-24 13:28 九里九里 阅读(236) 评论(0) 推荐(0)
摘要:代码: /*********************************************************************** Copyright 2020 GuYueHome (www.guyuehome.com). *************************** 阅读全文
posted @ 2020-05-23 22:52 九里九里 阅读(550) 评论(0) 推荐(0)
摘要:ROS基础学习 工作空间:debel src build 创建: mkdir -p ~/workspace/catkin_ws/src cd ~/workspace/catkin_ws/src/ catkin_init_workspace #######在src文件夹里面产生了一个cmakelist 阅读全文
posted @ 2020-05-23 22:36 九里九里 阅读(197) 评论(0) 推荐(0)
摘要:topic发布 创建功能包 cd /home/jo/workspace/catkin_ws/src catkin_create_pkg learning_topic roscpp rospy std_msgs geometry_msgs turtlesim 代码:velocity_publisher 阅读全文
posted @ 2020-05-23 22:33 九里九里 阅读(285) 评论(0) 推荐(0)
摘要:代码: #include<iostream> #include<algorithm> #include<fstream> #include<chrono> #include<opencv2/core/core.hpp> #include <unistd.h> #include<System.h> u 阅读全文
posted @ 2020-05-20 20:59 九里九里 阅读(474) 评论(0) 推荐(0)
摘要:参考:https://docs.qgroundcontrol.com/en/getting_started/download_and_install.html 首次安装QGroundControl之前: 在命令提示符下输入: sudo usermod -a -G dialout $USER sudo 阅读全文
posted @ 2020-05-17 20:14 九里九里 阅读(847) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/dotphoenix/article/details/100130424 配置了ssh公钥和私钥等一会儿就好了 阅读全文
posted @ 2020-05-14 13:13 九里九里 阅读(898) 评论(0) 推荐(0)
摘要:声明:本博客仅作个人学习用途 1. 安装方法参考:https://zhuanlan.zhihu.com/p/91329291 2. 基本操作方法:https://zhuanlan.zhihu.com/p/91420855 开启gazebo和px4: roslaunch px4 mavros_posi 阅读全文
posted @ 2020-05-12 18:07 九里九里 阅读(1271) 评论(0) 推荐(0)
摘要:ORBslam2安装1.下载 bash下输入 cd .. mkdir orb_demo cd orb_demo mkdir src cd src cd ~/orb_demo/src git clone https://github.com/ktossell/libuvc git clone http 阅读全文
posted @ 2020-05-06 16:26 九里九里 阅读(597) 评论(0) 推荐(0)
摘要:ros下跑小乌龟的时候出现了这个问题 rosrun turtlesim turtle_teleop_key 报错 rospack:command not found 解决方法: sudo gedit ~/.bashrc 在.bashrc中加入这一行 source /opt/ros/melodic/s 阅读全文
posted @ 2020-05-06 15:08 九里九里 阅读(3979) 评论(0) 推荐(0)
摘要:ERROR: cannot download default sources list from: https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list Website 阅读全文
posted @ 2020-05-06 15:02 九里九里 阅读(1365) 评论(0) 推荐(0)
摘要:python-rosdep-modules : 依赖: python-rosdistro-modules (>= 0.7.5) 但是它将不会被安装 E: Sub-process /usr/bin/dpkg returned an error code (1)解决办法 E: 有未能满足的依赖关系。请尝 阅读全文
posted @ 2020-05-06 14:40 九里九里 阅读(7588) 评论(1) 推荐(2)