• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Gesündeste
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2
2019年7月12日
C++可变参数模板
摘要: 可变参数模板 原文链接: http://blog.csdn.net/xiaohu2022/article/details/69076281 https://www.cnblogs.com/qicosmos/p/4325949.html 普通模板只可以采取固定数量的模板参数。然而,有时候我们希望模板可 阅读全文
posted @ 2019-07-12 14:14 Gesündeste 阅读(3429) 评论(0) 推荐(0)
2019年7月5日
ros中NodeHandle类的subscribe()函数使用报错问题
摘要: 在使用ros写订阅者时,代码如下: 编译总是报如下错, 原因是subscribe()函数在使用函数对象时,如boost::bind()函数返回的对象,必须要明确指定消息类型作为模板参数,因为编译器无法推断它。 上面就是没有指明导致的错误。 在查看NodeHandle.h源码查看subscribe() 阅读全文
posted @ 2019-07-05 10:43 Gesündeste 阅读(3472) 评论(0) 推荐(0)
c++编程技巧
摘要: 1、enum(枚举)没有枚举名 如果声明枚举类型时没有指定枚举名,其作用就和#define类似,比如以下代码: 这里声明了一个枚举类型确没有指定其枚举名,那么它就相当于用#define定义了六个名称和其对应的值,从0开始赋值每次加1,相当于: 只不过eunm类型表示的是一个确定的值,而这里#defi 阅读全文
posted @ 2019-07-05 09:36 Gesündeste 阅读(306) 评论(0) 推荐(0)
2019年7月1日
Eigen: C++开源矩阵计算库
摘要: Eigen库被分为一个Core模块和几个附加的模块,每个模块有一个相关的头文件,使用该模块时需要包含该头文件,为了能便利的使用eigen的几个模块,Eigen提供了Dense和Eigen两个头文件,各个头文件和模块如下表 ModuleHeader fileContents Core #include 阅读全文
posted @ 2019-07-01 10:05 Gesündeste 阅读(5166) 评论(0) 推荐(1)
2019年6月28日
C/C++空结构体,空数组,空类作用
摘要: 转:https://blog.csdn.net/hmdong7/article/details/78944674 https://blog.csdn.net/mercy_ps/article/details/82926305 阅读全文
posted @ 2019-06-28 20:43 Gesündeste 阅读(481) 评论(0) 推荐(0)
C++/C++11中std::numeric_limits的使用
摘要: https://blog.csdn.net/fengbingchun/article/details/77922558 https://www.2cto.com/kf/201707/654311.html 阅读全文
posted @ 2019-06-28 20:34 Gesündeste 阅读(427) 评论(0) 推荐(0)
C++之enum枚举量声明、定义、使用与枚举类详解
摘要: 转:https://blog.csdn.net/Bruce_0712/article/details/54984371 阅读全文
posted @ 2019-06-28 20:33 Gesündeste 阅读(449) 评论(0) 推荐(0)
2019年6月21日
目标检测 — 评价指标
摘要: 转:https://www.cnblogs.com/eilearn/p/9071440.html 评价指标: 准确率 (Accuracy),混淆矩阵 (Confusion Matrix),精确率(Precision),召回率(Recall),平均正确率(AP),mean Average Precis 阅读全文
posted @ 2019-06-21 12:56 Gesündeste 阅读(573) 评论(0) 推荐(0)
ubuntu16.0 caffe安装
摘要: 1、安装深度学习所需要的依赖 执行下面的命令 sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler sudo apt-g 阅读全文
posted @ 2019-06-21 10:25 Gesündeste 阅读(527) 评论(0) 推荐(0)
2019年6月12日
C++模板(template)中typename
摘要: 1、typename关键字 在声明template参数时, 前缀关键字class和typename可以互换,但在使用模板参数T的内部类型名称即嵌套从属名称时只能用typename。 在C++标准化的过程中,引入关键字typename是为了说明:模板类型参数内部的标识符(associated type 阅读全文
posted @ 2019-06-12 21:55 Gesündeste 阅读(1774) 评论(0) 推荐(0)
2019年6月6日
使用SWIG实现Python调用C/C++代码
摘要: 转自:http://cering.github.io/2015/12/08/%E4%BD%BF%E7%94%A8SWIG%E5%AE%9E%E7%8E%B0Python%E8%B0%83%E7%94%A8C-C-%E4%BB%A3%E7%A0%81/ SWIG是个帮助使用C或者C++编写的软件能与其 阅读全文
posted @ 2019-06-06 06:56 Gesündeste 阅读(696) 评论(0) 推荐(0)
2019年5月25日
Google开源命令行解析工具gflags
摘要: 转自:https://blog.csdn.net/achelloworld/article/details/41959595# gflags是google开源的一套命令行参数解析工具,支持C++和Python语言,其使用方法; 1. 定义参数 使用gflags需要包含头文件#include <gfl 阅读全文
posted @ 2019-05-25 14:14 Gesündeste 阅读(758) 评论(0) 推荐(0)
2019年5月23日
Eigen内存分配器aligned_allocator
摘要: 在使用Eigen的时候,如果STL容器中的元素是Eigen数据库结构,比如下面用vector容器存储Eigen::Matrix4f类型或用map存储Eigen::Vector4f数据类型时: 这么使用编译能通过,当运行时会报段错误。 对eigen中的固定大小的类使用STL容器的时候,如果直接使用会出 阅读全文
posted @ 2019-05-23 15:37 Gesündeste 阅读(3786) 评论(0) 推荐(0)
2019年3月30日
boost库中的 program_options
摘要: 1、阅读rviz中的源码时在rviz/visualizer_app.cpp中遇到如下代码: po::options_description options; options.add_options() ("help,h", "Produce this help message") ("splash- 阅读全文
posted @ 2019-03-30 12:14 Gesündeste 阅读(1452) 评论(0) 推荐(0)
2019年3月18日
docker容器自动化部署(一)
摘要: 1、docker容器暴露多个端口 To expose just one port, this is what you need to do: docker run -p <host_port>:<container_port> To expose multiple ports, simply pro 阅读全文
posted @ 2019-03-18 16:08 Gesündeste 阅读(1246) 评论(0) 推荐(0)
上一页 1 2
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3