test_bool_dynamic_reconfigure_server.cpp
Go to the documentation of this file.
1 #include <ros/ros.h>
3 
4 using namespace ddynamic_reconfigure;
5 
15 int main(int argc, char **argv)
16 {
17  ros::init(argc, argv, "test_bool_dynamic_reconfigure");
18 
19  ros::NodeHandle nh("fake_dyanmic_reconfigure");
20 
21  bool bool_test = false;
22 
23  DDynamicReconfigure ddr(nh);
24 
25  ddr.RegisterVariable(&bool_test, "bool_test");
26 
28 
29  ROS_INFO("Spinning node");
30 
31  while (nh.ok())
32  {
33  std::cerr << "bool " << bool_test << std::endl;
34  std::cerr << "*********" << std::endl;
35  ros::spinOnce();
36  ros::Duration(0.1).sleep();
37  }
38  return 0;
39 }
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
The DDynamicReconfigure class allows to use ROS dynamic reconfigure without the need to write a custo...
int main(int argc, char **argv)
#define ROS_INFO(...)
bool sleep() const
virtual void RegisterVariable(double *variable, std::string id, double min=-100, double max=100)
ROSCPP_DECL void spinOnce()
bool ok() const


ddynamic_reconfigure
Author(s): Hilario Tome
autogenerated on Mon Feb 28 2022 22:12:28