自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(76)
  • 资源 (11)
  • 收藏
  • 关注

原创 二维正态分布采样置信椭圆绘制-Python

二维正态分布采样后,绘制置信椭圆假设二维正态分布表示为:[x1x2]∼N([μ1μ2],[Σ11Σ12Σ21Σ22])\left[\begin{array}{c}x_1 \\x_2\end{array}\right]\sim\mathcal{N}\left(\left[\begin{array}{c}\mu_1 \\\mu_2\end{array}\right],\left[\begin{array}{cc}\Sigma_{11} & \Sigma_{12}\\\Si

2021-03-16 11:06:01 7576 5

原创 Ubuntu18.04 + Windows 10 + MBR格式的硬盘安装遇到的坑

磁盘分区格式和BIOS方式磁盘分区格式有MBR和GPT两种格式,目前个人见到的GPT格式的更多。BMR格式的磁盘最大支持2T,最多支持4个主分区(Primary)。GPT则对二者没有限制。BIOS种类有:legacy BIOS和UEFI BIOS两种,有的电脑可以选择。GPT类型磁盘只能使用UEFI BIOS,而MBR支持legacy BIOS和UEFI BIOS。在安装系统的时候需要搞清楚自己的磁盘类型和引导方式类型。启动盘刻录Windows的启动盘刻录GPT + UEFI BIOS普通的方

2021-01-15 20:42:26 1425

原创 guided policy search代码在pycharm中调试的mjcpy激活的坑

## guided policy search代码在pycharm中调试的mjcpy激活的坑world = mjcpy.MJCWorld(model_path)ERROR: Could not open activation key file src/3rdparty/mjpro/mjkey.txtPress Enter to exit …在terminal中尝试成功案例!失败案例!pycharm中尝试失败案例问题的根本原因working directory的不同,导致了问题

2021-01-08 16:25:03 569 1

原创 ImportError: Could not find ‘cudart64_100.dll‘.

ImportError: Could not find ‘cudart64_100.dll’.TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable.出现上面的错误的话,参考:https://github.com/tensorflow/tensorflow/issues/31701https://blog.csdn.net/ay

2020-11-19 16:55:56 2068

原创 C++ 判断某个变量是某一种类型

C++ 判断某个变量是某一种类型例如判断一个变量是否是vector<int>类型?#include <iostream>#include <vector>int main(){ std::vector<int> a = { 1,2,3,4,5 }; // std::vector<std::vector<int>> b = { {1,2},{3,4} }; std::cout << (typeid(a).n

2020-09-10 20:20:32 2642

原创 visual studio: 已取消一个任务

visual studio: 已取消一个任务出现错误的原因不明,希望搞明白的可以评论留言,感谢!!!VS的输出提示如下:输出列表没有任何的提示,“重新生成“也没有用,误打误撞,解决了。删除Debug文件夹视图 →\rightarrow→ 其他窗口 →\rightarrow→ 属性管理器右键点击"项目" →\rightarrow→ 添加新项目属性表添加(项目中多了一个.props的文件,在重新生成,然后编译调试即可)...

2020-09-10 17:11:45 7150 5

原创 add_message_files() directory not found:

ROS在添加msg文件时发生找不到目录的错误CMake Error at /opt/ros/melodic/share/genmsg/cmake/genmsg-extras.cmake:94 (message): add_message_files() directory not found: /home/vector/Robot/catkin_ws/src/learning_communication/msgCall Stack (most recent call first): lear

2020-09-02 16:06:46 6404 4

原创 ROS: Cannot mix incompatible Qt library (version 0x50905) with this library (version 0x50c01)

错误开始尝试使用rosrun turtlesim turtlesim_node运行ROS的入门样例时,出现这样的错误:Cannot mix incompatible Qt library (version 0x50905) with this library (version 0x50c01) Aborted (core dumped)根据提示可以判断是QT的版本不兼容导致的错误,百度知道查看当前QT版本:$ qmake -vQMake version 2.01aUsing Qt version

2020-09-02 08:44:19 2596 9

原创 C++ 构造函数的小常识

C++ 构造函数的小常识C++类中会提供默认构造函数,但不一定如下方代码:如果自己写了带参数的构造函数,类将不会提供默认构造函数A() {};,体现在继承时,子类的构造函数,要主动调用父类的构造函数class A{private: int a;public: //A() {}; // 默认构造函数 A(int _a) :a(_a) {}; // 自定义构造函数 void get_A() { cout << "a: " << a << en

2020-08-28 11:57:13 140

原创 N个人过桥(类似N个人过河)

题目描述n个人要过一座桥,只是在漆黑的夜里,没有火把显然是不行的。但是这n个人只有一个火把,并且这座桥每次最多只能通过两个人。每个人的速度不同,若两人组队,队伍速度等于较慢一人的速度。你要做的是计算这n个人全部通过这座桥的最少时间。输入多组输入。每组数据的第一行是输入一个n``,代表有n(1 <= n && n <= 500)个人,接下来的n`个整数,代表着每个人穿过这座桥所需要的时间。输出输出一个整数,代表最优策略所需时间sum。示例输入411052

2020-08-21 21:57:09 788

原创 基数排序——C++实现

基数排序——C++实现template_head.h#include <iostream>#include <vector>#include <string>#include "../head_file/template_head.h"using namespace std;void radix_sort(){ cout << "Radix Sort!!!" << endl; int arr[] = { 73, 22,

2020-08-15 10:56:22 325

原创 桶排序——C++实现

桶排序——C++实现template_head.h#include <iostream>#include <vector>#include "../head_file/template_head.h"using namespace std;void bucket_sort(){ cout << "Bucket Sort!!!" << endl; vector<int> list = { 8,9,1,7,2,3,5,4,6,0,

2020-08-15 10:54:05 888

原创 快速排序——C++实现

快速排序template_head.h#include <iostream>#include <vector>#include "../head_file/template_head.h"using namespace std;void quick_sort(){ cout << "Quick Sort!!!" << endl; vector<int> list = { 8,9,1,7,2,3,5,4,6,0,11,9,8

2020-08-15 10:44:41 179

原创 堆排序——c++实现

堆排序——c++实现大根堆和小根堆数组实现时索引的关系:基本思路以升序为例:将待排序的数据,构造出大根堆(数组实现),索引从 0 开始:假设当前节点索引为i,其父节点索引为 (i-1)/2,左儿子索引 2i+1 和右儿子索引 2i + 2将大根堆的顶端根元素和末尾交换,固定交换后的最大的元素,2.1 是否排序成功,是的话结束,不是跳转3将剩下的元素从堆顶开始调整为新的大根堆,跳转2#include <iostream>#include "../head_file/t

2020-08-15 10:42:39 242

原创 希尔排序——C++实现

希尔排序C++实现很有意思,有点像归并排序,但是分组的策略不同。希尔排序的分组策略是a[i+k*gap]一组,k=0,1,2…。template_head.h#include <iostream>#include "../head_file/template_head.h"#include <vector>using namespace std;void shell_sort(){ cout << "Shell Sort!!!" <<

2020-08-15 10:37:30 379

原创 选择排序——C++实现

选择排序如图,每次在黄色的部分选择最小的数,和黄色部分第一个数进行交换,每次都将最小的给选择出来,所以叫选择排序template_head.h#include <iostream>#include "../head_file/template_head.h"#include <vector>using namespace std;void selection_sort(){ cout << "Selection Sort!!!" <<

2020-08-15 10:30:32 122

原创 插入排序——最简单的、和模板方法的C++实现

插入排序后期考虑使用模板示意图如上图所示,每次都将一个数组右侧无序部分的第一个,插入到左边有序的部分。插入的过程是在有序部分从右向左,不断交换位置。代码#include <iostream>using namespace std;int* sort_num(int arr[], int n);void insertion_sort(){ int list[] = { 34,8,64,51,32,21 }; int len = 6; int* p; p = so

2020-08-15 10:23:59 241

原创 冒泡排序——C++实现

冒泡排序——C++实现// bubble_sort.cpp#include <iostream>#include "../head_file/template_head.h"#include <vector>using namespace std;void bubble_sort(){ cout << "Bubble Sort!!!" << endl; vector<int> list = { 8,9,1,7,2,3,5,4,

2020-08-15 10:04:23 136

原创 排序算法通用头文件——template_head.h

排序算法C++实现的通用头文件// template_head.h#pragma once//#include "../sort_algorithms/BinaryHeap.tpp"#include <vector>#include <string>template <typename Container>void printList(Container& list) { for (auto &x : list) { std::co

2020-08-15 10:01:06 677

原创 二分查找

面试紧张没写出来,吐血lst = [i for i in range(10)]# 假设查找的数是aa = 5.5def search(lst, left, right, a): mid = int((right + left) / 2) if (lst[mid] == a): return mid if (left == right): return "cannot find" if (lst[mid] > a)

2020-08-14 12:15:12 83

原创 c++ 归并排序 - 模板函数写法

归并排序 - 模板函数写法// merge_sort.cpp#include <iostream>#include <vector>#include "../head_file/template_head.h"using namespace std;void merge_sort(){ cout << "Merge Sort!!!" << endl; vector<int> list = { 8,9,1,7,2,3,5,4,6

2020-08-04 15:23:19 614

原创 GPS方法中监督相推导

GPS方法中监督相推导GPS方法中监督相优化问题πθ←arg⁡min⁡θ∑t,i,jDKL(πθ(ut∣xt,i,j)∥pi(ut∣xt,i,j))\pi_{\theta} \leftarrow \arg \min _{\theta} \sum_{t, i, j} D_{\mathrm{KL}}\left(\pi_{\theta}\left(\mathbf{u}_{t} \mid \mathbf{x}_{t, i, j}\right) \| p_{i}\left(\mathbf{u}_{t} \mid

2020-07-18 21:48:38 95

原创 多元的线性回归

多元的线性回归我把拟合ut=Ktxt+kt\mathbf{u}_t=\mathbf{K}_t\mathbf{x}_t+\mathbf{k}_tut​=Kt​xt​+kt​的问题称之为多元线性回归,可能不太准确,我不知道具体怎么描述。其中ut,kt∈Rm\mathbf{u}_t,\mathbf{k}_t\in\mathbb{R}^mut​,kt​∈Rm,xt∈Rn\mathbf{x}_t\in\mathbb{R}^nxt​∈Rn,Kt∈Rm×n\mathbf{K}_t\in\mathbb{R}^{m\tim

2020-07-18 20:00:41 111

原创 python中列表和字典的深拷贝的问题

python中列表和字典的深拷贝的问题以字典为例class A: def __init__(self): self._data = {} def set_x(self, x_name, x_data): self._data[x_name] = x_data def get_data(self): return self._data import numpy as np def change_a(a):

2020-07-08 12:41:25 342

原创 华为机试:算24点

轻松通过90%笑死了

2020-07-06 14:48:16 491 1

原创 Dual Gradient Descent 对偶梯度下降法

Dual Gradient Descent在guided policy search算法中使用了对偶梯度下降法,但是一直没找到较好的参考资料。这里找到了一份PPT讲解,很清楚,有几何含义的解释。文档链接:https://pan.baidu.com/s/16Xo6jpe00KEuAGeuyfiIqg提取码:kmma可以扫码查看文档:...

2020-06-26 15:01:48 1610 1

原创 Error: [string -unknown location]:?: Call failed. (simCallScriptFunctionEx on state_function@Plane)

V-REP报错 Error: [string -unknown location]:?: Call failed. (simCallScriptFunctionEx on state_function@Plane)这样的错误可能是多种多样的,但是我遇到一个很奇葩的,在vrep.simxLoadScene的时候filepath填错了,导致的这个错误。...

2020-05-23 12:31:49 578

原创 matplotlib画3D图形时设置z轴尺寸

matplotlib画3D图形时设置z轴尺寸参考链接:https://www.osgeo.cn/matplotlib/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.html百度了很多都说是使用Axis3D中的ax.set_zticks(),发现不起作用,查看参考链接,发现了新用法,如下代码:fig = plt.figure()ax = Axis3D(fig)ax.set_zlim(z_min, z_max) # 有效...

2020-05-22 22:47:42 16201

原创 vrep结合centerOfMassVisualization tool得到机器人质心坐标

文章目录vrep结合centerOfMassVisualization tool得到机器人质心坐标步骤1步骤2读取结果如下vrep结合centerOfMassVisualization tool得到机器人质心坐标步骤1从下图找到centerOfMassVisualization tool,直接拖拽,放在你需要测量的机器人的base handle之下例如nao机器人:步骤2新建一个p...

2020-04-14 15:31:01 946 1

原创 latex中——misplaced \noalign. \hline,\bottomrule,\midrule问题

在LaTeX中制作表格出现misplaced \noalign. \hline,\bottomrule,\midrule等错误解决方式:制作三线表格等的表格横线时,我们需要在\hline,\bottomrule,\midrule等命令之前加上双反斜杠”\\”。 代码示例:\begin{tabular}{l} \toprule \textbf{Algorithm 1}{} Experi...

2019-11-20 18:48:00 49184

原创 guided policy search代码环境安装成功流程

文章目录A successful installation of gps code dependenciesstep 1step 2step 33.13.2step 44.14.24.3step 5step 66.16.26.36.4step 77.1 install caffe7.2 install cuda+cudnn7.3 ImportError: No module named skima...

2019-11-19 16:08:16 546

原创 Python之pip install的package到底在哪里?

文章目录Python之pip install的package到底在哪里?sudo apt-get install python-xxxsudo pip install xxxpip install xxx没有虚拟环境有虚拟环境python -m pip install xxx==x.x.x源码安装python包Python之pip install的package到底在哪里?python的pac...

2019-11-18 20:49:04 6045

原创 Guided Policy Search算法代码环境安装的坑

文章目录Guided Policy Search算法代码环境安装的坑Guided Policy Search算法代码环境安装的坑官方安装教程:http://rll.berkeley.edu/gps/

2019-11-14 11:34:20 684 1

原创 ubuntu18.04安装后无法重启,开机黑屏,无法使用扩展屏幕

ubuntu18.04安装后无法重启,开机黑屏,无法使用扩展屏幕参考连接:解决英伟达驱动问题,无法使用扩展屏幕:https://www.jianshu.com/p/9384af4896f3双硬盘双系统安装,解决安装后无法重启,开机黑屏问题:https://blog.csdn.net/mtllyb/article/details/78586540...

2019-10-14 09:05:41 2665

原创 C++之迭代器

C++之迭代器#include <iostream>#include <vector>#include <string>using namespace std;/* 迭代器:可迭代的(容器或者string对象)的访问机制,类似指针 string s; auto b = s.begin(), e = s.end(); // b是s的首字符,...

2019-10-08 14:27:23 132

原创 C++之vector标准库

C++之vector标准库#include <iostream>#include <vector>/* vector: 表示一组“类型相同”的对象的“集合”,集合中每个对象都有“索引”与之对应, vector常被称作“容器(container)”*/using namespace std;void testVector() { cou...

2019-10-08 09:36:21 196

原创 C++之String标准类库

C++之String标准类库基础#include <iostream>#include <string>using namespace std;/* 初始化方式:拷贝初始化、直接初始化 string s1 = "haha"; // 拷贝初始化 string s2("haha"); // 直接初始化*/void testString() { ...

2019-10-06 20:03:42 215

原创 C++自定义数据结构

C++自定义数据结构#include <iostream>void selfDefinedDataStructure() { std::cout << "自定义数据结构:" << std::endl; // 自定义Sales_data数据类型 // struct + 类名 + 类体 // 类体中定义类的“成员”,次数的“成员”只有数据成员(dat...

2019-10-04 16:36:21 932

原创 C++类型别名

C++类型别名#include <iostream>using namespace std;typedef double db;typedef db db1;using integer = int;/* 处理类型: 类型别名: 1. typedef double db; typedef db db1; // 将double起了一个别名db,同时...

2019-10-04 15:31:23 219

原创 C++复合类型:引用和指针

C++复合类型:引用和指针#include <iostream>using namespace std;/* 复合类型:基于其他类型定义的类型 常见:引用、指针 引用:1. 右值引用(rvalue reference) 2. 左值引用(lvalue reference) 引用必须是一个对象,引用就是起一个别名,引用必须初始化。 指针:是“指向...

2019-10-03 18:57:16 197

V-REP_PRO_EDU_V3_5_0_Linux.rar

ubuntu下的vrep,方便大家下载,比官网速度快很多。大家便捷地使用工具,开发出更多优秀的作品,大家共享。

2020-04-16

pynaoqi-python2.7-2.8.6.23-linux64-20191127_152327.tar.gz

python-naoqi, 适用于Ubuntu系统,方便快速下载。共同分享资源,造福大家。希望大家能够使用该资源,开发出更好的东西共享,共同进步。

2020-04-16

V-REP_PRO_EDU_V3_6_2_Ubuntu18_04.tar.xz

和gazebo等类似的机器人仿真软降,官网下载网速太慢,这里共享资源。适用于Ubuntu系统,教育版,免费

2020-04-16

《强化学习原理及其应用》《深入浅出强化学习原理入门》高清PDF带书签及源代码.rar

《强化学习原理及其应用》和《深入浅出强化学习原理入门》两本书,高清PDF,自带书签,提供课内练习源码。

2019-07-05

深度学习中文版,带完整书签

深度学习中文版,带完整书签,不下载都吃亏,是血亏。

2019-04-23

ProMPs概率运动基元JanPeters论文代码

Probabilistic movement primitives for coordination of multiple human–robot collaborative tasks基于概率运动基元的多任务人机协作论文代码,

2019-03-08

基于vue2.0的移动端music player代码

基于vue2.0的移动端music player代码,通过具体案例的参考学习,进步更快。通过具体案例的参考学习,进步更快。

2018-11-19

AI智能五子棋Python代码

这个代码是智能五子棋代码,使用python实现,可视化界面,有基于规则的算法和基于神经网络的算法,可以实现一定水准的五子棋棋力。

2018-08-01

论文:ADP with MCTS Algorithm for Gomoku 英文版和中文版

本科毕业论文的参考文献,结合蒙特卡洛树搜索的自适应动态规划五子棋算法。本人将英文版本翻译成中文版,打发一起上传。

2018-07-24

毕业设计答辩PPT模板

本科、研究生、博士生等毕业答辩PPT模板,同样适合这类汇报等,欢迎下载,换点C币,求个生存。

2018-07-24

微信点餐小程序

微信点餐小程序,本科专业实践的一个小课题项目,总体上实现了微信小程序点餐的功能。

2018-07-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除