test_dyncfg.py
Go to the documentation of this file.
1 #!/usr/bin/env python2
2 
3 import rospy
4 from dynamic_reconfigure.server import Server
5 from tello_driver.cfg import TelloConfig
6 import pprint
7 import traceback
8 
9 
10 def cb_dyncfg(config, level):
11  rospy.loginfo('Received cfg')
12  pprint.pprint(config)
13  return config
14 
15 
16 def main():
17  rospy.init_node('dyncfg_test')
18  srv_dyncfg = Server(TelloConfig, cb_dyncfg)
19  rospy.spin()
20 
21 
22 if __name__ == '__main__':
23  try:
24  main()
25  except BaseException:
26  traceback.print_exc()
def main()
Definition: test_dyncfg.py:16
def cb_dyncfg(config, level)
Definition: test_dyncfg.py:10


tello_driver
Author(s): Jordy van Appeven
autogenerated on Wed May 13 2020 03:34:54