Commit e03b8479 authored by Hannes Kallwies's avatar Hannes Kallwies
Browse files

Adjust TeSSLa example to use library

parent 443f70f6
include "TesslaROSBridge.tessla"
@RosSubscription("/counter", "int64", "10")
in x: Events[Int]
# Version 2 - if once reset true then forever
# def counter = count(x)
# def reset = counter > 10
# out counter
# Version 1 - every time reset if counter is bigger then 10
def reset = x > 10
@RosPublisher("/reset_counter", "bool", "10")
out reset
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment