names.cpp
Go to the documentation of this file.
00001 /****************************************************************************
00002  *
00003  * $Id: file.h 3496 2011-11-22 15:14:32Z fnovotny $
00004  *
00005  * This file is part of the ViSP software.
00006  * Copyright (C) 2005 - 2012 by INRIA. All rights reserved.
00007  *
00008  * This software is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License
00010  * ("GPL") version 2 as published by the Free Software Foundation.
00011  * See the file LICENSE.txt at the root directory of this source
00012  * distribution for additional information about the GNU GPL.
00013  *
00014  * For using ViSP with software that can not be combined with the GNU
00015  * GPL, please contact INRIA about acquiring a ViSP Professional
00016  * Edition License.
00017  *
00018  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
00019  *
00020  * This software was developed at:
00021  * INRIA Rennes - Bretagne Atlantique
00022  * Campus Universitaire de Beaulieu
00023  * 35042 Rennes Cedex
00024  * France
00025  * http://www.irisa.fr/lagadic
00026  *
00027  * If you have questions regarding the use of this file, please contact
00028  * INRIA at visp@inria.fr
00029  *
00030  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00031  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00032  *
00033  * Contact visp@irisa.fr if any conditions of this licensing are
00034  * not clear to you.
00035  *
00036  * Description:
00037  * File containing names of topics or services used all accross the package
00038  *
00039  * Authors:
00040  * Filip Novotny
00041  *
00042  *
00043  *****************************************************************************/
00044 
00050 #include "names.h"
00051 #include "ros/ros.h"
00052 
00053 namespace visp_camera_calibration
00054 {
00055   std::string camera_prefix("/visp_camera_calibration");
00056   std::string raw_image_topic(camera_prefix + "/image_raw");
00057   std::string set_camera_info_service(camera_prefix + "/set_camera_info");
00058   std::string point_correspondence_topic("point_correspondence");
00059   std::string calibrate_service("calibrate");
00060   std::string set_camera_info_bis_service("set_camera_info_bis");
00061 
00062     std::string gray_level_precision_param("/visp_camera_calibration/visp_camera_calibration_image_processing/gray_level_precision");
00063   std::string size_precision_param("/visp_camera_calibration/visp_camera_calibration_image_processing/size_precision");
00064   std::string pause_at_each_frame_param("/visp_camera_calibration/visp_camera_calibration_image_processing/pause_at_each_frame");
00065   std::string images_path_param("/visp_camera_calibration/visp_camera_calibration_camera/images_path");
00066 
00067   std::string model_points_x_param("/visp_camera_calibration/visp_camera_calibration_image_processing/model_points_x");
00068   std::string model_points_y_param("/visp_camera_calibration/visp_camera_calibration_image_processing/model_points_y");
00069   std::string model_points_z_param("/visp_camera_calibration/visp_camera_calibration_image_processing/model_points_z");
00070 
00071   std::string selected_points_x_param("/visp_camera_calibration/visp_camera_calibration_image_processing/selected_points_x");
00072   std::string selected_points_y_param("/visp_camera_calibration/visp_camera_calibration_image_processing/selected_points_y");
00073   std::string selected_points_z_param("/visp_camera_calibration/visp_camera_calibration_image_processing/selected_points_z");
00074 
00075   std::string calibration_path_param("/visp_camera_calibration/visp_camera_calibration_image_processing/calibration_path");
00076 
00077   void remap(){
00078     if (ros::names::remap("camera_prefix") != "camera_prefix") {
00079       camera_prefix = ros::names::remap("camera_prefix");
00080       raw_image_topic = camera_prefix + "/image_raw";
00081       set_camera_info_service = camera_prefix + "/set_camera_info";
00082     }
00083   }
00084 }
00085 
00086 


visp_camera_calibration
Author(s): Filip Novotny
autogenerated on Thu Jul 4 2019 19:30:58