#include "ros/ros.h"
//#include "std_msgs/String.h"//geometry_msgs
#include "geometry_msgs/Twist.h"//包含elocity space消息
#include "math.h"
#include
#include
int main(int argc, char **argv)
{
ros::i...
分类:
其他好文 时间:
2015-05-05 21:54:25
阅读次数:
261
关于QT的智能提示,有两点: 一:默认只能在Ctrl+Space或打(“.”会自动转成" ->")的时候会出现。 由于Ctrl+Space默认在我电脑上是输入法的切换。所以一直以为没这个功能,敲代码时特别郁闷。 于是在QT Creato...
分类:
其他好文 时间:
2015-05-05 17:02:59
阅读次数:
141
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?/**...
分类:
其他好文 时间:
2015-05-05 16:08:30
阅读次数:
103
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?/** * Definition for singly-linked list. *...
分类:
其他好文 时间:
2015-05-05 15:49:17
阅读次数:
115
碰到一台机器,不管是哪个分区,tail -f 文件就会提示如下,less不会有问题,tail -10 也没问题 tail: cannot watch `/www/log/a.com.log‘: No space left on device tail: cannot watch `?/var/log/messagess‘...
分类:
其他好文 时间:
2015-05-05 12:52:42
阅读次数:
160
sed-i‘s#^\t##g‘file_name将开头的tab键空白处删掉sed-i‘/^$/d‘file_name删掉空白行,如果存在空格,会删不了哪一行sed‘/^*$/d‘file_name删除空白行,以空格开头,中间有多个空格,并以空格结尾的行sed‘/^[[:space:]]*$/d‘ld.txt删除空白的行(同上一条)cat-v选项,显示不可见..
分类:
其他好文 时间:
2015-05-05 12:49:28
阅读次数:
132
Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is great...
分类:
其他好文 时间:
2015-05-05 12:27:33
阅读次数:
118
Ctrl+Space:代码自动完成,在Windows下通常与输入法切换有冲突,我改成了ALT+2;Ctrl+/:注释&取消注释;Alt+Shift+F:编辑器自动格式,由于三个组合键不好按,我改成了F12;Ctrl+R:变量统一修改,取消用esc ;Alt+Enter:错误自动修正,或为函数添加注释...
分类:
Web程序 时间:
2015-05-05 10:15:04
阅读次数:
165