edit-icon download-icon

ALIYUN::ROS::WaitCondition

Last Updated: Feb 11, 2018

The ALIYUN::ROS::WaitCondition type is used to create an instance for processing UserData messages.

Syntax

  1. {
  2. "Type" : "ALIYUN::ROS::WaitCondition",
  3. "Properties" : {
  4. "Count" : Integer,
  5. "Handle" : String,
  6. "Timeout" : Integer
  7. }
  8. }

Attributes

Attribute name Type Required? Description Constraint
Handle string Yes Referenced ALIYUN::ROS::WaitConditionHandle instance.
Timeout number Yes Timeout time for UserData message reception. Value range: [1, 43200]; unit: seconds.
Count number No Total number of messages to be received.

Return values

Fn::GetAtt

Data: received message content.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "WaitCondition": {
  5. "Type": "ALIYUN::ROS::WaitCondition",
  6. "Properties": {
  7. "Handle": {"Ref": "WaitConHandle"},
  8. "Timeout": 5,
  9. "Count": 2
  10. }
  11. },
  12. "WaitConHandle": {
  13. "Type": "ALIYUN::ROS::WaitConditionHandle"
  14. }
  15. },
  16. "Outputs" : {
  17. "CurlCli" : {
  18. "Value" : { "Fn::GetAtt": ["WaitConHandle", "CurlCli"] }
  19. },
  20. "Data" : {
  21. "Value" : { "Fn::GetAtt": ["WaitCondition", "Data"] }
  22. }
  23. }
  24. }
Thank you! We've received your feedback.