LCM.LCM.LCM.SubscribeAll C# (CSharp) Method

SubscribeAll() public method

A convenience function that subscribes to all LCM channels.
public SubscribeAll ( LCMSubscriber sub ) : void
sub LCMSubscriber subscribing object providing callback
return void
		public void SubscribeAll(LCMSubscriber sub)
		{
			Subscribe(".*", sub);
		}
		

Usage Example

Example #1
0
	public IEnumerator Listener()
	{
		Debug.Log ("Listener started.");
		myLCM = new LCM.LCM.LCM();
		
		myLCM.SubscribeAll(new SimpleSubscriber());
		running = true;
		while (running){
			yield return null;
		}
		Debug.Log ("listener coroutine returning!");
	}
All Usage Examples Of LCM.LCM.LCM::SubscribeAll