Note: This tutorial assumes that you have completed the previous tutorials: Introduction to Sigslots.
(!) 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.

Relaying Signals

Description: Relaying data from one signaller to the next.

Keywords: ecl relaying signals

Tutorial Level: INTERMEDIATE

Next Tutorial: Debugging Sigslots

Relaying

A signal can relay another signal, effectively posing temporarily as a slot.

   1 Signal<> signal;
   2 Signal<> signal_relay;
   3 Slot<> slot(f);
   4 signal.connect("First_Topic");
   5 signal_relay.connectAsSlot("First_Topic");
   6 signal_relay.connect("Second_Topic");
   7 slot.connect("Second_Topic");
   8 signal.emit();

Wiki: ecl_sigslots/Tutorials/Relaying Signals (last edited 2012-01-28 08:16:17 by DanielStonier)