资源简介
编写一个类,并在ROS下实现了两张图片的ORB特征提取与匹配,具体用法可以参考我的博文:
https://blog.csdn.net/qinqinxiansheng/article/details/106975663
代码片段和文件信息
#!/usr/bin/python2
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012 Willow Garage Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms with or without
# modification are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above copyright
# notice this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Willow Garage Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
# LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT
# INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING
# BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT
# LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
‘‘‘This file generates shell code for the setup.SHELL scripts to set environment variables‘‘‘
from __future__ import print_function
import argparse
import copy
import errno
import os
import platform
import sys
CATKIN_MARKER_FILE = ‘.catkin‘
system = platform.system()
IS_DARWIN = (system == ‘Darwin‘)
IS_WINDOWS = (system == ‘Windows‘)
PATH_TO_ADD_SUFFIX = [‘bin‘]
if IS_WINDOWS:
# while catkin recommends putting dll‘s into bin 3rd party packages often put dll‘s into lib
# since Windows finds dll‘s via the PATH variable prepend it with path to lib
PATH_TO_ADD_SUFFIX.extend([[‘lib‘ os.path.join(‘lib‘ ‘x86_64-linux-gnu‘)]])
# subfolder of workspace prepended to CMAKE_PREFIX_PATH
ENV_VAR_SUBFOLDERS = {
‘CMAKE_PREFIX_PATH‘: ‘‘
‘LD_LIBRARY_PATH‘ if not IS_DARWIN else ‘DYLD_LIBRARY_PATH‘: [‘lib‘ os.path.join(‘lib‘ ‘x86_64-linux-gnu‘)]
‘PATH‘: PATH_TO_ADD_SUFFIX
‘PKG_CONFIG_PATH‘: [os.path.join(‘lib‘ ‘pkgconfig‘) os.path.join(‘lib‘ ‘x86_64-linux-gnu‘ ‘pkgconfig‘)]
‘PYTHONPATH‘: ‘lib/python2.7/dist-packages‘
}
def rollback_env_variables(environ env_var_subfolders):
‘‘‘
Generate shell code to reset environment variables
by unrolling modifications based on all workspaces in CMAKE_PREFIX_PATH.
This does not cover modifications performed by environment hooks.
‘‘‘
lin
- 上一篇:STM32智能壁障小车源程序和原理图
- 下一篇:软件工程课程设计.doc
相关资源
- System_BIOS_v_ZA10A380_for_MicroServer_Gen10.z
- WSUS全攻略Microsoft® Windows Server® Upda
- 六轴机器臂URDF文件
- ROST WORDPARSER
- Beginning Kinect Programming with Microsoft Ki
- solidworks导出URDF ROS包资料
- [2011 IROS]People detection in RGB-D data
- Linux网络编程+RouterOS_3.0中文教程+Rou
- roboware studio 学习资料
- 计算神经学教材 Theoretical Neuroscience
-
ROSba
seSTM32CODE - Microsoft Office Project Professional 2007教程
- Microsoft.Exchange.Server.2013.PowerShell.Cook
- 粗糙集软件Rosetta 和中文使用方法
- Microsoft.ReportViewer.WebForms Version=10.0.0
- 用ORB SLAM2跑自己的图片序列数据集
- Microsoft Fortran PowerStation 4.0
- 基于ROS的机械臂运动控制
- Microsoft Visual Studio 2019 Installer Project
- 1730365atherosar9565xp驱动.zip
- Rose_蝴蝶结.rar
- 粗糙集软件rosetta
- CORBA 原理及应用
- office 2007microsoft document imaging ocr rest
- ROSE HA8.5 32位、64位均可用
- MicrosoftVCTools.rar
- Opencv下利用SIFT、SURF、ORB三种特征点实
- microsoft speech SDK (sapi 5.1) 文档
- Microsoft_Office_2019_VL_Serializer
- STM32 USB读取MicroSD卡模拟U盘
评论
共有 条评论