r200_nodelet.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  Copyright (c) 2017, Intel Corporation
00003  All rights reserved.
00004 
00005  Redistribution and use in source and binary forms, with or without
00006  modification, are permitted provided that the following conditions are met:
00007 
00008  1. Redistributions of source code must retain the above copyright notice, this
00009  list of conditions and the following disclaimer.
00010 
00011  2. Redistributions in binary form must reproduce the above copyright notice,
00012  this list of conditions and the following disclaimer in the documentation
00013  and/or other materials provided with the distribution.
00014 
00015  3. Neither the name of the copyright holder nor the names of its contributors
00016  may be used to endorse or promote products derived from this software without
00017  specific prior written permission.
00018 
00019  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00020  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00021  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00022  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00023  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00024  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00025  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00026  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00027  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00028  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00029  *******************************************************************************/
00030 
00031 #pragma once
00032 #ifndef REALSENSE_CAMERA_R200_NODELET_H
00033 #define REALSENSE_CAMERA_R200_NODELET_H
00034 
00035 #include <string>
00036 #include <vector>
00037 
00038 #include <dynamic_reconfigure/server.h>
00039 
00040 #include <realsense_camera/r200_paramsConfig.h>
00041 #include <realsense_camera/sync_nodelet.h>
00042 
00043 namespace realsense_camera
00044 {
00045 class R200Nodelet: public realsense_camera::SyncNodelet
00046 {
00047 public:
00048   void onInit();
00049 
00050 protected:
00051   // Member Variables.
00052   rs_option edge_options_[4] =
00053   {
00054     RS_OPTION_R200_AUTO_EXPOSURE_LEFT_EDGE,
00055     RS_OPTION_R200_AUTO_EXPOSURE_TOP_EDGE,
00056     RS_OPTION_R200_AUTO_EXPOSURE_RIGHT_EDGE,
00057     RS_OPTION_R200_AUTO_EXPOSURE_BOTTOM_EDGE
00058   };
00059   boost::shared_ptr<dynamic_reconfigure::Server<realsense_camera::r200_paramsConfig>> dynamic_reconf_server_;
00060 
00061   rs_extrinsics color2ir2_extrinsic_;  // color frame is base frame
00062 
00063   // Member Functions.
00064   void getParameters();
00065   void advertiseTopics();
00066   std::vector<std::string> setDynamicReconfServer();
00067   void startDynamicReconfCallback();
00068   void setDynamicReconfigDepthControlPreset(int preset);
00069   std::string setDynamicReconfigDepthControlIndividuals();
00070   void configCallback(realsense_camera::r200_paramsConfig &config, uint32_t level);
00071   void getCameraExtrinsics();
00072   void publishStaticTransforms();
00073   void publishDynamicTransforms();
00074 };
00075 }  // namespace realsense_camera
00076 #endif  // REALSENSE_CAMERA_R200_NODELET_H


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