check_realsense_camera_nodelet_built.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 """
00003 @file check_realsense_camera_nodelet_built.py
00004 """
00005 import os
00006 import sys
00007 import commands
00008 import unittest
00009 import rospy
00010 import rostest
00011 
00012 PKG = 'realsense_camera'
00013 NAME = 'check_realsense_camera_nodelet_built'
00014 LIB = 'librealsense_camera_nodelet.so'
00015 
00016 
00017 class CheckRealsenseCameraNodeletBuilt(unittest.TestCase):
00018     """
00019     @class CheckRealsenseCameraNodeletBuilt
00020     """
00021 
00022     def setUp(self):
00023         """
00024         @fn setUp
00025         @param
00026         @return
00027         """
00028         self.success = False
00029 
00030     def test_basic_realsense_camera_wrapper_installation(self):
00031         """verify that realsense_camera has been built and installed
00032         @fn test_basic_realsense_camera_wrapper_installation
00033         @param
00034         return
00035         """
00036         rospy.init_node(NAME, anonymous=True, log_level=rospy.INFO)
00037 
00038         lib_paths = os.environ["LD_LIBRARY_PATH"].split(":")
00039         for path in lib_paths:
00040             if os.path.exists(path + '/' + LIB) == True:
00041                 self.success = True
00042 
00043         self.assert_(self.success, str(self.success))
00044 
00045 if __name__ == '__main__':
00046     rostest.rosrun(PKG, NAME, CheckRealsenseCameraNodeletBuilt, sys.argv)


realsense_camera
Author(s): Rajvi Jingar , Reagan Lopez , Matt Hansen , Mark Horn
autogenerated on Thu Jun 6 2019 21:15:58