没完没了的重装
重装
系统盘,公司的电脑是F11 修改启动项,用xk的启动盘启动的是aligo uefi
分区
Ubuntu18.04安装教程——超详细的图文教程
安装Ubuntu Linux系统时硬盘分区最合理的方法ubuntu18.04分区设置
换源
sudo gedit /etc/apt/sources.list
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
sudo apt-get update
搭建环境
下相关软件
sudo apt install meld kazam git
# 添加快捷方式的时候的工具
sudo apt install gnome-panel
# 和github进行通讯
sudo apt install ssh
ROS
ROS换源网址:
http://wiki.ros.org/ROS/Installation/UbuntuMirrors#USTC
科普:
curl 命令行工具用来进行网络请求
snap 是 应用程序管理程序 用来安装卸载程序等
这个过程比较慢
链接: 18.0.4.
下载.
安装教程.
学习教程.
full 版本安装了以下:
ROS, rqt, rviz, robot-generic libraries, 2D/3D simulators and 2D/3D perception
卸载
sudo apt-get remove ros-*
问题解决
QGC
链接:QGCv4.0.9.
chmod +x ./QGroundControl.AppImage
./QGroundControl.AppImage
运行QGC的过程中可能会与ModemManager的驱动程序产生冲突所以可能使用了以下命令卸载了ModemManager
sudo usermod -a -G dialout $USER
sudo apt-get remove modemmanager
VSCODE
snap install code --classic
mavros mavlink
sudo apt install ros-melodic-mavros ros-melodic-mavros-extras
wget https://raw.githubusercontent.com/mavlink/mavros/master/mavros/scripts/install_geographiclib_datasets.sh
chmod +x install_geographiclib_datasets.sh
sudo ./install_geographiclib_datasets.sh
px4
安装/develop/unbuntu setup
重启
git submodule update --init --recursive
git checkout v1.12.0
make distclean
make px4_sitl gazebo
参考
配置:
source ~/tools/PX4-Autopilot/Tools/setup_gazebo.bash ~/tools/PX4-Autopilot ~/tools/PX4-Autopilot/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/tools/PX4-Autopilot
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/tools/PX4-Autopilot/Tools/sitl_gazebo
zotero
下载:https://www.zotero.org/
安装:
解压 -> 运行zotero-> 运行set_launcher_icon ->链接
ln -s /解压后所在目录/zotero.desktop ~/.local/share/applications/zotero.desktop
插件安装:
之前copy备份的插件.xpi 文件 添加到附加插件中
有关git
git 子模块更新:
git submodule update --init --recursive
安装库的时候,安装以后编译完成后运行以下命令,加入默认路径
make install
遇到的问题
1. 窗口下载慢
export all_proxy=http://127.0.0.1:7890 # 看你自己翻墙时候设置的代理的码
2. gazebo: symbol lookup error
3. rosdep update timeout 解决办法:
4. gazebo 报错 Error in REST request
https://blog.csdn.net/ZhangRelay/article/details/102953429
看各个包的编译情况
5.git clone 出现:gnutls_handshake() failed: The TLS connection was non-properly terminated.
检查代理设置
6. 出现opencv中的问题
检查cmakeList文件中是否有这几句
SET(OpenCV_DIR /usr/local/share/OpenCV)
target_link_libraries(test_sim ${OpenCV_LIBS} ${catkin_LIBRARIES})
find_package( OpenCV REQUIRED )
Promethus 项目
下载
git submodule update --init --recursive
pip3 install --user toml empy jinja2 packaging
下载缺失的库
sudo apt-get install libx264-dev
下载依赖
sudo apt-get install jstest-gtk
安装各种库
opencv
链接:https://github.com/opencv
1.安装opencv
2.安装opencv 其他包
3.cmake opencv
4.使用有参数的命令安装
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local/opencv3.4.0 -D WITH_CUDA=ON -D CUDA_ARCH_BIN=8.6 -D CUDA_ARCH_PTX=8.6 -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
这一步没报错的话就可以了