摘要: $ mkdir -p ~/catkin_ws/src $ cd ~/catkin_ws/src $ cd ~/catkin_ws/ $ catkin_make $ source devel/setup.bash 阅读全文
posted @ 2017-05-24 17:10 IQIT 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 解决QT:forward declaration of 'struct Ui::xxx';invalid use of incomplete struct "Ui::Widget" 等莫名奇妙错误 今天在进行QT Widget的UI设计时,改了下Widget的对象名,然后在多次成功编译运行后,执行清 阅读全文
posted @ 2017-05-23 16:46 IQIT 阅读(669) 评论(0) 推荐(0) 编辑
摘要: QString s;QByteArray data(s.toUtf8());client->write(data); 阅读全文
posted @ 2017-05-23 16:12 IQIT 阅读(469) 评论(0) 推荐(0) 编辑
摘要: Qt的QString类提供了很方便的对字符串操作的接口。 使某个字符填满字符串,也就是说字符串里的所有字符都有等长度的ch来代替。 QString::fill ( QChar ch, int size = -1 ) 例: QString str = "Berlin"; str.fill('z'); 阅读全文
posted @ 2017-05-23 10:16 IQIT 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-05-23 08:00 IQIT 阅读(398) 评论(0) 推荐(0) 编辑
摘要: QT中图片的比例变换,为了适应控件的大小,采用QImage、QPixmap等绘图设备类提供的scaled()函数,下面是Qt文档对于scaled()函数介绍: 函数原型: QImage QImage::scaled ( int width, int height, Qt::AspectRatioMo 阅读全文
posted @ 2017-05-22 19:42 IQIT 阅读(12456) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install ros-indigo-kobuki ros-indigo-kobuki-corerosrun kobuki_ftdi create_udev_rules# This launches the minimal operation configuration > 阅读全文
posted @ 2017-05-21 13:40 IQIT 阅读(883) 评论(0) 推荐(0) 编辑
摘要: 一 基本概念 1 参考系(reference frame):由于运动描述的相对性,要描述一个物体的运动必须选择其他物体作参考,用来做参考的物体称为参考系。(把多解变为唯一解) 2坐标系(coordinate system):为了定量描述某些性质。 3参考坐标系(coordinate frame):在 阅读全文
posted @ 2017-05-21 11:12 IQIT 阅读(2778) 评论(0) 推荐(0) 编辑
摘要: catkin_make -DCATKIN_WHITELIST_PACKAGES= "包名" $ catkin_make -DCATKIN_WHITELIST_PACKAGES="beginner_tutorials" 阅读全文
posted @ 2017-05-20 19:45 IQIT 阅读(1634) 评论(0) 推荐(0) 编辑
摘要: Linux下的设备使用都需要使用sudo或root用户才能打开,为了能让普通用户也能使用串口,可以增加udev规则来实现,具体方法如下: sudo vim /etc/udev/rules.d/70-ttyusb.rules 增加如下内容: KERNEL=="ttyUSB[0-9]*",MODE="0 阅读全文
posted @ 2017-05-17 22:00 IQIT 阅读(3377) 评论(0) 推荐(0) 编辑