# OpenEuler-ROS **Repository Path**: harryzhangabc/OpenEuler-ROS ## Basic Information - **Project Name**: OpenEuler-ROS - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-18 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenEuler-ROS Way to install ROS into OpenEuler open source system using VM VirtalBox. This tutorial is modified based on [Here]https://gitee.com/yunxiangluo/ros_openeuler. and [here]https://gitee.com/huijundi/ros_openeuler. 本文档是根据罗老师[文档链接]https://gitee.com/yunxiangluo/ros_openeuler. 和邸老师[文档链接]https://gitee.com/huijundi/ros_openeuler. 的文档共同编写,目前只实现了ROS_COMM的编译,更多功能请期待更新。 ## Install OpenEuler via VirtalBox Fallow the instruction under the website: https://openeuler.org/zh/blog/2020/03/27/2020-03-27-VirtualBox.html ### Set up repo ```bash $ vim /etc/yum.repos.d/openEuler-20.03-LTS.repo ``` 1) edit oe-repo ``` [eveything] name=everything baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/everything/$basearch enabled=1 gpgcheck=0 [epol] name=epol baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/EPOL/$basearch enabled=1 gpgcheck=0 [fedora29] name=fed baseurl=http://mirrors.aliyun.com/fedora/releases/29/Everything/aarch64/os/ enabled=0 gpgcheck=0 ``` 2) edit fed-repo ``` [eveything] name=everything baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/everything/$basearch enabled=0 gpgcheck=0 [epol] name=epol baseurl=https://mirrors.huaweicloud.com/openeuler/openEuler-20.03-LTS/EPOL/$basearch enabled=0 gpgcheck=0 [fedora29] name=fed baseurl=http://mirrors.aliyun.com/fedora/releases/29/Everything/aarch64/os/ enabled=1 gpgcheck=0 ``` ### add ip address to /etc/host (China ONLY) ```bash $ vim /etc/hosts ``` ``` 151.101.76.133 raw.githubusercontent.com ``` ### add pip site ```bash $ mkdir ~/.pip $ vim ~/.pip/pip.conf ``` ```bash [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple ``` ### Override ros system detection ```bash $ export ROS_OS_OVERRIDE=centos:7.6 ``` ### Install ROS [ROS INSTALL FROM SOURCE]http://wiki.ros.org/Installation/Source ### Install dependencies ```bash $ dnf install python2-sip-devel llvm ``` ```bash $ dnf install pcl-devel ``` ```bash $ dnf install yum $ pip install rosdep wstool rosinstall_generator ``` ### Initialize rosdep 1) Initialize ```bash $ rosdep init ``` 2) Set dependency based on RHEL ```bash $ vim /etc/ros/rosdep/base-openeuler.yaml ``` ``` libboost-filesystem-dev: rhel: [boost-devel] libboost-thread-dev: rhel: [boost-devel] libjpeg: rhel: [libjpeg-turbo] python-rospkg: rhel: pip: packages: [rospkg] python-setuptools: rhel: pip: packages: [setuptools] python-gnupg: rhel: pip: packages: [gnupg] python-catkin-pkg-modules: rhel: pip: packages: [catkin-pkg] python-catkin-pkg: rhel: pip: packages: [catkin-pkg] python-rosdep: rhel: pip: packages: [rosdep] ``` ```bash $ vim /etc/ros/rosdep/sources.list.d/10-openeuler.list ``` ```bash yaml file:///etc/ros/rosdep/base-openeuler.yaml ``` ```bash $ rosdep update ``` ### Get ros_comm source code via rosinstall_generator ```bash $ rosinstall_generator ros_comm --rosdistro kinetic --deps --wet-only --tar > kinetic-ros_comm-wet.rosinstall $ wstool init -j src kinetic-ros_comm-wet.rosinstall ``` * If wstool init fails or is interrupted, you can resume the download by running: ```bash wstool update -j 4 -t src ``` ### Resolving dependencies ```bash rosdep install --from-paths src --ignore-src --rosdistro kinetic -y ``` ### Building up ```bash $ ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release ```