自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 收藏
  • 关注

原创 Ubuntu apt-get 删除安装失败的包

查看有哪些安装失败的包$ sudo dpkg --configure -a 删除安装失败的包$ sudo dpkg --remove --force-remove-reinstreq package_name $ sudo apt-get update删除软件包后,使用命令更新系统,成功更新后重新启动系统。参考:https://ubuntuqa.com/article/10754.htmlubuntu针对包的常见操作:https://www.zybuluo.co...

2021-05-07 20:06:32 3491

原创 leecode每日一题77-组合

题目描述给定两个整数 n 和 k,返回 1 … n 中所有可能的 k 个数的组合。示例:输入: n = 4, k = 2输出:[ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ]解析以 n=4, k=2 为例,选出组合的第一个数时,我们有 4 种选择,如下图。选出第二个数时,本来有 4 种选择,但有的选择和上一个选择相同,有的选择会产生重复的组合,比如 [1,2] 和 [2,1]。这些选择应该被修剪掉,

2020-12-20 11:16:04 391 1

原创 leecode每日一题417. Pacific Atlantic Water Flow (Medium)

这里写自定义目录标题题目示例求解题目的理解代码题目给定一个 m x n 的非负整数矩阵来表示一片大陆上各个单元格的高度。“太平洋”处于大陆的左边界和上边界,而“大西洋”处于大陆的右边界和下边界。规定水流只能按照上、下、左、右四个方向流动,且只能从高到低或者在同等高度上流动。请找出那些水流既可以流动到“太平洋”,又能流动到“大西洋”的陆地单元的坐标。提示:输出坐标的顺序不重要m 和 n 都小于150示例给定下面的 5x5 矩阵: 太平洋 ~ ~ ~ ~ ~

2020-12-19 16:29:31 152 2

转载 install git lfs on ubuntu

sudo apt-get install software-properties-commonsudo curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh > script.shsudo bash script.shsudo apt-get install git-lfsgit lfs install参考网页

2020-06-11 10:56:27 461

转载 虚拟机添加共享文件夹后看不到

安装vmtools后还是不显示执行以下操作//但是只有root权限才行1:输入命令sudoaptinstall open-vm-tools安装工具2:输入命令sudovmhgfs-fuse .host:/ /mnt/hgfs完成设置去除root,编辑 vi /etc/fstab: 在最后添加一行: .host:/ /mnt/hgfs fuse.vmhgfs-fuse al...

2020-04-23 09:56:33 310

原创 c++ 随机数

使用方法:产生一定范围随机数的通用表示公式要取得[a,b)的随机整数,使用(rand() % (b-a))+ a; 要取得[a,b]的随机整数,使用(rand() % (b-a+1))+ a; 要取得(a,b]的随机整数,使用(rand() % (b-a))+ a + 1; 通用公式:a + rand() % n;其中的a是起始值,n是整数的范围。 要取得a到b之间的随机整数,另一种...

2020-02-04 16:47:17 147

翻译 ubuntu 更改计算机名

简单操作步骤如下:$ sudo apt install gksu$ gksudo gedit /etc/hostname#在打开的文本中更改计算机名,然后单击“保存”$ sudo reboot参考:https://www.cnblogs.com/aqi0530/p/3705432.htmlUbuntu: How to Change the Computer NameYo...

2020-01-31 22:51:48 431

原创 ubuntu ssh 远程访问Connection refused

解决办法:sudo vim /etc/ssh/sshd_config #在这里可以定义SSH的服务端口,默认端口是22 Port 22#如果用户想让22和60000端口同时开放,可以开放多个端口: Port 22 Port 60000# 然后重启SSH服务:$ sudo /etc/init.d/ssh stop$ sudo /etc/init.d/ssh start参考:...

2020-01-31 22:29:22 3436

原创 proj的安装与使用

官网下载地址:https://proj.org/download.html官网git 地址:https://github.com/OSGeo/PROJ.git (下载比较慢)ubuntu16下的安装:$ cd ~/Download$ git clone https://github.com/OSGeo/PROJ.git(多种尝试,发现下载都很慢,不知道是不是资源问题)#...

2019-12-29 11:39:47 11247 1

原创 【ACADO 使用】纵向控制的简单应用

纵向控制的简单应用(考虑延时delay=0.6s)。#include <acado_toolkit.hpp>#include <acado_gnuplot.hpp>int main(){ USING_NAMESPACE_ACADO DifferentialState s,v,a; Control u_a; Parameter ...

2019-12-26 14:53:57 1765

原创 robot_pose_ekf  的安装与使用

robot_pose_ekf环境安装:https://github.com/ros-planning/robot_pose_ekf使用参考:https://www.ncnynl.com/archives/201708/1909.htmlhttp://wiki.ros.org/robot_pose_ekfhttps://blog.csdn.net/shenghuaijing3314/a...

2019-12-26 07:51:30 3167 1

原创 navigation 环境安装

ros-planning/navigation代码库:https://github.com/ros-planning/navigationnavigation环境安装############################################################################### 下载与编译##################...

2019-12-26 07:51:06 1057

原创 Ubuntu 压缩解压相关用法

gzip -d *.log.gz打包压缩命令总结:.tar解包:tar xvf FileName.tar打包:tar cvf FileName.tar DirName(注:tar是打包,不是压缩!)---------------------------------------------.gz解压1:gunzip FileName.gz解压2:gzip -d FileName...

2019-12-16 18:55:17 108

原创 Octomap库的安装与使用

介绍官网:https://octomap.github.ioROS octomap wiki:http://wiki.ros.org/octomap介绍:https://www.cnblogs.com/gaoxiang12/p/5041142.html高翔git 学习:https://github.com/gaoxiang12/octomap_tutor安装ubuntu...

2019-12-09 05:20:10 2996

原创 CppAD

CppAD: A Package for Differentiation of C++ Algorithms源代码:https://github.com/coin-or/CppAD说明文档:https://coin-or.github.io/CppAD/doc/cppad.htm#Features.Base%20Type简单例子:https://coin-or.github.io/Cp...

2019-12-05 10:47:55 3388

原创 ACADO 参考学习资料

1)http://docs.ros.org/indigo/api/acado/html/index.html2)http://www.syscop.de/files/2015ss/numopt/e10_ACADO.pdf3)http://acado.sourceforge.net/doc/pdf/acado_manual.pdf

2019-12-04 22:26:34 1415 1

原创 IPOPT 求解优化问题示例

求解模型状态变量 $ x = [x_1,x_2,x_3,x_4]^\mathrm{T}$目标函数 $ f(x) = x_1 * x_4 * (x_1 + x_2+ x_3) + x_3$约束条件:$ g_1(x) = x_1 * x_2 * x_3 * x_4 \ge 25 $; $ g_2(x) = x^2_1 + x^2_2 + x^2_3 + x^2_4 = 40 $求解代码...

2019-12-04 15:27:22 6466 7

原创 OMPL 实现 2D RRTstar

RRT 实现 2D RRT star 的例子,注释后续添加。参考:http://ompl.kavrakilab.org/optimalPlanningTutorial.html主要3个文件:rrtstar.cpp CMakeLists.txt plot_rrtstar.py其中rrtstar.cpp如下:#include <ompl/base/SpaceI...

2019-12-04 08:24:53 1256

原创 Ubuntu 下 OMPL 的安装与使用

OMPL 库的简介:OMPL(The Open Motion Planning Library) 运动规划库。可以实现以PRM(Probabilistic Roadmap Method) 和 RRT为基础的各种基于概率的规划算法。如PRM系列(Lazy PRM/PRM*/LazyPRM* 、SPARS(SPARS2)、RRT系列(RRT/RRT Connect/RRT*等)、EST、KPIE...

2019-12-03 06:47:48 5276 2

原创 ubuntu 环境下 IPOPT 安装与使用

安装 Ipopt$ wget https://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.7.zip $ unzip Ipopt-3.12.7.zip $ rm Ipopt-3.12.7.zip$ cd Ipopt-3.12.7$ ./configure......configure: Main configuration o...

2019-12-02 17:07:34 13549 2

原创 error: ‘const class google::protobuf::FileOptions’ has no member named ‘has_php_namespace’;

1)protobuf --> 3.5.02)cd grpcRef:https://www.jianshu.com/p/725c45353c9dhttps://blog.csdn.net/mou_it/article/details/79846066 make clean make HAS_SYSTEM_PROTOBUF=false

2019-11-30 12:15:12 1642

原创 leecode每日一题05 Leaf-Similar Trees

Consider all the leaves of a binary tree.  From left to right order, the values of those leaves form a leaf value sequence.For example, in the given tree above, the leaf value sequence is (6, 7, 4...

2019-01-05 20:28:07 120

原创 leecode每日一题04 N-ary Tree Level Order Traversal

Given an n-ary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example, given a 3-ary tree:  We should return its level order traver...

2019-01-05 12:08:35 107

原创 delete-non-virtual-dtor 问题解决办法

编译过程中出现如下警告: warning: deleting object of abstract class type ‘CAN_driver’ which has non-virtual destructor will cause undefined behaviour [-Wdelete-non-virtual-dtor]     delete veh_CAN;其中代码结构大致如下...

2018-12-11 08:44:20 5154

原创 C++ 恼人的multiple definition of X链接错误

1. 错误原因首先查了一下C&amp;C++从源代码编译到可执行文件的过程:1)预处理将伪指令(宏定义、条件编译、和引用头文件)和特殊符号进行处理2)编译过程通过词法分析、语法分析等步骤生成汇编代码的过程,过程中还会进行优化3)汇编过程将汇编代码翻译为目标机器指令的过程(.o文件,至少包含代码段和数据段)4)链接程序将所有需要用到的目标代码(变量函数或其他库文件等)装配到一个整...

2018-12-10 13:28:26 523

原创 leecode每日一题03-subtree of another tree

题目描述:Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists of a node in s and all of th...

2018-10-29 09:11:55 140 4

原创 leecode每日一题02- same tree[easy]

 题目:Given two binary trees, write a function to check if they are the same or not.Two binary trees are considered the same if they are structurally identical and the nodes have the same value.Ex...

2018-10-28 22:10:34 129

原创 leecode每日一题01- Binary Tree Level Order Traversal [Medium]

 关于二叉树的遍历查找。Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree [3,9,20,null,null,15,7], 3 ...

2018-10-28 21:53:42 105

原创 C++ stl accumulate 函数的理解

首先看一个例程://eg.1vector&lt;int&gt; vi{1, 2, 3};cout &lt;&lt; accumulate(vi.begin(), vi.end(), 0); // 6可以看出accumulate 有三个参数:第一个是起点;第二个是终点,第三个是初始值。 // eg.2 int ptotal; ptotal = accumul...

2018-09-15 11:18:12 828

原创 Ubuntu 下安装xgboost

Ubuntu14.04 下安装xgboost(Python2.7)下载、环境配置、安装

2016-09-15 18:03:26 2480 1

空空如也

空空如也

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

TA关注的人

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