stcamera_interface_gev.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 
37 #ifndef STCAMERA_STCAMERA_INTERFACE_GEV_H
38 #define STCAMERA_STCAMERA_INTERFACE_GEV_H
39 
41 
42 #include <omronsentech_camera/GetGigEIP.h>
43 #include <omronsentech_camera/SetGigEIP.h>
44 
45 #include <sys/socket.h>
46 #include <netinet/in.h>
47 #include <arpa/inet.h>
48 
49 namespace stcamera
50 {
59  {
60  public:
61 
72  StCameraInterfaceGEV(StApi::IStDeviceReleasable *dev,
73  ros::NodeHandle nh_parent,
74  const std::string &camera_namespace,
76  uint32_t queue_size = STCAMERA_QUEUE_SIZE);
77 
80  virtual ~StCameraInterfaceGEV();
81 
88  bool getIPCallback(omronsentech_camera::GetGigEIP::Request &req,
89  omronsentech_camera::GetGigEIP::Response &res);
90 
97  bool setIPCallback(omronsentech_camera::SetGigEIP::Request &req,
98  omronsentech_camera::SetGigEIP::Response &res);
99 
100  protected:
103 
106  };
107 }
108 #endif
bool param(const std::string &param_name, T &param_val, const T &default_val)
Class to control a connected GigEVision camera.
Base class to control a connected camera.
bool setIPCallback(omronsentech_camera::SetGigEIP::Request &req, omronsentech_camera::SetGigEIP::Response &res)
bool getIPCallback(omronsentech_camera::GetGigEIP::Request &req, omronsentech_camera::GetGigEIP::Response &res)
#define STCAMERA_QUEUE_SIZE
Definition: stheader.h:41
Base class to control a connected camera.
Class to handle ROS parameter.
Definition: stparameter.h:51
StCameraInterfaceGEV(StApi::IStDeviceReleasable *dev, ros::NodeHandle nh_parent, const std::string &camera_namespace, StParameter *param, uint32_t queue_size=STCAMERA_QUEUE_SIZE)


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