<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[undersky_的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/undersky_</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; undersky_]]></copyright><item><title><![CDATA[【Linux进程间通讯】共享内存函数及用例的部分内容记录]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/124741075</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/124741075</guid><author>undersky_</author><pubDate>Thu, 12 May 2022 22:32:23 +0800</pubDate><description><![CDATA[关于共享内存函数与基本概念参考已有博客链接: link
此处对学习过程中的部分内容进行补充记录：
1、C语言中__FUNCTION__,FILE_和_LINE 的用法
C/C++提供了三个宏__FUNCTION__,_FILE_和_LINE_定位程序运行时的错误。程序预编译时预编译器将用所在的函数名，文件名和行号替换。当运行时错误产生后这三个宏分别能返回错误所在的函数，所在的文件名和所在的行号。
例程
//文件名字叫test.cpp，位于D:\test\下 
#include &lt;stdio.h&gt;]]></description><category></category></item><item><title><![CDATA[在QT中开发ROS功能的两种方法]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/118369317</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/118369317</guid><author>undersky_</author><pubDate>Wed, 30 Jun 2021 20:59:54 +0800</pubDate><description><![CDATA[方法一：
直接安装带有ros库的qt版本，下载链接为链接
下载完成后，继续按照上述链接中的教程安装即可。
方法二：
首先分别安装好QT、ROS，让后将ros的库手动导入进QT的工程文件中，具体步骤参考下面的参考链接
链接一：参考链接一
链接二：参考链接二

...]]></description><category></category></item><item><title><![CDATA[力扣——链表基础]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/117868597</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/117868597</guid><author>undersky_</author><pubDate>Sun, 13 Jun 2021 09:34:48 +0800</pubDate><description><![CDATA[https://blog.youkuaiyun.com/weixin_42454048/article/details/113066625

]]></description><category></category></item><item><title><![CDATA[win10中mosquitto搭建代理服务器，并通过mqtt实现连接]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/116600936</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/116600936</guid><author>undersky_</author><pubDate>Mon, 10 May 2021 17:25:44 +0800</pubDate><description><![CDATA[首先下载win10版本的mosquitto安装包下载链接
下载后安装，建议安装在c盘。
安装后得到mosquitto文件夹

首先修改配置文件mosquitto.conf
将下面代码的注释删掉：
retry_interval 20
sys_interval 10
store_clean_interval 10
max_inflight_messages 20
max_queued_messages 100
queue_qos0_messages false
bind_address
port

并将自己的端]]></description><category></category></item><item><title><![CDATA[力扣刷题--关于哈希表]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/116501875</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/116501875</guid><author>undersky_</author><pubDate>Fri, 07 May 2021 20:31:42 +0800</pubDate><description><![CDATA[哈希表基本原理 链接
本题中用了一个求和函数：accumulate
int sumA = accumulate(A.begin(), A.end(), 0);

一种for循环遍历容器元素的写法
for (auto&amp; y : B){

}

参考链接

]]></description><category></category></item><item><title><![CDATA[Qt中调用MQTT的配置过程]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/116049877</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/116049877</guid><author>undersky_</author><pubDate>Fri, 23 Apr 2021 15:44:58 +0800</pubDate><description><![CDATA[本文使用的配置
QT版本：QT5.14
编译器：MSVC2017
MQTT使用的是EMQ提供的源码，下载地址
下载后解压，打开工程文件qmqtt.pro
选择MSVC2017下，Release编译方式进行编译
如果报错：perl 不是内部或外部命令，也不是可运行的程序。
需要安装perl，下载地址：https://www.perl.org/get.html
编译成功后，生成文件夹：
build-qmqtt-Desktop_Qt_5_14_2_MSVC2017_64bit-Release
包括一下文件

以上]]></description><category></category></item><item><title><![CDATA[经纬高坐标系-ecef坐标系-enu坐标系]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/115376631</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/115376631</guid><author>undersky_</author><pubDate>Thu, 01 Apr 2021 16:11:18 +0800</pubDate><description><![CDATA[RTK获取的坐标系为经纬高坐标（经度、纬度、海拔），而mavros中常用的是enu坐标系（东北天坐标），即原点O为基站、y轴向北、x轴向东、z轴向天。
mavros中通过ecef坐标系作为转换中介。
ecef坐标系(Earth-Centered, Earth-Fixed)：
Z轴指向指向北，但不完全精确地与地球转动轴重合。转动轴有微小“摆动”，称之为“极运动(polar motion)”。X轴在球面上与格林威治线和赤道的交点(经纬度都为0的点)相交。
转换函数：
经纬高-ecef
earth.Forward]]></description><category></category></item><item><title><![CDATA[GeographicLib::Geocentric 类的参数]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/115374605</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/115374605</guid><author>undersky_</author><pubDate>Thu, 01 Apr 2021 15:12:26 +0800</pubDate><description><![CDATA[解释说明：
Geocentric coordinates
Convert between geodetic coordinates latitude = lat, longitude = lon, height = h (measured vertically from the surface of the ellipsoid) to geocentric coordinates (X, Y, Z). The origin of geocentric coordinates is at the center]]></description><category></category></item><item><title><![CDATA[leetcode——图片平滑器]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/115347166</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/115347166</guid><author>undersky_</author><pubDate>Wed, 31 Mar 2021 12:00:40 +0800</pubDate><description><![CDATA[思路，1、先确定所有坐标点的上下边界（是有空余还是就是坐标点本身）
2、再遍历每个点，计算平均值
class Solution {
public:
    vector&lt;vector&lt;int&gt;&gt; imageSmoother(vector&lt;vector&lt;int&gt;&gt;&amp; M) {
        int r=M.size(),c=M.back().size();
        vector&lt;vector&lt;int&gt;&gt; res(r,ve]]></description><category></category></item><item><title><![CDATA[leetcode——滑动窗口问题]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/115343708</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/115343708</guid><author>undersky_</author><pubDate>Wed, 31 Mar 2021 10:09:35 +0800</pubDate><description><![CDATA[今天栽到一个简单题上，心态崩了呀。

滑动窗口问题：
不需要嵌套两个for循环，每次比较的时候“去头补尾”，即可实现窗口滑动。

]]></description><category></category></item><item><title><![CDATA[种花问题]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/115325774</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/115325774</guid><author>undersky_</author><pubDate>Tue, 30 Mar 2021 15:01:24 +0800</pubDate><description><![CDATA[记录一下心得：
本题已经考虑到了贪心算法，检测第i个位置是否能种，问题在于没有认真分析能种的全部情况，即判断条件。
因此以后遇到此种判断条件复杂的问题时，应先理清思路，分析出全部可能的情况。

...]]></description><category></category></item><item><title><![CDATA[leetcode——汇总区间]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/114415137</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/114415137</guid><author>undersky_</author><pubDate>Fri, 05 Mar 2021 21:36:13 +0800</pubDate><description><![CDATA[本题用到了几个小点，这里记录一下：
1、to_string()函数：
将数值转换为字符串、并返回相应字符串
函数原型：
string to_string (int val);
string to_string (long val);
string to_string (long long val);
string to_string (unsigned val);
string to_string (unsigned long val);
string to_string (unsigned long lo]]></description><category></category></item><item><title><![CDATA[Leetcode--数组加1]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/112344741</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/112344741</guid><author>undersky_</author><pubDate>Fri, 08 Jan 2021 09:20:39 +0800</pubDate><description><![CDATA[直接用数组算比转化为数更简单一些，考虑最后一位是否为9，不是9则+1，是9则考虑前一位。
注：vector定义与赋值的方法link

]]></description><category></category></item><item><title><![CDATA[最大子序和--动态规划问题]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/112337805</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/112337805</guid><author>undersky_</author><pubDate>Thu, 07 Jan 2021 21:00:58 +0800</pubDate><description><![CDATA[动态规划问题
解答


]]></description><category></category></item><item><title><![CDATA[leecode刷题2—vector相关内容]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/108534377</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/108534377</guid><author>undersky_</author><pubDate>Fri, 11 Sep 2020 14:48:21 +0800</pubDate><description><![CDATA[这里只是记录一下大佬的博客地址，以防以后复习的找不到。
vector用法：地址
题目： 一维数组的动态和地址

]]></description><category></category></item><item><title><![CDATA[leecode刷题1—回溯问题（组合总和）]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/108523561</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/108523561</guid><author>undersky_</author><pubDate>Thu, 10 Sep 2020 21:50:25 +0800</pubDate><description><![CDATA[这里只是记录一下大佬的博客地址，以防以后复习的找不到。
回溯详解：https://blog.youkuaiyun.com/varyall/article/details/81160356
题目：组合总和
地址：https://leetcode-cn.com/problems/combination-sum/

]]></description><category></category></item><item><title><![CDATA[kinect2_bridge运行报错]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/108316550</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/108316550</guid><author>undersky_</author><pubDate>Mon, 31 Aug 2020 10:54:28 +0800</pubDate><description><![CDATA[装好libfreenect2和iai_kinect2后，测试一下装好没有
执行
roslaunch kinect2_bridge kinect2_bridge.launch

出现下面的报错
[ERROR] [1598839556.338267422]: [DepthRegistrationOpenCL::init] could not find any suitable device
[Info] [Freenect2DeviceImpl] closing...
[Info] [Freenect2Devi]]></description><category></category></item><item><title><![CDATA[关于husky无人车官方定制Ubuntu系统下载慢、报错的替代方法]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/108290475</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/108290475</guid><author>undersky_</author><pubDate>Sat, 29 Aug 2020 10:05:55 +0800</pubDate><description><![CDATA[前一阵子实验室的husky无人车突然连不上车载电脑了，就想着重装一下系统，顺便把indigo换成kinetic。
首先跟着官网地址的版本走，做好定制版镜像后，开始安装的时候发现安装的实在太慢了，经常在中间卡死报错，可能是我连的校园网的原因，于是决定换个思路。
联系了售后，说可以尝试先安装普通版本的Ubuntu、ros，再打包下载husky的功能包，也可以配置成功。于是开始安装Ubuntu 16.04和ros kinetic，成功安装后打开终端输入
sudo apt-get install ros-kinet]]></description><category></category></item><item><title><![CDATA[利用ros_qtc_plugins插件在Qt中创建ROS工程的方法]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/107639405</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/107639405</guid><author>undersky_</author><pubDate>Tue, 28 Jul 2020 17:30:48 +0800</pubDate><description><![CDATA[最近想给husky车做一个ui界面，于是考虑ROS是否可以直接与Qt通信。很巧的是，



]]></description><category></category></item><item><title><![CDATA[关于解决package.xml编译时出现run_depend, bulid_depend问题]]></title><link>https://blog.youkuaiyun.com/undersky_/article/details/106531985</link><guid>https://blog.youkuaiyun.com/undersky_/article/details/106531985</guid><author>undersky_</author><pubDate>Wed, 03 Jun 2020 20:23:36 +0800</pubDate><description><![CDATA[在做通过程序实现“无人车确定目标点导航”时，处理客户端和服务器时出现的问题
在package.xml中添加
&lt;bulid_depend&gt;move_base_msgs&lt;/bulid_depend&gt;
&lt;bulid_depend&gt;actionlib&lt;/bulid_depend&gt;

和
&lt;run_depend&gt;move_base_msgs&lt;/run_depend&gt;
&lt;run_depend&gt;actionlib&lt;/run_depe]]></description><category></category></item></channel></rss>