Main Page
Namespaces
Classes
Files
File List
File Members
test
files
scripts
check_realsense_camera_nodelet_built.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
"""
3
@file check_realsense_camera_nodelet_built.py
4
"""
5
import
os
6
import
sys
7
import
commands
8
import
unittest
9
import
rospy
10
import
rostest
11
12
PKG =
'realsense_camera'
13
NAME =
'check_realsense_camera_nodelet_built'
14
LIB =
'librealsense_camera_nodelet.so'
15
16
17
class
CheckRealsenseCameraNodeletBuilt
(unittest.TestCase):
18
"""
19
@class CheckRealsenseCameraNodeletBuilt
20
"""
21
22
def
setUp
(self):
23
"""
24
@fn setUp
25
@param
26
@return
27
"""
28
self.
success
=
False
29
30
def
test_basic_realsense_camera_wrapper_installation
(self):
31
"""verify that realsense_camera has been built and installed
32
@fn test_basic_realsense_camera_wrapper_installation
33
@param
34
return
35
"""
36
rospy.init_node(NAME, anonymous=
True
, log_level=rospy.INFO)
37
38
lib_paths = os.environ[
"LD_LIBRARY_PATH"
].split(
":"
)
39
for
path
in
lib_paths:
40
if
os.path.exists(path +
'/'
+ LIB) ==
True
:
41
self.
success
=
True
42
43
self.assert_(self.
success
, str(self.
success
))
44
45
if
__name__ ==
'__main__'
:
46
rostest.rosrun(PKG, NAME, CheckRealsenseCameraNodeletBuilt, sys.argv)
check_realsense_camera_nodelet_built.CheckRealsenseCameraNodeletBuilt.test_basic_realsense_camera_wrapper_installation
def test_basic_realsense_camera_wrapper_installation(self)
Definition:
check_realsense_camera_nodelet_built.py:30
check_realsense_camera_nodelet_built.CheckRealsenseCameraNodeletBuilt
Definition:
check_realsense_camera_nodelet_built.py:17
check_realsense_camera_nodelet_built.CheckRealsenseCameraNodeletBuilt.setUp
def setUp(self)
Definition:
check_realsense_camera_nodelet_built.py:22
check_realsense_camera_nodelet_built.CheckRealsenseCameraNodeletBuilt.success
success
Definition:
check_realsense_camera_nodelet_built.py:28
realsense_camera
Author(s): Rajvi Jingar
, Reagan Lopez
, Matt Hansen
, Mark Horn
autogenerated on Mon Jun 10 2019 14:40:37