Click or drag to resize

CvmDeviceFetchTopicT Method

This method blocks and waits for a message from specified topic. Topic is returned or timeout exception is thrown

Namespace:  Rubedos.Viper.Net
Assembly:  Rubedos.Viper.Net (in Rubedos.Viper.Net.dll) Version: 1.0.0.2357 (1.0.00000.2357)
Syntax
C#
public T FetchTopic<T>(
	string topic,
	TimeSpan timeout
)
where T : new(), IRosMessage

Parameters

topic
Type: SystemString
topic to subscribe
timeout
Type: SystemTimeSpan
time interval to wait for the topic

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Rubedos.Viper.Net.CvmDevice.FetchTopic``1(System.String,System.TimeSpan)"]

Return Value

Type: T
First message arrived on the topic
Exceptions
ExceptionCondition
TimeoutExceptionThrown if topic does not arrive in specified amount of time
InvalidOperationExceptionThrown if not connected or handle not initialized
See Also