自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 the method of constraints

assume we need to select a group of points from a mess  so how to select ?we to find the constraints of those samples.

2018-04-27 10:12:27 116

原创 Constructor initializer list

https://www.youtube.com/watch?v=1nfuYMXjZsA          from this url  let's demonstrate something that really matters  class Entity{public: Entity() { std::cout << "wtf" << std::endl...

2018-04-23 17:06:22 235

原创 gmapping 代码

// Versions of advertise() ////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** * \brief Advertise a topic, simple version ...

2018-04-23 15:27:55 602

原创 vim without the authority to modify the file

I am trying to edit sources.list using vi editor but getting the following error while saving the file:/etc/apt/sources.list" E212: Can't open file for writingvi ubuntu-11.04shareimprove this questio...

2018-04-20 18:32:58 169

原创 cpp practice

In other words, a unary predicate is called like a function. The requirement of "callable" is met by a pointer to a function, but also by an object (or a reference to an object) of a type that has the...

2018-04-19 21:34:08 123

原创 linux 莫名其妙出现什么crawling and gvfs denied 错误

https://answers.ros.org/question/76896/permission-denied-gvfs/ 按照这个老哥的把这个删除了 就好了

2018-04-16 21:40:07 126

原创 nohup和杀掉进程

看了个油管 视屏 so let 's  type sleep 100&and then type fg to see the background and then we can press ctrl C to terminate that process.so whit if we type nohup sleep 200pgrep sleep checking for the slee...

2018-04-16 21:14:52 2151

原创 my first launch file

<launch>  <node pkg="turtlesim" type="turtle_teleop_key12312" name="turtlesim_teleop_keyboard" output="screen">    <remap from="turtle1/cmd_vel" to="/wtf_CmdVel"

2018-04-15 18:23:40 150

原创 Great tutorial from github

it 's about position control of the turtlesim the source code page is fromhttps://github.com/utari/UTARI_ROSTutorials/wiki/TurtlesimPositionController-TutorialDesired LocationThis will be a new topic ...

2018-04-15 16:19:35 161

原创 KMP算法

this is the pattern table.this is the fucking algorithm https://www.youtube.com/watch?v=y2b94AxPlF8 that's the good explaination

2018-04-13 11:44:37 95

原创 unsolved problem

class Solution {public: bool repeatedSubstringPattern(string s) { int n =s.size(); int i=1; while(s[0]!=s[i]&&i<n) i++; int sum =i; if(...

2018-04-13 00:13:05 174

原创 算法的一些技巧

比如说 字母Boolean问题可以vector<int>vector<int> wtf(26,0)for (int i =0 ;i<s.size();i++)wtf[s[i]-'a']++;

2018-04-12 18:46:08 161

原创 shits happens\

  catkin_package() include dir '/home/booney/node_example/devel/include'  should be placed in the devel space instead of the build spaceCall Stack (most recent call first):  /opt/ros/indigo/share/catk...

2018-04-12 15:32:28 252

原创 RosNode c++

http://wiki.ros.org/ROSNodeTutorialC%2B%2B that 's the shit from the ros wiki let's check out thi shit!Writing a Publisher/Subscriber with Dynamic Reconfigure and Parameter Server (C++)This tutorial w...

2018-04-11 21:46:42 282

原创 Linux下编译工程

https://blog.csdn.net/windone0109/article/details/2817792 Linux 下查找文件。https://blog.csdn.net/shuifu1988/article/details/76461244 stageros 的启动http://wiki.ros.org/ROS/Tutorials/UnderstandingNodes 启动turtl...

2018-04-11 21:18:11 967

原创 Boost多线程的学习

#include <boost/thread.hpp> #include <iostream> void wait(int seconds) { boost::this_thread::sleep(boost::posix_time::seconds(seconds)); } void thread() { for (int i = 0; i &...

2018-04-08 11:10:19 197

原创 代码流程笔记

首先是slam初始化。管理程序初始化, 设定catkinroute激光信息初始化,SWin_XYRange初始化srv.almatch和packdata小车的信息 tool_tfm.renew_data(tfpub_odomdta, param_lsrlocation); tf 更新里程计启动里程计接收器 sin_chart_init(); 图标?这是什么看构造函数,boost function ...

2018-04-07 19:42:57 263

原创 boost库管理多线程的函数

boost::recursive_mutex http://www.169it.com/article/6167267338722791624.htmlhttps://www.boost.org/doc/libs/1_31_0/libs/thread/doc/recursive_mutex.htmlhttps://www.jianshu.com/p/0b2e360243f4https://ke.q...

2018-04-04 19:12:01 144

原创 多线程3

昨天忘记贴这个帖子的链接了点击打开链接在下面的例子中,我们创建一个键,并将它和某个数据相关联。我们要定义一个函数createWindow,这个函数定义一个图形窗口(数据类型为Fl_Window *,这是图形界面开发工具FLTK中的数据类型)。由于各个线程都会调用这个函数,所以我们使用线程数据。/* 声明一个键*/pthread_key_t myWinKey;/* 函数 createWindow...

2018-04-03 10:50:11 134

原创 一个恶心的错误

class Solution {public: int strStr(string haystack, string needle) { int m=haystack.length(); int n=needle.length(); if(!n) return 0; for (int i=0;i<m-n+1;i++)...

2018-04-03 09:43:23 148

原创 多线程 2

4. 线程的数据处理  和进程相比,线程的最大优点之一是数据的共享性,各个进程共享父进程处沿袭的数据段,可以方便的获得、修改数据。但这也给多线程编程带来了许多问题。我们必须当心有多个不同的进程访问相同的变量。许多函数是不可重入的,即同时不能运行一个函数的多个拷贝(除非使用不同的数据段)。在函数中声明的静态变量常常带来问题,函数的返回值也会有问题。因为如果返回的是函数内部静态声明的空间的地址,则在一...

2018-04-02 19:49:27 124

原创 多线程

先补上一个Qt的快捷键 刚才在Ubuntu下没保存 fuck 点击打开链接然后再谈谈多线程的理解  逼乎高赞说的还行点击打开链接首先是概念的区分,线程与进程,未经深思熟虑的想法是,看了这回答,我想起了贴吧老哥那句轮X也轮不到你。。。。2333cpu在多核的情况先多进程的性能是要好于多线程的。。这个很好理解 。继续运用贴吧老哥的例子就是有多个到达交配阶段的雌性动物的时候,一夫一妻制是相对较好的,如果...

2018-04-02 19:16:04 117

原创 一个菜鸡的c++旅程

这道是指针题,又来练功了二话不说想了一会 还是看答案吧注意人家的双循环写法 和我的脑残XJB写法*** 本参考程序来自九章算法,由 @刘同学 提供。版权所有,转发请注明出处。* - 九章算法致力于帮助更多中国人找到好的工作,教师团队均来自硅谷和国内的一线大公司在职工程师。* - 现有的面试培训课程包括:九章算法班,系统设计班,算法强化班,Java入门与基础算法班,Android 项目实战班...

2018-04-02 16:16:41 182

原创 清晨醒脑C++

怎么使用string来着?https://blog.csdn.net/liuchuo/article/details/54599840 substr 用法字符串转换为整数的时候记得使用基数 base = 10 * base + (str[i++] - '0');这种循环很常见也是最重要的,其他的只是为了防止其他状况的设计罢了又听到了Kempff的Goldburg variations ,...

2018-04-02 10:57:24 149

原创 刷题呗

Previously ,我在实验室 打的没保存下来,刚才那道题应该是寻找5,因为2是多出来的,相当于5的倍数。。不过 就算是我自己 ,过了许多天之后也看不懂我这上面写的究竟是什么东西。现在看这个merge two sorted Array 的问题首先,是这个array ,vector是cpp一个神器,但是,我还是不知道如何操作而且还要做一个排序,确实对于没什么经验的我来说挺难的,虽然上面标注的是e...

2018-04-01 20:19:22 323

原创 c++ Sprites

probably all the assets in the game will be sprites,from the UI to the main characters.Sprites 就是中文的子画面的意思  看下代码#pragma once#if !defined(__BACKBUFFER_H__)#define __BACKBUFFER_H__// Library Includ...

2018-04-01 16:47:50 405

原创 C++ Unreal 2

Setting defaults in my constructorSetting default values for properties in a constructor works the same as your typical C++ class. Below are two examples of setting default values in a constructor and...

2018-04-01 00:19:00 253

空空如也

空空如也

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

TA关注的人

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