- 博客(5)
- 资源 (12)
- 收藏
- 关注
原创 guardian_robot系统移植手记
1、ubuntu 开机自动登入tty首先安装 mingetty:sudo apt-get install mingetty然后打开tty1配置文件:sudo gedit /etc/init/tty1.conf # tty1 - getty## This service maintains a getty on tty1 from the point the system is# started
2017-04-26 20:45:29 549 1
原创 随笔之ros多线程
nt main(int argc, char **argv){ ros::init(argc, argv, "convert_to_mono"); ros::NodeHandle nh; ros::Publisher image_pub = nh.advertise("image_hsv", 1000); ros::Subscriber image_sub = nh.su
2016-04-06 18:46:23 2860
原创 linux环境下无阻塞键盘输入以及MAP容器中value为数组的一些问题
一、使用ncurses实现键盘无阻塞输入的问题 先看代码:#include "ncurses.h"#include <fcntl.h>int main(int argc, char **argv){ int key; initscr(); crmode(); keypad(stdscr,TRUE); noecho(); fcntl(0,F_SETFL, O_NONBLO
2016-03-30 11:58:42 611
转载 使用map实现函数的switch-case
#include <iostream> #include <iterator> #include <string> #include <map> using namespace std; // 函数指针定义 typedef void (* switchcallback)(void); void displayA() {
2016-03-29 22:39:58 1729
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人