• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






Yang-hao

你我皆凡人
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2022年10月10日

C++ auto、const auto、 const auto&的使用场景
摘要: ​ 想要拷贝元素:for(auto x:range) ​ 想要修改元素 : for(auto &x:range) ​ 想要只读元素:for(const auto& x:range) auto​ auto即 for(auto x:range) 这样会拷贝一份range元素,而不会改变range中元素; 阅读全文
posted @ 2022-10-10 10:04 Yang-hao 阅读(671) 评论(0) 推荐(0)
 

2021年12月20日

ubuntu20.04 ros安装 报错:19 packages can be upgraded. Run 'apt list --upgradable' to see them
摘要: 解决方法: 执行: sudo apt upgrade -y 阅读全文
posted @ 2021-12-20 11:56 Yang-hao 阅读(2755) 评论(0) 推荐(0)
 

2021年11月6日

C++ 学习记录 C++ 面向对象三大特性
摘要: 一. 封装 在定义类的时候,将属性和行为放在一起,其中属性和行为可以放在不同的权限中。属性就是变量,行为就是函数,但函数内有简单的内容。 二. 继承 某个类在定义时,可以继承一个或多个基类,这个类叫派生类,派生类可以使用基类的除私有之外的所以属性及方法。 三. 多态 一个接口,多种方法 派生类的函数 阅读全文
posted @ 2021-11-06 15:13 Yang-hao 阅读(193) 评论(0) 推荐(0)
 

2021年9月12日

如何在ubuntu系统下搭建gitlab服务器
摘要: 1. 进入gitlab官网下载界面: https://about.gitlab.com/install/ 2. 选择安装的系统环境 3. 按照步骤依次执行第1步,第2步,相关命令抄录如下: 3.1 sudo apt-get update 3.2 sudo apt-get install -y pos 阅读全文
posted @ 2021-09-12 16:13 Yang-hao 阅读(1546) 评论(0) 推荐(0)
 

2020年9月21日

c++ 学习记录 构造函数 成员变量的初始化
摘要: 参考链接:http://c.biancheng.net/view/2223.html 在构造函数中对成员变量初始化的方法有俩种 一:在函数体中对成员变量一一赋值 二:采用初始化列表,下面是一个简单例子: class Student{ private: char *m_name; int m_age; 阅读全文
posted @ 2020-09-21 10:44 Yang-hao 阅读(1035) 评论(0) 推荐(0)
 

2020年9月1日

python 获取上级(上上级目录..)
摘要: 参考连接:https://www.cnblogs.com/xiyuan2016/p/9187695.html import os print '***获取当前目录***' print os.getcwd() print os.path.abspath(os.path.dirname(__file__ 阅读全文
posted @ 2020-09-01 17:46 Yang-hao 阅读(3034) 评论(0) 推荐(0)
 

2020年8月27日

rosbag 参数解释
摘要: 参考连接:https://www.jianshu.com/p/6dd2c08d688e rosbag record -a 录制所有topic -O (大写)为录制的包重命名 -o (小写)为数据包加前缀 在launch里面使用: <node pkg="rosbag" type="record" na 阅读全文
posted @ 2020-08-27 11:40 Yang-hao 阅读(7188) 评论(0) 推荐(0)
 

2020年7月29日

ros: python 找不到对应msg
摘要: 错误原因: import-im6.q16: not authorized `np' @ error/constitute.c/WriteImage/1037.import-im6.q16: not authorized `plt' @ error/constitute.c/WriteImage/10 阅读全文
posted @ 2020-07-29 14:45 Yang-hao 阅读(1799) 评论(0) 推荐(0)
 

2020年7月27日

roslaunch 一个调试技巧
摘要: 会新开一个xterm : launch-prefix ="xterm -e",可进行输入命令,监测数据等 阅读全文
posted @ 2020-07-27 17:56 Yang-hao 阅读(609) 评论(0) 推荐(0)
 

2020年7月22日

python 环境配置
摘要: 原文连接:https://www.yiibai.com/pandas/python_pandas_environment_setup.html sudo apt-get install python-numpy python-scipy python-matplotlib python-pandas 阅读全文
posted @ 2020-07-22 11:51 Yang-hao 阅读(140) 评论(0) 推荐(0)
 
下一页