stparameter.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (C) 2018, OMRON SENTECH. All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are met:
8  * * Redistributions of source code must retain the above copyright notice,
9  * this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the names of OMRON SENTECH nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  *****************************************************************************/
29 
36 #ifndef STCAMERA_STPARAMETER_H
37 #define STCAMERA_STPARAMETER_H
38 
39 #include <ros/ros.h>
40 #include <map>
41 #include <vector>
42 #include <string>
43 
44 namespace stcamera
45 {
52  {
53  public:
54 
57  StParameter();
58 
61  virtual ~StParameter();
62 
75  void loadCameraList(const ros::NodeHandle &nh,
76  std::vector<std::string> &camera_to_connect);
77 
90  std::string getCalibrationFile(const ros::NodeHandle &nh,
91  std::string camera_namespace);
92 
100  bool connectFirstCameraOnly();
101 
107  bool connectAllCamera();
108 
117  std::string getNamespace(std::string camera_id);
118 
119  protected:
120 
124  std::vector<std::string> vec_camera_to_connect_;
125  };
126 }
127 #endif
std::vector< std::string > vec_camera_to_connect_
Definition: stparameter.h:124
std::string getCalibrationFile(const ros::NodeHandle &nh, std::string camera_namespace)
Definition: stparameter.cpp:67
void loadCameraList(const ros::NodeHandle &nh, std::vector< std::string > &camera_to_connect)
Definition: stparameter.cpp:43
std::string getNamespace(std::string camera_id)
Class to handle ROS parameter.
Definition: stparameter.h:51


omronsentech_camera
Author(s): OSE ROS Support
autogenerated on Tue Jul 2 2019 19:44:14