Note: This tutorial assumes that you have completed the previous tutorials: Using Sigslots Lite.
(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Debugging Sigslots Lite

Description: Utility functions for diagnosing lite sigslots.

Keywords: ecl sigslots lite

Tutorial Level: INTERMEDIATE

Utility Functions

   1 // statistics for global slots with arg type 'const char*'
   2 std::cout << ecl::lite::global_slots_stored<const char*>() << std::endl;
   3 std::cout << ecl::lite::global_slots_capacity<const char*>() << std::endl;
   4 
   5 // statistics for global slots with no args
   6 std::cout << ecl::lite::global_slots_stored<void>() << std::endl;
   7 std::cout << ecl::lite::global_slots_capacity<void>() << std::endl;
   8 
   9 // statistics for member slots of foo with no args
  10 std::cout << ecl::lite::member_slots_stored<void>(foo) << std::endl;
  11 std::cout << ecl::lite::member_slots_capacity<void>(foo) << std::endl;

Above, foo is an object of type Foo with member slots similar to the class outlined in Using Sigslots Lite.

Wiki: ecl_sigslots_lite/Tutorials/Debugging Sigslots Lite (last edited 2012-01-14 15:32:30 by DanielStonier)