TraveSim Adapters  0.1
Protobuf adapters for TraveSim project
vision_configurer_example.cpp File Reference

Example on how to use the VisionConfigurer. More...

Include dependency graph for vision_configurer_example.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Example on how to use the VisionConfigurer.

Author
Lucas Haug lucas.nosp@m..hau.nosp@m.g@thu.nosp@m.nera.nosp@m.tz.or.nosp@m.g
Date
06/2021

Definition in file vision_configurer_example.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 22 of file vision_configurer_example.cpp.

22  {
23  ros::init(argc, argv, "vision_configurer_example");
24  ros::NodeHandle node_handle;
25 
26  travesim::VisionConfigurer vision_configurer;
27 
28  ROS_INFO("Starting...");
29  ROS_INFO_STREAM("========== Default Config ==========" << std::endl << vision_configurer);
30 
31  while (ros::ok()) {
32  if (vision_configurer.get_reset()) {
33  ROS_INFO_STREAM("========== Current Config ==========" << std::endl << vision_configurer);
34 
35  std::string address = vision_configurer.get_address();
36  }
37 
38  ros::spinOnce();
39  }
40 
41  return 0;
42 }
VisionConfigurer class definition.
bool get_reset(void)
Get the reset config.
std::string get_address(void)
Get the vision configured address.

References travesim::VisionConfigurer::get_address(), and travesim::AdapterConfigurer< AdapterConfigType >::get_reset().

Here is the call graph for this function: