<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>张斯禹的技术专栏</title>
    <description></description>
    <link>https://tricomm.github.io/</link>
    <atom:link href="https://tricomm.github.io/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Mon, 29 Apr 2019 14:26:33 +0000</pubDate>
    <lastBuildDate>Mon, 29 Apr 2019 14:26:33 +0000</lastBuildDate>
    <generator>Jekyll v3.8.5</generator>
    
      <item>
        <title></title>
        <description></description>
        <pubDate>Mon, 29 Apr 2019 14:26:33 +0000</pubDate>
        <link>https://tricomm.github.io/2019/04/29/2019-01-26-c++14-Variadic-Template/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/04/29/2019-01-26-c++14-Variadic-Template/</guid>
        
        
      </item>
    
      <item>
        <title>velodyni 雷达驱动</title>
        <description>&lt;h1 id=&quot;velodyni-雷达啊驱动&quot;&gt;velodyni 雷达啊驱动&lt;/h1&gt;
&lt;h2 id=&quot;资料&quot;&gt;资料&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;ros社区http://wiki.ros.org/velodyne/Tutorials/Getting%20Started%20with%20the%20HDL-32E&lt;/li&gt;
&lt;/ol&gt;

</description>
        <pubDate>Wed, 10 Apr 2019 20:37:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/04/10/velodyni-drive/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/04/10/velodyni-drive/</guid>
        
        <category>ros</category>
        
        
        <category>lidar</category>
        
        <category>ros</category>
        
        <category>driver</category>
        
      </item>
    
      <item>
        <title>每日英文词汇</title>
        <description>&lt;h1 id=&quot;every-day-new-words&quot;&gt;every day new words&lt;/h1&gt;
&lt;h2 id=&quot;10th-april&quot;&gt;10th April&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;marketing&lt;/li&gt;
  &lt;li&gt;elder n.&lt;/li&gt;
  &lt;li&gt;hook&lt;/li&gt;
  &lt;li&gt;wield&lt;/li&gt;
  &lt;li&gt;disappointed&lt;/li&gt;
  &lt;li&gt;satisfy&lt;/li&gt;
  &lt;li&gt;monke&lt;/li&gt;
  &lt;li&gt;priests&lt;/li&gt;
  &lt;li&gt;nuns&lt;/li&gt;
  &lt;li&gt;autonomy&lt;/li&gt;
  &lt;li&gt;restrict&lt;/li&gt;
  &lt;li&gt;religion&lt;/li&gt;
  &lt;li&gt;get rid of something&lt;/li&gt;
  &lt;li&gt;common&lt;/li&gt;
  &lt;li&gt;accordance&lt;/li&gt;
  &lt;li&gt;command&lt;/li&gt;
  &lt;li&gt;ordinary&lt;/li&gt;
  &lt;li&gt;authority&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;11th-aprial&quot;&gt;11th Aprial&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;president&lt;/li&gt;
  &lt;li&gt;prime minister&lt;/li&gt;
  &lt;li&gt;chairman&lt;/li&gt;
  &lt;li&gt;chore&lt;/li&gt;
  &lt;li&gt;present&lt;/li&gt;
  &lt;li&gt;vowel&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;grab&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;ferry&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;15th-april&quot;&gt;15th April&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;absence&lt;/li&gt;
  &lt;li&gt;perseverance&lt;/li&gt;
  &lt;li&gt;presence of mind&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;regret&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;prodigy&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;seal&lt;/li&gt;
  &lt;li&gt;lottery&lt;/li&gt;
  &lt;li&gt;casino&lt;/li&gt;
  &lt;li&gt;gambling&lt;/li&gt;
  &lt;li&gt;toast&lt;/li&gt;
  &lt;li&gt;cereal&lt;/li&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;deprive&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;diet&lt;/li&gt;
  &lt;li&gt;insist&lt;/li&gt;
  &lt;li&gt;convenient&lt;/li&gt;
  &lt;li&gt;salary&lt;/li&gt;
  &lt;li&gt;variety&lt;/li&gt;
  &lt;li&gt;crowd&lt;/li&gt;
  &lt;li&gt;cafeteria&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;29th-april&quot;&gt;29th April&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;contribution&lt;/li&gt;
  &lt;li&gt;lottery&lt;/li&gt;
  &lt;li&gt;gamble&lt;/li&gt;
  &lt;li&gt;temptation&lt;/li&gt;
  &lt;li&gt;efficient&lt;/li&gt;
  &lt;li&gt;administer&lt;/li&gt;
  &lt;li&gt;advertisement&lt;/li&gt;
  &lt;li&gt;bad worse worst&lt;/li&gt;
  &lt;li&gt;recognize&lt;/li&gt;
  &lt;li&gt;significant&lt;/li&gt;
  &lt;li&gt;anniversary&lt;/li&gt;
  &lt;li&gt;occasion&lt;/li&gt;
&lt;/ol&gt;
</description>
        <pubDate>Wed, 10 Apr 2019 20:37:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/04/10/english-words-study/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/04/10/english-words-study/</guid>
        
        <category>words</category>
        
        
        <category>english</category>
        
        <category>words</category>
        
      </item>
    
      <item>
        <title>探索apt-get下载多ros包-pcl_conversion</title>
        <description>&lt;h1 id=&quot;探索apt-get下载多ros包-pcl_conversion&quot;&gt;探索apt-get下载多ros包-pcl_conversion&lt;/h1&gt;
&lt;h2 id=&quot;疑问&quot;&gt;疑问&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;apt下载的是可执行文件还是源码在编译(猜测是源码因为可以很好的适应不同环境的pc)&lt;/li&gt;
  &lt;li&gt;apt下载安装软件的路径,如何设置&lt;/li&gt;
  &lt;li&gt;ros如何找到依赖的包(靠环境变量$ROS_ROOT 
/opt/ros/melodic/share/ros
$ROS_ETC_DIR 
/opt/ros/melodic/etc/ros
$ROS_PACKAGE_PATH 
/opt/ros/melodic/share
)&lt;/li&gt;
  &lt;li&gt;apt下载的源代码在哪里&lt;/li&gt;
  &lt;li&gt;如何设置&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;解决&quot;&gt;解决&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;https://translate.googleusercontent.com/translate_c?depth=1&amp;amp;rurl=translate.google.com.hk&amp;amp;sl=en&amp;amp;sp=nmt4&amp;amp;tl=zh-CN&amp;amp;u=https://github.com/PointCloudLibrary/pcl/releases&amp;amp;xid=17259,15700023,15700186,15700190,15700253,15700258&amp;amp;usg=ALkJrhg7cUeT2jjzuEUzwMjuBeZ9Oep2_w&quot;&gt;pcl源码下载&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://translate.googleusercontent.com/translate_c?depth=1&amp;amp;rurl=translate.google.com.hk&amp;amp;sl=en&amp;amp;sp=nmt4&amp;amp;tl=zh-CN&amp;amp;u=https://github.com/laboshinl/loam_velodyne/issues/71&amp;amp;xid=17259,15700023,15700186,15700190,15700253,15700258&amp;amp;usg=ALkJrhj_OCDxqWrWGOhlqe9v2y9JS096MQ#&quot;&gt;pcl源码安装步骤&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
</description>
        <pubDate>Mon, 01 Apr 2019 20:37:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/04/01/ros-package-pcl-conversion/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/04/01/ros-package-pcl-conversion/</guid>
        
        <category>pcl</category>
        
        
        <category>ros</category>
        
        <category>pcl</category>
        
        <category>apt</category>
        
      </item>
    
      <item>
        <title>vim大法入门学习</title>
        <description>&lt;h1 id=&quot;vim大法入门&quot;&gt;vim大法入门&lt;/h1&gt;
&lt;h2 id=&quot;1环境&quot;&gt;1.环境&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;使用spf13-vim插件集合&lt;/li&gt;
  &lt;li&gt;完全使用&lt;code class=&quot;highlighter-rouge&quot;&gt;~/.vimrc.local&lt;/code&gt;, &lt;code class=&quot;highlighter-rouge&quot;&gt;~/.vimrc.bundles.local&lt;/code&gt;, and &lt;code class=&quot;highlighter-rouge&quot;&gt;~/.vimrc.before.local&lt;/code&gt; 进行配置&lt;/li&gt;
  &lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Mon, 01 Apr 2019 20:37:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/04/01/vim-study/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/04/01/vim-study/</guid>
        
        <category>vim</category>
        
        
        <category>vim</category>
        
      </item>
    
      <item>
        <title>ubuntu下载百度云大文件(aria2+fairfox plugin:百度网盘助手)</title>
        <description>&lt;h1 id=&quot;ubuntu下载百度云大文件aria2fairfox-plugin百度网盘助手&quot;&gt;ubuntu下载百度云大文件(aria2+fairfox plugin:百度网盘助手)&lt;/h1&gt;
&lt;h2 id=&quot;fairfox-plugin-网盘助手&quot;&gt;fairfox plugin 网盘助手&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://addons.mozilla.org/zh-CN/firefox/addon/baidu-pan-exporter/&quot;&gt;链接&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/acgotaku/BaiduExporter&quot;&gt;git源码&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;安装后重启浏览器,在百度云盘中选中需要下载的文件会弹出导出下载.
    &lt;h2 id=&quot;aria2-多线程下载软件&quot;&gt;aria2 多线程下载软件&lt;/h2&gt;
    &lt;ol&gt;
      &lt;li&gt;介绍&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;aria2 本是命令行下的一个多线程下载工具,属于后端,通过在浏览器中安装插件,将百度网盘中的下载地址导出到aria2中下载,具体有以下优点:多线程下载。aria2可以从通过多种协议或多个源头下载同一文件，这样可以最大化下载带宽。&lt;/li&gt;
  &lt;li&gt;轻量级。 aria2运行时不会占用太多内存与cpu，非常轻量级。当磁盘缓存关闭时，aria2占用物理内存通常为4Mib(正常的HTTP/FTP下载)到9Mib(Bittorrent下载).使用Bittorrent以2.8Mib/sec速度下载，cpu占用率大概为6%。&lt;/li&gt;
  &lt;li&gt;所有的BitTorrent客户端的功能都能使用:DHT,PEX,Encryption,Magnet URI,Web-Seeding,Selective Downloads,Local Peer Discovery 和UDP tracker.&lt;/li&gt;
  &lt;li&gt;远程控制。 aria2运行PRC接口来控制aria2进程。支持JSON-PRC(over HTTP and WebSocket)和XML-PRC两种接口。&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
  &lt;li&gt;
    安装

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; sudo apt-get install aria2
 sudo mkdir /etc/aria2    #新建文件夹  
 sudo touch /etc/aria2/aria2.session    #新建session文件
 sudo chmod 777 /etc/aria2/aria2.session    #设置aria2.session可写 
 sudo vim /etc/aria2/aria2.conf    #创建配置文件
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;配置
    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; #＝＝＝＝＝＝＝＝＝文件保存目录自行修改
 dir=/home/username/Desktop/Downloads #username根据实际情况修改
 disable-ipv6=true

 #打开rpc的目的是为了给web管理端用
 enable-rpc=true
 rpc-allow-origin-all=true
 rpc-listen-all=true
 #rpc-listen-port=6800
 #断点续传
 continue=true
 input-file=/etc/aria2/aria2.session
 save-session=/etc/aria2/aria2.session

 #最大同时下载任务数
 max-concurrent-downloads=20

 save-session-interval=120

 # Http/FTP 相关
 connect-timeout=120
 #lowest-speed-limit=10K
 #同服务器连接数
 max-connection-per-server=10
 #max-file-not-found=2
 #最小文件分片大小, 下载线程数上限取决于能分出多少片, 对于小文件重要
 min-split-size=10M
 #单文件最大线程数, 路由建议值: 5
 split=10
 check-certificate=false
 #http-no-cache=true
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;启动aria2
    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo aria2c --conf-path=/etc/aria2/aria2.conf     
#如果没有提示错误，按ctrl+c停止运行命令，转为后台运行： 
sudo aria2c --conf-path=/etc/aria2/aria2.conf -D1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    aria2 控制台

    打开http://aria2c.com/
  &lt;/li&gt;
&lt;/ol&gt;
</description>
        <pubDate>Mon, 01 Apr 2019 00:02:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/04/01/ubuntu-download-tool-aria2/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/04/01/ubuntu-download-tool-aria2/</guid>
        
        <category>linux</category>
        
        <category>unbuntu</category>
        
        
        <category>linux</category>
        
      </item>
    
      <item>
        <title>linux-unbuntu18.04 使用小技巧</title>
        <description>&lt;h1 id=&quot;ubuntu1804图形界面使用技巧&quot;&gt;ubuntu18.04图形界面使用技巧&lt;/h1&gt;
&lt;h2 id=&quot;1窗口控制&quot;&gt;1.窗口控制&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;control + 内容缩放放大&lt;/li&gt;
  &lt;li&gt;control - 内容缩放减小&lt;/li&gt;
  &lt;li&gt;super 上 最大化&lt;/li&gt;
  &lt;li&gt;super 下 缩小&lt;/li&gt;
  &lt;li&gt;super 左 左分屏&lt;/li&gt;
  &lt;li&gt;super 右 右分屏
    &lt;h2 id=&quot;2工作区控制多桌面&quot;&gt;2.工作区控制(多桌面)&lt;/h2&gt;
  &lt;/li&gt;
  &lt;li&gt;control alt 上 上一个工作区&lt;/li&gt;
  &lt;li&gt;control alt 下 下一个工作空间&lt;/li&gt;
  &lt;li&gt;super 可拖动窗口更换工作空间&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Mon, 01 Apr 2019 00:02:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/04/01/ubuntu-18-skill/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/04/01/ubuntu-18-skill/</guid>
        
        <category>linux</category>
        
        <category>unbuntu</category>
        
        
        <category>linux</category>
        
      </item>
    
      <item>
        <title>菲利宾英语学校游学备忘录</title>
        <description>&lt;h1 id=&quot;菲利宾游学备忘录&quot;&gt;菲利宾游学备忘录&lt;/h1&gt;
&lt;h2 id=&quot;行李清单&quot;&gt;行李清单&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;证件
    &lt;ol&gt;
      &lt;li&gt;身份证&lt;/li&gt;
      &lt;li&gt;护照&lt;/li&gt;
      &lt;li&gt;visa银行卡&lt;/li&gt;
      &lt;li&gt;往返机票打印&lt;/li&gt;
      &lt;li&gt;眼镜猴资料夹&lt;/li&gt;
      &lt;li&gt;1500美元&lt;/li&gt;
      &lt;li&gt;5张2寸照片&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;电子设备
    &lt;ol&gt;
      &lt;li&gt;手机&lt;/li&gt;
      &lt;li&gt;小米充电宝2W&lt;/li&gt;
      &lt;li&gt;华为移动WI-FI&lt;/li&gt;
      &lt;li&gt;macbook&lt;/li&gt;
      &lt;li&gt;airpods&lt;/li&gt;
      &lt;li&gt;安卓线+头&lt;/li&gt;
      &lt;li&gt;(苹果线+头)*2&lt;/li&gt;
      &lt;li&gt;笔记本电源&lt;/li&gt;
      &lt;li&gt;两扁平口插线板&lt;/li&gt;
      &lt;li&gt;美式三口转换器&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;生活用品
    &lt;ol&gt;
      &lt;li&gt;短袖*3&lt;/li&gt;
      &lt;li&gt;短裤*2&lt;/li&gt;
      &lt;li&gt;外套*2&lt;/li&gt;
      &lt;li&gt;长裤&lt;/li&gt;
      &lt;li&gt;内裤*3&lt;/li&gt;
      &lt;li&gt;袜子*5&lt;/li&gt;
      &lt;li&gt;泳裤&lt;/li&gt;
      &lt;li&gt;泳镜&lt;/li&gt;
      &lt;li&gt;运动服一套&lt;/li&gt;
      &lt;li&gt;干毛巾&lt;/li&gt;
      &lt;li&gt;电动牙刷&lt;/li&gt;
      &lt;li&gt;吹风机&lt;/li&gt;
      &lt;li&gt;牙膏&lt;/li&gt;
      &lt;li&gt;防晒&lt;/li&gt;
      &lt;li&gt;洗面奶&lt;/li&gt;
      &lt;li&gt;出行洗浴套装&lt;/li&gt;
      &lt;li&gt;密码锁&lt;/li&gt;
      &lt;li&gt;消炎药,感冒药,维生素c,创口贴&lt;/li&gt;
      &lt;li&gt;双肩背
        &lt;h2 id=&quot;行程&quot;&gt;行程&lt;/h2&gt;
      &lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Fri, 29 Mar 2019 14:02:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/03/29/philippines-stady/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/03/29/philippines-stady/</guid>
        
        <category>生活</category>
        
        <category>备忘录</category>
        
        
        <category>备忘录</category>
        
      </item>
    
      <item>
        <title>ros项目调试:vscode下配置开发ROS项目</title>
        <description>&lt;h1 id=&quot;c-virtual的三种用法&quot;&gt;C++ virtual的三种用法&lt;/h1&gt;
&lt;h2 id=&quot;1为实现多态在基类中对应函数使用virtual关键字&quot;&gt;1.为实现多态在基类中对应函数使用virtual关键字&lt;/h2&gt;
&lt;div class=&quot;language-cpp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;cp&quot;&gt;#include&amp;lt;iostream&amp;gt; 
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;using&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;namespace&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;std&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;A&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;
     &lt;span class=&quot;k&quot;&gt;virtual&lt;/span&gt;  &lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;cout&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;A&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;endl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
     &lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;B&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;  &lt;span class=&quot;k&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;A&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;:&lt;/span&gt;
            &lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(){&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cout&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;B&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;endl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
     &lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;argc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;kt&quot;&gt;char&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;argv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[])&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;A&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;B&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;display&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;delete&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
*当基类A的函数display有&lt;code class=&quot;highlighter-rouge&quot;&gt;virtual&lt;/code&gt;时会实现多态执行B中的display
*否则p会被看作A的对象从而执行A中的display

&lt;h2 id=&quot;虚继承为解决存在共同基类时重复实例化基类&quot;&gt;虚继承,为解决存在共同基类时重复实例化基类&lt;/h2&gt;
&lt;h2 id=&quot;虚析构函数解决用基类指针指向派生类多态时的基类析构函数不运作问题&quot;&gt;虚析构函数解决用基类指针指向派生类(多态时)的基类析构函数不运作问题.&lt;/h2&gt;
</description>
        <pubDate>Tue, 19 Mar 2019 14:02:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/03/19/c++-virtual/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/03/19/c++-virtual/</guid>
        
        <category>C++</category>
        
        
        <category>C++</category>
        
      </item>
    
      <item>
        <title>ros项目调试:vscode下配置开发ROS项目</title>
        <description>&lt;h1 id=&quot;c中同名函数重写覆盖与重载&quot;&gt;C++中同名函数,重写(覆盖)与重载&lt;/h1&gt;
&lt;h2 id=&quot;1重写&quot;&gt;1.重写&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;C++当子类的成员函数与父类的成员函数重名,且参数表一致时为函数重写(覆盖)
    &lt;ol&gt;
      &lt;li&gt;
        若父类没有virtual声明,子类函数可以和父类函数返回值不同,但函数名和参数列表必须相同.
      &lt;/li&gt;
      &lt;li&gt;
        则子类实例通过”.”调用的是子类的函数
      &lt;/li&gt;
      &lt;li&gt;
        若子类想调用父类的函数,则需要使用 子类实例.父类::函数名() 的形式.
      &lt;/li&gt;
      &lt;li&gt;父类实例通过”.”调用的是父类的函数&lt;/li&gt;
      &lt;li&gt;父类无法调用子类的同名函数
        &lt;h2 id=&quot;2重载&quot;&gt;2.重载&lt;/h2&gt;
      &lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;当参数表不一致时是两个函数,会根据不同的参数表调用不同函数.&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Tue, 19 Mar 2019 14:02:46 +0000</pubDate>
        <link>https://tricomm.github.io/2019/03/19/c++-samename-function/</link>
        <guid isPermaLink="true">https://tricomm.github.io/2019/03/19/c++-samename-function/</guid>
        
        <category>C++</category>
        
        
        <category>C++</category>
        
      </item>
    
  </channel>
</rss>
