dynamic_reconfigure_test_node.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2012 by Markus Bader *
3  * markus.bader@tuwien.ac.at *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
20 
21 
22 #include <ros/ros.h>
23 #include <dynamic_reconfigure/server.h>
24 #include <tuw_uvc/CameraLogitechConfig.h>
25 
26 class TestNode {
27 public:
29  : n_(n), n_param_("~") {
30  reconfigureFnc_ = boost::bind(&TestNode::callbackParameters, this, _1, _2);
32  }
33  void callbackParameters ( tuw_uvc::CameraLogitechConfig &config, uint32_t level ) {
34  ROS_INFO("callbackParameters");
35  }
36 protected:
39  dynamic_reconfigure::Server<tuw_uvc::CameraLogitechConfig> reconfigureServer_;
40  dynamic_reconfigure::Server<tuw_uvc::CameraLogitechConfig>::CallbackType reconfigureFnc_;
41 };
42 
43 
44 int main(int argc, char **argv)
45 {
46 
47  ros::init(argc, argv, "test_node");
49  TestNode node(n);
50  ros::Rate rate(100);
51  ROS_INFO("Starting to spin...");
52  ros::spin();
53  return 0;
54 }
55 
int main(int argc, char **argv)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
TestNode(ros::NodeHandle &n)
ROSCPP_DECL void spin(Spinner &spinner)
#define ROS_INFO(...)
ros::NodeHandle n_param_
void callbackParameters(tuw_uvc::CameraLogitechConfig &config, uint32_t level)
dynamic_reconfigure::Server< tuw_uvc::CameraLogitechConfig >::CallbackType reconfigureFnc_
dynamic_reconfigure::Server< tuw_uvc::CameraLogitechConfig > reconfigureServer_


tuw_uvc
Author(s): Markus Bader
autogenerated on Mon Jun 10 2019 15:39:24