
Linux
salman_tan
这个作者很懒,什么都没留下…
展开
-
ROS安装用国内的镜像:下载速度比国外的快很多!
以下可以做成一个脚本一键下载安装ROS注意我的是ubuntu18安装的melodic。Ubuntu1604是要安装kinetic版本。sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /...原创 2020-02-20 14:34:35 · 3521 阅读 · 1 评论 -
linux/centos中运行程序出现'GLIBCXX_3.4.21' not found
centos中运行程序出现'GLIBCXX_3.4.21' not found首先检查gcc版本升级gcc到5.4首先检查gcc版本gcc -v我的版本是4.8*,需要升级升级gcc到5.4安装所需工具:yum groupinstall "Development Tools"yum install glibc-static libstdc++-static下载gcc:http:...原创 2018-10-18 15:44:34 · 11801 阅读 · 6 评论 -
c/c++中位与运算&代替取模运算%
c/c++中位与运算&代替取模运算%取模运算所需的时间大约是位与运算的十倍。当模的大小是2的N次方时,可用位与运算代替取模运算:unsigned int modNum = 1024; // 2的N次方unsigned int x = 4321;unsigned int a = x % modNum;unsigned int b = x & (modNum - 1);...原创 2019-02-12 17:31:31 · 1740 阅读 · 0 评论 -
The program 'roscore' is currently not installed. You can install it by typing: sudo apt install py
安装了ros但是运行roscore出现错误:The program 'roscore' is currently not installed. You can install it by typing: sudo apt install pyt解决方法:source /opt/ros/kinetic/setup.bash/opt/ros/kinetic/./setup.bashsudo...原创 2019-08-08 17:14:13 · 2872 阅读 · 2 评论