This commit is contained in:
simonaXi 2021-04-19 23:34:20 +08:00
parent e7185d4e4f
commit b1d446a458
5 changed files with 52 additions and 67 deletions

Binary file not shown.

View File

@ -1,22 +1,26 @@
# ros_comm
#### Description
ros_comm package that belongs to THE ROS-COMM
The ros_comm package provides tools for writing and dynamically loading plugins using the ROS build infrastructure. To work, these tools require plugin providers to register their plugins in the package.xml of their package. ros_comm is a C++ library for loading and unloading plugins from within a ROS package. Plugins are dynamically loadable classes that are loaded from a runtime library (i.e. shared object, dynamically linked library). With ros_comm, one does not have to explicitly link their application against the library containing the classes -- instead ros_comm can open a library containing exported classes at any point without the application having any prior awareness of the library or the header file containing the class definition. Plugins are useful for extending/modifying application behavior without needing the application source code.
#### Software Architecture
Software architecture description
ros_comm includes The Plugin Description File and Registering/Exporting a Plugin Class
#### Installation
1. xxxx
2. xxxx
3. xxxx
1. Dowload RPM
wget http://121.36.3.168:82/home:/davidhan:/branches:/openEuler:/20.03:/LTS/standard_aarch64/aarch64/ros_comm-1.14.6-1.oe1.aarch64.rpm
2. Install RPM
sudo rpm -ivh ros_comm-1.14.6-1.oe1.aarch64.rpm
#### Instructions
1. xxxx
2. xxxx
3. xxxx
Exit the ros_comm file under the /opt/ros/melodic/ directory , Prove that the software installation is successful
#### Contribution

View File

@ -1,23 +1,27 @@
# ros_comm
#### 介绍
ros_comm package that belongs to THE ROS-COMM
ros_comm软件包提供了使用ROS构建基础结构编写和动态加载插件的工具。这些工具需要插件提供者才能在其程序包的package.xml中注册其插件才能正常工作。
ros_comm是一个C ++库用于从ROS包中加载和卸载插件。插件是从运行时库即共享对象动态链接库加载的可动态加载的类。使用ros_comm不必将其应用程序显式链接到包含类的库而是ros_comm可以随时打开包含导出类的库而无需应用程序事先知道包含类定义的库或头文件。插件可用于扩展/修改应用程序行为,而无需应用程序源代码。
#### 软件架构
软件架构说明
ros_comm 包含注册/导出插件的类和插件描述xml文件
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
1. 下载rpm包
wget http://121.36.3.168:82/home:/davidhan:/branches:/openEuler:/20.03:/LTS/standard_aarch64/aarch64/ros_comm-1.14.6-1.oe1.aarch64.rpm
2. 安装rpm包
sudo rpm -ivh ros_comm-1.14.6-1.oe1.aarch64.rpm
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
安装完成以后,在/opt/ros/melodic/目录下有ros_comm/文件夹证明安装成功
#### 参与贡献

View File

@ -11,43 +11,13 @@ BuildRequires: lz4-devel
BuildRequires: bzip2-devel
BuildRequires: python-devel
BuildRequires: python-setuptools
#Requires: python-empy
BuildRequires: openssl-devel
#BuildRequires: gcc-gfortran
#BuildRequires: openblas-devel
#BuildRequires: sqlite-devel
#BuildRequires: fftw-devel
BuildRequires: boost-devel
#BuildRequires: python3-devel
#BuildRequires: boost-python3-devel
%description
This is ROS melodic ros_comm Package.
%prep
%setup
#cd catkin-0.7.26/
#%build
#pwd
#mkdir build/
#cd build/ && cmake ..
%install
pwd
#mkdir -p build/
#cd build/
#cmake ..
#cd ..
cd src/
cd 3rdparty/
cd empy-3.3.4/
@ -78,17 +48,12 @@ cd catkin_pkg-0.4.22/
python setup.py install --user
cd ..
#for std_msgs
cd PyYAML-5.3.1/
python setup.py install --user
cd ..
cd console_bridge/
mkdir build/
cd build/
cmake ..
make
make -j8
make install
cd ..
cd ..
@ -108,36 +73,42 @@ cd tinyxml2/
mkdir build
cd build
cmake ..
make -j5
make -j8
make install
cd ..
cd ..
cd ..
cd ..
./src/catkin/bin/catkin_make_isolated --install
#compile
./src/catkin/bin/catkin_make_isolated
####
# 对install_isoloate内部的变量名称进行替换
#
####
SRC_PATH=$PWD/install_isolated
DST_PATH=/opt/ros/melodic
sed -i "s:${SRC_PATH}:${DST_PATH}:g" `grep -rIln "${SRC_PATH}" install_isolated/*`
#install
####
# 添加.catkin和.rosinstall文件
#
####
mkdir -p %{buildroot}/opt/ros/melodic/
cp -r devel_isolated/* %{buildroot}/opt/ros/melodic/
echo %{buildroot}
mkdir -p %{buildroot}/usr/local/
cp -r install_isolated/* %{buildroot}/opt/ros/melodic/
cp install_isolated/.rosinstall %{buildroot}/opt/ros/melodic/
cp install_isolated/.catkin %{buildroot}/opt/ros/melodic/
%files
#%defattr(-,root,root)
#/opt/ros/melodic/*
%defattr(-,root,root)
/opt/ros/melodic/*
#/usr/lib/share/catkin/cmake/*
/opt/ros/melodic/.rosinstall
/opt/ros/melodic/.catkin
/usr/local/*
%changelog
* Thu May 28 2020 openEuler Buildteam <buildteam@openeuler.org> - 19.4-1
* Thu 12-15-2020 openEuler Buildteam <hanhaomin008@126.com>
- Package init

6
ros_comm.yaml Normal file
View File

@ -0,0 +1,6 @@
---
version_control: git
src_repo: https://github.com/ros/ros_comm.git
tag_prefix: 1.14.6-1
separator: "."
-