摘要:
取绝对值 abs() 整除运算符‘//’ 1)如果被除数和除数均为正数或者均为负数,则和C语言这些编程语言一样,直接取商就行; 2)如果被除数或者除数其中一个为正数,一个为负数,则结果需要向下取余。这里重点说一下向下取余,初学者肯定会和其他编程语言的搞混淆。举个简单例子,在C语言中,-5对2整除运行 阅读全文
摘要:
vim obstacle.py #!/usr/bin/env python # coding = utf-8 import rospy from geometry_msgs.msg import Twist from sensor_msgs.msg import LaserScan def scan 阅读全文
摘要:
cd ~/catkin_ws/src catkin_create_pkg myrobot rospy geometry_msgs sensor_msgs cd ~/catkin_ws/src/myrobot/src vim patrol.py #!/usr/bin/env python import 阅读全文
摘要:
cd cmake-3.16.8 ./configure make sudo make install cmake --version 参考:https://blog.csdn.net/qq_35398033/article/details/106457777 阅读全文
摘要:
1.解压 tar -xzvf 压缩包文件名.tar.gz 压缩 tar -cvfz xxx.tar.gz source_file 2.查看内核数量 nproc 阅读全文
摘要:
Ubuntu Mate https://releases.ubuntu-mate.org/archived/ 阅读全文
摘要:
wget http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/pool/main/r/raspi-config/raspi-config_20201108_all.deb sudo apt install lua5.1 libfftw3 阅读全文
摘要:
ubuntu安装g2o sudo apt-get install qt5-qmake qt5-default libqglviewer-dev-qt5 libsuitesparse-dev libcxsparse3 libcholmod3 下载源码 git clone https://gitee.c 阅读全文
摘要:
git clone https://gitee.com/kay2020/raspicam_node.git [TurtleBot]启动turtlebot3_rpicamera文件 roslaunch turtlebot3_bringup turtlebot3_rpicamera.launch [远程 阅读全文
摘要:
卸载流程 sudo apt list --installed sudo apt-get autoremove ros-$ROS_DISTRO-hls-lfcd-lds-driver sudo apt --purge remove ros-kinetic-hls-lfcd-lds-driver 阅读全文